in reply to parallelising processes
Have a look at Parallel::Iterator, too.
You can set the number of parallel workers with the option workers:
use strict; use warnings; # Number of parallel tasks my %options = (); $options{workers} = 8; # Execute tasks in parallel my @results = iterate_as_array( \%options, $worker, \@tasks );
Hth, Thomas
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: parallelising processes
by hermida (Scribe) on Feb 06, 2011 at 21:29 UTC | |
Re^2: parallelising processes
by RobertCraven (Sexton) on Apr 07, 2011 at 08:02 UTC |
In Section
Seekers of Perl Wisdom