in reply to Re: fork on linux 2.6 does not share memory
in thread fork on linux 2.6 does not share memory
Well, i believe, fork'ed processes should not share any memory between each other. Linux 2.6 behaviour looks correct.Most modern OSes, including Linux, use a copy-on-write scheme: the two processes initially share each page of memory, but the first attempt to write to such a page is detected by the MMU (memory management unit) hardware, and the page is invisibly copied. This is why fork is so fast.
Dave.
|
|---|