perl-Parallel-ForkManager-1.20-2.1.noarch.rpm


Advertisement

Description

perl-Parallel-ForkManager - Simple Parallel Processing Fork Manager

Property Value
Distribution openSUSE Tumbleweed
Repository Packman all
Package name perl-Parallel-ForkManager
Package version 1.20
Package release 2.1
Package architecture noarch
Package type rpm
Installed size 76.91 KB
Download size 37.70 KB
Official Mirror packman.inode.at
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.
The code for a downloader would look something like this:
use LWP::Simple;
use Parallel::ForkManager;
...
my @links=(
["http://www.foo.bar/rulez.data","rulez_data.txt"],
["http://new.host/more_data.doc","more_data.doc"],
...
);
...
my $pm = Parallel::ForkManager->new(30);
LINKS:
foreach my $linkarray (@links) {
$pm->start and next LINKS; # do the fork
my ($link, $fn) = @$linkarray;
warn "Cannot get $fn from $link"
if getstore($link, $fn) != RC_OK;
$pm->finish; # do the exit in the child process
}
$pm->wait_all_children;
First you need to instantiate the ForkManager with the "new" constructor.
You must specify the maximum number of processes to be created. If you
specify 0, then NO fork will be done; this is good for debugging purposes.
Next, use $pm->start to do the fork. $pm returns 0 for the child process,
and child pid for the parent process (see also perlfunc(1p)/fork()). The
"and next" skips the internal loop in the parent process. NOTE: $pm->start
dies if the fork fails.
$pm->finish terminates the child process (assuming a fork was done in the
"start").
NOTE: You cannot use $pm->start if you are already in the child process. If
you want to manage another set of subprocesses in the child process, you
must instantiate another Parallel::ForkManager object!

Alternatives

Package Version Architecture Repository
perl-Parallel-ForkManager - - -

Requires

Name Value
perl(:MODULE_COMPAT_5.26.2) -

Provides

Name Value
perl(Parallel::ForkManager) = 1.20
perl-Parallel-ForkManager = 1.20-2.1

Download

Type URL
Binary Package perl-Parallel-ForkManager-1.20-2.1.noarch.rpm
Source Package perl-Parallel-ForkManager-1.20-2.1.src.rpm

Install Howto

  1. Add the Packman repository:
    # zypper addrepo http://packman.inode.at/suse/openSUSE_Tumbleweed/ packman
  2. Install perl-Parallel-ForkManager rpm package:
    # zypper install perl-Parallel-ForkManager

Files

Path
/usr/lib/perl5/vendor_perl/5.26.2/Parallel/ForkManager.pm
/usr/lib/perl5/vendor_perl/5.26.2/i586-linux-thread-multi/
/usr/share/doc/packages/perl-Parallel-ForkManager/CODE_OF_CONDUCT.md
/usr/share/doc/packages/perl-Parallel-ForkManager/CONTRIBUTORS
/usr/share/doc/packages/perl-Parallel-ForkManager/Changes
/usr/share/doc/packages/perl-Parallel-ForkManager/README.mkdn
/usr/share/doc/packages/perl-Parallel-ForkManager/doap.xml
/usr/share/doc/packages/perl-Parallel-ForkManager/examples/callback.pl
/usr/share/doc/packages/perl-Parallel-ForkManager/examples/callback_data.pl
/usr/share/doc/packages/perl-Parallel-ForkManager/examples/parallel_get.pl
/usr/share/man/man3/Parallel::ForkManager.3pm.gz

Changelog

2018-07-19 - coolo@suse.com
- updated to 1.20
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.20 2018-07-18
[ DOCUMENTATION ]
- Add section about rand() and forked processes. (GH#22)
[ ENHANCEMENTS ]
- Expand abbreviations in error messages. (GH#14, Ricardo Signes)
- Rename variables and simplify `_waitpid` signature. (GH#14, Ricardo
Signes)
[ STATISTICS ]
- code churn: 6 files changed, 80 insertions(+), 33 deletions(-)
2016-07-04 - coolo@suse.com
- updated to 1.19
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.19 2016-06-28
[ DOCUMENTATION ]
- Typo fixes. (GH#10)
- Add short discussion on security about the information passing via
files between master/children processes.
- Document the problem between PerlIO::fzip and fork(). (GH#11)
[ ENHANCEMENTS ]
- New way to spawn workers via 'start_child'.
[ STATISTICS ]
- code churn: 4 files changed, 114 insertions(+), 5 deletions(-)
2016-04-04 - coolo@suse.com
- updated to 1.18
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.18 2016-03-29
[ BUG FIXES ]
- Storage file between child and parent could have the wrong name,
because $$ was used instead of parent_pid. (GH#9, reported by Lucien
Coffe)
[ STATISTICS ]
- code churn: 4 files changed, 37 insertions(+), 4 deletions(-)
2015-11-29 - coolo@suse.com
- updated to 1.17
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.17 2015-11-28
- Up Test::More's dependency version to v0.94 (because of 'subtest').
(GH#8, mauke)
[ STATISTICS ]
- code churn: 3 files changed, 88 insertions(+), 70 deletions(-)
2015-10-10 - coolo@suse.com
- updated to 1.16
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
2015-07-12 - coolo@suse.com
- updated to 1.15
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.15 2015.07.08
- test's watchdog actually exit if it's being hit. (RT#105747, Zefram)
- condition to catch children reaped by external forces
improved. (RT#105748, Zefram + Yanick)
2015-05-18 - coolo@suse.com
- updated to 1.14
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.14 2015.05.17
- Add 'reap_finished_children', 'is_child' and 'is_parent'. (GH#6, Nine bit)
2015-05-13 - coolo@suse.com
- updated to 1.13
see /usr/share/doc/packages/perl-Parallel-ForkManager/Changes
1.13 2015.05.11
- Use 'select' instead of sleep in _waitpid_blocking. (GH#5)
2015-03-23 - mpluskal@suse.com
- Update to 1.12
* for full list of changes see attaced Changes
2011-04-22 - coolo@opensuse.org
- initial package 0.7.9
* created by cpanspec 1.78.04

See Also

Package Description
perl-Pegex-0.67-3.1.noarch.rpm Acmeist PEG Parser Framework
perl-Sereal-4.005-5.1.noarch.rpm Fast, compact, powerful binary (de-)serialization
perl-Sereal-Decoder-4.005-5.1.i586.rpm Fast, compact, powerful binary deserialization
perl-Sereal-Decoder-4.005-5.1.x86_64.rpm Fast, compact, powerful binary deserialization
perl-Sereal-Encoder-4.005-5.1.i586.rpm Fast, compact, powerful binary serialization
perl-Sereal-Encoder-4.005-5.1.x86_64.rpm Fast, compact, powerful binary serialization
perl-Test-Signature-1.11-2.4.noarch.rpm Automated SIGNATURE testing
perl-Tk-FontDialog-0.18-1.9.noarch.rpm Font Dialog Widget for Perl/Tk
perl-WebService-MusicBrainz-0.93-2.18.noarch.rpm Web service API to MusicBrainz database
perl-XML-RSS-LibXML-0.3105-1.18.noarch.rpm XML::RSS with XML::LibXML
perl-mythtv-0.28.1+git.20170712.eef6a480b0-1.20.noarch.rpm Perl bindings for mythtv
perl-xmltv-0.5.69-1.4.noarch.rpm Perl modules for managing your TV viewing
php-mythtv-0.28.1+git.20170712.eef6a480b0-1.20.noarch.rpm PHP bindings for mythtv
pkg2zip-1.8-4.4.i586.rpm Decrypts PlayStation Vita pkg file and packages to zip archive
pkg2zip-1.8-4.4.x86_64.rpm Decrypts PlayStation Vita pkg file and packages to zip archive
Advertisement
Advertisement