in reply to Thread Advice
Be very conservative on the number of forks until you are sure the server can handle it. I learned the hard way :)use Paralle::ForkManager; my $pm = new Parallel::ForkManager(x); # where x = number of forks foreach ($item) @items){ $pm->start and next; #do stuff in parallel here $pm->finish; } $pm->wait_all_children;
Neil Watson
watson-wilson.ca
|
|---|