On Qua, 2010-12-15 at 23:31 +0530, Chaitannya Mahatme wrote:
> 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.

You've answered that already: because exec replaces the current process.


-- 
Jose Celestino | http://japc.uncovering.org/files/japc-pgpkey.asc
----------------------------------------------------------------
"Assumption is the Mother of Screw-Up" -- Mr. John Elwood Hale


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to