SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Parallel-ForkManager rpm build for : openSUSE Leap 15. For other distributions click perl-Parallel-ForkManager.

Name : perl-Parallel-ForkManager
Version : 2.02 Vendor : http://Packman_links2linux_de
Release : pm151.2.2 Date : 2020-03-25 10:38:24
Group : Development/Libraries/Perl Source RPM : perl-Parallel-ForkManager-2.02-pm151.2.2.src.rpm
Size : 0.08 MB
Packager : packman_links2linux_de
Summary : Simple parallel processing fork manager
Description :
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 AATTlinks=(
[\"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 (AATTlinks) {
$pm->start and next LINKS; # do the fork

my ($link, $fn) = AATT$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!

RPM found in directory: /packages/linux-pbone/packman.iu-bremen.de/suse/openSUSE_Leap_15.1/Multimedia/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-Parallel-ForkManager-2.02-pm151.2.2.noarch.rpm
     

Provides :
perl(Parallel::ForkManager)
perl(Parallel::ForkManager::Child)
perl-Parallel-ForkManager

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Moo)
perl(Moo::Role)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Parallel
/usr/lib/perl5/vendor_perl/5.26.1/Parallel/ForkManager
/usr/lib/perl5/vendor_perl/5.26.1/Parallel/ForkManager.pm
/usr/lib/perl5/vendor_perl/5.26.1/Parallel/ForkManager/Child.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Parallel-ForkManager
/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
/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
/usr/share/man/man3/Parallel::ForkManager::Child.3pm.gz

 
ICM