After fork(), parent and child initially share the same physical pages, marked read-only; when either one writes, a page fault occurs and the OS copies just that page for the writer.
It makes fork() fast and saves memory, especially when the child immediately calls exec(), and is also used for snapshots and shared zero pages.
Loading…