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

Answer: Running subroutines asynchronously

by NetWallah (Canon)
on Oct 03, 2005 at 04:31 UTC ( #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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-05-26 13:03 GMT
Find Nodes?
    Voting Booth?