Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Fork and creating a thread exits the process

by perlfan (Vicar)
on Aug 11, 2020 at 02:01 UTC ( [id://11120580]=note: print w/replies, xml ) Need Help??


in reply to Fork and creating a thread exits the process

idk how Coro would work for you on Windows, but it might be worth a look. I will say that Windows is not the right OS to use if you want this sort of process management, as has been said already.

If you're merely looking for a better programming interface to fork so that you're not tempted to mix "threads" with "fork", then take a look at Parallel::ForkManager.

If you need low latency communication among child processes or between parent/child (via fork), use something like redis as the middleware. It is unfortunate communication using shared memory isn't possible natively in perl, but that's a whole other issue.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found