Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Answer: Running subroutines asynchronously

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

Q&A > subroutines > Running subroutines asynchronously - Answer 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?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2016-07-23 16:07 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (221 votes). Check out past polls.