Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Feeding processes through one pipe

by kennethk (Abbot)
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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-10-07 19:29 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (199 votes), past polls