Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 romping around the Monastery: (11)
As of 2014-10-02 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls