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

Re: Feeding processes through one pipe

by kennethk (Monsignor)
on May 07, 2012 at 15:14 UTC ( #969274=note: print w/ replies, xml ) Need Help??


in reply to Feeding processes through one pipe

You could roll this all yourself, using flock to control semaphore access across threads, but this is a problem that has been solved already. I'd recommend checking out threads and Thread::Semaphore if you want to roll your own job queue. Alternatively, there are several available, including TheSchwartz and POE-based solutions.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: Feeding processes through one pipe

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2014-11-28 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (198 votes), past polls