Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Creating Child without overhead of Parent

by broquaint (Abbot)
on Jun 25, 2004 at 03:59 UTC ( [id://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

Replies are listed 'Best First'.
Re^2: Creating Child without overhead of Parent (vfork)
by jeffa (Bishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://369546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-25 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found