Forks::Super::Queue
0.63
Forks::Super::Queue is part of the Forks::Super distribution. The function and variables in this module manage the queue of "deferred processes" -- background tasks that have been specified but that can not or should not be run until some time in the future.
There should not be much reason for a Forks::Super user to call functions or manipulate variables in this module directly.
Examines the queue of background tasks. Launches the tasks that are eligible to start.
This function is called automatically from your program during wait and waitpid calls, when the SIGCHLD handler runs, or during any "productive pause" (see "pause" in Forks::Super::Util) in your code.
wait
waitpid
SIGCHLD
When jobs are in the queue, a separate thread will signal the program and cause the queue to be examined every $QUEUE_MONITOR_FREQ seconds.
$QUEUE_MONITOR_FREQ
For programs with lots of quick jobs, this variable can be set to a small value to make sure the queue is examined frequently.
For programs with CPU-intensive, long running jobs, this variable can be set to a large value so that not too many processing resources are wasted examining the queue.
If set to a true value, the Forks::Super::Queue module will publish additional messages to the debugging output handle (see "$DEBUG_FH" in Forks::Super::Debug) about what the module is doing. These messages may or may not be interesting.
This variable will be set at run-time if the environment variable FORKS_SUPER_QUEUE_DEBUG is set.
FORKS_SUPER_QUEUE_DEBUG
Marty O'Brien, <mob@cpan.org>
Copyright (c) 2009-2012, Marty O'Brien.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
See http://dev.perl.org/licenses/ for more information.
To install Forks::Super, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Forks::Super
CPAN shell
perl -MCPAN -e shell install Forks::Super
For more information on module installation, please visit the detailed CPAN module installation guide.