Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: A per-instance shared queue among forked child processes?

by EvanK (Chaplain)
on Apr 07, 2011 at 20:40 UTC ( [id://898193]=note: print w/replies, xml ) Need Help??


in reply to Re: A per-instance shared queue among forked child processes?
in thread A per-instance shared queue among forked child processes?

I was using threads in my original version of the script, but ran into several issues:
  • Starting new threads seemed to be much heavier in resource usage than starting new forks (and I'm forking on demand several times within a main event loop)
  • Worker threads were getting seemingly random SIGALRM signals, which ended up bombing out the entire process with an "Alarm Clock" message
  • I couldn't find a definitive answer on whether many of the modules I'm using are threadsafe.
  • Quite frankly, I understand forking much better on a conceptual level than ithreads
So I ended up rewriting it with forks and it seems much more stable this way.
  • Comment on Re^2: A per-instance shared queue among forked child processes?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-24 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found