Parallel::ForkControlParallel::ForkControl is a finer grained control of processes on a Unix System. | |
Download |
Parallel::ForkControl Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Brad Lhotsky
- Publisher web site:
- http://search.cpan.org/~blhotsky/Parallel-ForkControl-0.04/lib/Parallel/ForkControl.pm
Parallel::ForkControl Tags
Parallel::ForkControl Description
Parallel::ForkControl is a finer grained control of processes on a Unix System. Parallel::ForkControl is a finer grained control of processes on a Unix System.SYNOPSIS use Parallel::ForkControl; my $forker = new Parallel::ForkControl( WatchCount => 1, MaxKids => 50, MinKids => 5, WatchLoad => 1, MaxLoad => 8.00, Name => 'My Forker', Code => &mysub ); my @hosts = qw/host1 host2 host3 host5 host5/; foreach my $host (@hosts) { $forker->run($host); } $forker->cleanup(); # wait for all children to finish; .....Parallel::ForkControl introduces a new and simple way to deal with fork()ing. The 'Code' parameter will be run everytime the run() method is called on the fork object. Any parameters passed to the run() method will be passed to the subroutine ref defined as the 'Code' arg. This allows a developer to spend less time worrying about the underlying fork() system, and just write code. Requirements: · Perl
Parallel::ForkControl Related Software