in reply to 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..
  • Comment on Re: fork on linux 2.6 does not share memory

Replies are listed 'Best First'.
Re^2: fork on linux 2.6 does not share memory
by dave_the_m (Monsignor) on Jul 26, 2005 at 14:58 UTC
    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.