프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$processes | process list |
메소드 | 설명 | |
---|---|---|
aliveCount ( ) : integer | get the count of running processes | |
getProcessByPid ( $pid ) : null | |
get process by pid | |
isFinished ( ) : boolean | if all processes are stopped | |
shutdown ( integer $signal = SIGTERM ) | shutdown all process | |
shutdownForce ( ) | shutdown sub process and no wait. it is dangerous, maybe the sub process is working. | |
wait ( boolean | true $block = true, integer $sleep = 100 ) | waiting for the sub processes to exit |
public getProcessByPid ( $pid ) : null | |
||
$pid | ||
리턴 | null | |
public shutdownForce ( ) |
public wait ( boolean | true $block = true, integer $sleep = 100 ) | ||
$block | boolean | true | if true the parent process will be blocked until all sub processes exit. else it will check if there are processes that had been exited once and return. |
$sleep | integer | when $block is true, it will check sub processes every $sleep minute |