Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Answer: Running subroutines asynchronously

( #496821=categorized answer: print w/ replies, xml ) Need Help??

Q&A > subroutines > Running subroutines asynchronously contributed by NetWallah

Here is some Thread::Queue based code that demonstrates another way to resolve the parallel-ping problem.

You can use it to model generic parallel processing subroutines where you have one work queue, and multiple workers. The results generated by the workers is fed back into a single queue, that is read by the main process.

Comment on Answer: Running subroutines asynchronously
Replies are listed 'Best First'.
Re: Answer: Running subroutines asynchronously
by blazar (Canon) on Oct 03, 2005 at 08:52 UTC
    Side note comment: a cheap albeit admittedly much more limited alternative to gain some parallelization through open can be found here.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-08-27 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (334 votes), past polls