What is the practical significance of fork

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Everyone,

I tried finding answer to this question in many books but never quite got a satisfactory answer to this question.

A fork process would replicate it parent, my question is
  1. Why is fork necessary to create a process. Why replicate a existing process before creating a new process.
  2. The exec algorithm is executed after fork which overrides what fork has done, then why do fork. Why can't we directly do exec.
--
Cheers !!!
Chaitannya

follow me on twitter http://twitter.com/chaitannya

I believe there's a hero in all of us
who keeps us honest, gives us strength, makes us noble, and finally allows us to die with pride,
even though sometimes we have to be steady, and give up the thing we want the most... even our dreams.
- Spider Man 2
-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux