Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: Win32, fork and XS globals

by Corion (Pope)
on Oct 11, 2011 at 13:52 UTC ( #930819=note: print w/replies, xml ) Need Help??

in reply to Re^2: Win32, fork and XS globals
in thread Win32, fork and XS globals

When using system() there remains the small problem of copying the state of the old process over into the new process. Especially copying over allocated external resources, like sockets and open file handles.

Of course, not copying has its problems too, if one part of the fork closes/deallocates a resource while the other part wants to keep it open. But I think the other direction is more common, that only one of the two forked instances will continue to access a resource. From that direction, using OS threads to emulate fork() makes sense.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930819]
[karlgoethebier]: holli: Red Coke? It's called "Korea" - cheap red wine wine coke :-(
[choroba]: we call it "mushroom" here
[karlgoethebier]: had his first oysters this year for lunch - with some really white wine. Great

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2017-09-25 13:39 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (280 votes). Check out past polls.