http://qs321.pair.com?node_id=483175


in reply to Threads and fork and CLONE, oh my!

Your description of Linux fork's copy-on-write of the child's environment is correct. That is one of tricks Linux uses to make its fork very fast and economical. It's good enough that there is rarely a reason to use threads on Linux, though they are supported by the kernel.

SYSV shared memory support is available, but most people prefer pipes or sockets for IPC on Linux.

After Compline,
Zaxo