in reply to Parallel tasks
use Parallel::ForkControl; my $forker = new Parallel::ForkControl( MaxKids => 5000, MinKids => 5, WatchLoad => 1, MaxLoad => 5.50, Code => \&mySub ); foreach my $col (@collections) { $forker->run($col); } $forker->cleanup(); sub mySub { my $collection = shift; ...... return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel tasks
by john.goor (Acolyte) on Jul 14, 2004 at 08:18 UTC | |
|
Re^2: Parallel tasks
by reyjrar (Hermit) on Jul 14, 2004 at 17:21 UTC |