http://www.perlmonks.org?node_id=496821


in reply to Running subroutines asynchronously

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.

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.