Name : perl-Proc-Queue
| |
Version : 1.23
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.7.1
| Date : 2023-07-20 19:40:35
|
Group : Development/Libraries/Perl
| Source RPM : perl-Proc-Queue-1.23-lp155.7.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : limit the number of child processes running
|
Description :
This module lets you parallelise a perl program using the \'fork\', \'exit\', \'wait\' and \'waitpid\' calls as usual but without taking care of creating too many processes and overloading the machine.
It redefines perl \'fork\', \'exit\', \'wait\' and \'waitpid\' core functions. Old programs do not need to be reprogrammed, only the \'use Proc::Queue ...\' sentence has to be added to them.
Additionally, the module has two debugging modes (debug and trace) that seem too be very useful when developing parallel aplications:
* debug mode:
when active, dumps lots of information about processes being created, exiting, being caught by parent, etc.
* trace mode:
prints a line every time one of the \'fork\', \'exit\', \'wait\' or \'waitpid\' functions are called.
It is also possible to set a minimun delay time between fork calls to stop too many processes for starting in a short time interval.
Child processes continue to use the modified functions, but their queues are reset and the maximun process number for them is set to 1 (anyway, children can change their queue size themselves).
Proc::Queue doesn\'t work if CHLD signal handler is set to \'IGNORE\'.
Internally, Proc::Queue, automatically catches zombies and stores their exit status in a private hash. To avoid leaking memory in long running programs you have to call \'wait\' or \'waitpid\' to delete entries from that hash or alternatively active the \'ignore_children\' mode:
Proc::Queue::ignore_children(1)
or
use Proc::Queue ignore_children=>1, ...
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-P/15.5/noarch |