Parallel::ForkManager is a simple parallel processing fork manager.
SYNOPSIS
use Parallel::ForkManager;
$pm = new Parallel::ForkManager($MAX_PROCESSES);
foreach $data (@all_data) {
# Forks and returns the pid for the child:
my $pid = $pm->start and next;
... do some work with $data in the child process ...
$pm->finish; # Terminates the child process
}
This module is intended for use in operations that can be done in parallel where the number of processes to be forked off should be limited. Typical use is a downloader which will be retrieving hundreds/thousands of files.
Product's homepage
Requirements:
· Perl
What's New in This Release: [ read full changelog ]
· - Exclude the example scripts from getting installed. (https://rt.cpan.org/Public/Bug/Display.html?id=62506)