Skip to content
Parallel::Forker is a Perl package to manage parallel processes.
Perl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Parallel
t
.gitignore
Changes
INSTALL.SKIP
MANIFEST
MANIFEST.SKIP
META.yml
Makefile.PL
README.pod

README.pod

SUMMARY

Parallel::Forker is a Perl package to manage parallel processes that are either subroutines or system commands. Parallel::Forker supports being able to specify complicated expressions to determine which processes run after others, or processes that run when processes others fail.

EXAMPLE

use Parallel::Forker;
$Fork = new Parallel::Forker(use_sig_child=>1);
$Fork->schedule
   (run_on_start => sub {print "child work here...";},
    # run_on_start => \&child_subroutine,  # Alternative: call a named sub.
    run_on_finish => sub {print "parent cleanup here...";},
    )->run;
$Fork->wait_all;   # Wait for all children to finish

INSTALLATION

Install from CPAN:

cpan install Parallel::Forker

Or, build from sources:

# Obtain distribution kit
git clone git@github.com:veripool/Parallel-Forker.git
# Build
cd Parallel-Forker
git pull
perl Makefile.PL
make
make test
make install

DOCUMENTATION

See the Parallel::Forker manpage after installation.

LICENSE

The latest version is available from CPAN and from https://www.veripool.org/parallel-forker.

Copyright 2002-2019 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

You can’t perform that action at this time.