Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
parallel.php File Reference

Go to the source code of this file.

Functions

 usage ($me)
 
 main (&$argv)
 
 spawnJob ($command)
 
 waitJob (&$runningJobs, &$statusList)
 
 getCPUCount ()
 

Function Documentation

getCPUCount ( )

Count number of CPUs

Returns
int The number of CPUs (0 if number of CPUs could not be detected)

Definition at line 154 of file parallel.php.

main ( $argv)

Definition at line 25 of file parallel.php.

+ Here is the call graph for this function:

spawnJob (   $command)

Spawn a new job process to execute the given command and return the job's process pid

Parameters
$command
Returns
int

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

Parameters
$runningJobs
$statusList

Definition at line 134 of file parallel.php.

← centre documentaire © anakeen