[H-GEN] Info on Copy on write

ben.carlyle at invensys.com ben.carlyle at invensys.com
Tue Aug 26 19:23:30 EDT 2003


Hello,





Harmeet Uppal <Harmeet_Uppal at KeaneIndia.com>
Sent by: Majordomo <majordom at caliburn.humbug.org.au>
26/08/2003 10:47 PM
Please respond to general

 
        To:     general at lists.humbug.org.au
        cc: 
        Subject:        [H-GEN] Info on Copy on write


> Need some info on how does copy on write work after  a fork and whats is 
the
> actual difference with vfork and fork.Why is there a difference in their
> foot prints.

Why are you asking these questions? What are you trying to do? If you're 
doing software development it may help to provide a little more context 
for your questions.

fork() and vfork() under linux is very small. vfork() doesn't copy any 
pages. fork() doesn't copy any either, until the new process actually 
starts using them. Under other operating systems that answer may still be 
different, for example I've seen #ifdefs that specifially use vfork if the 
operating system is Solaris although I would guess that's not necessary in 
more recent Solaris releases. Refer to the linux man-pages on these 
functions as it has an exellent description of what these functions are 
about.

Benjamin.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20030827/fbcf6a42/attachment.html>


More information about the General mailing list