And in the unlikely event that your OS does not support Copy-On-Write (but does support fork ...) then look into the vfork() system call.
UPDATE: s/threads/fork/ ... silly /me
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re^2: Creating Child without overhead of Parent (vfork)
by jeffa
in thread Creating Child without overhead of Parent
by cxbast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |