Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
XP is just a number
 
PerlMonks  

Re: Creating Child without overhead of Parent

by broquaint (Abbot)
on Jun 25, 2004 at 03:59 UTC ( #369546=note: print w/ replies, xml ) Need Help??


in reply to Creating Child without overhead of Parent

If you've got an OS supporting Copy-On-Write forking, then the child is unlikely to be very large unless significant changes are made to large data structures etc. In your particular case it would seem simpler just to use a system since you're forking and waiting for the child to return anyway.

HTH

_________
broquaint


Comment on Re: Creating Child without overhead of Parent
Re^2: Creating Child without overhead of Parent (vfork)
by jeffa (Chancellor) on Jun 25, 2004 at 15:29 UTC

    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)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-04-18 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls