Go to the source code of this file.
Functions | |
usage ($me) | |
main (&$argv) | |
spawnJob ($command) | |
waitJob (&$runningJobs, &$statusList) | |
getCPUCount () | |
getCPUCount | ( | ) |
Count number of CPUs
Definition at line 154 of file parallel.php.
main | ( | & | $argv | ) |
spawnJob | ( | $command | ) |
Spawn a new job process to execute the given command and return the job's process pid
$command |
Definition at line 113 of file parallel.php.
usage | ( | $me | ) |
Definition at line 11 of file parallel.php.
waitJob | ( | & | $runningJobs, |
& | $statusList | ||
) |
Wait and collect a finished job process
$runningJobs | |
$statusList |
Definition at line 134 of file parallel.php.