in reply to Re: Creating Child without overhead of Parent
in thread Creating Child without overhead of Parent

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)
  • Comment on Re^2: Creating Child without overhead of Parent (vfork)