Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
On Linux it is possible to use clone with CLONE_VM, but not CLONE_THREAD, which is like fork() but much cheaper and avoids swap exhaustion due to momentary overcommit of swap space. One has to be very careful in this case to not mutate global variables such as environ, but it's worth it.
|