Thread
PHP Manual

Thread::getMax

(PECL pthreads >= 0.0.33)

Thread::getMaxReturn the maximum number of Threads an instance of PHP may create.

说明

final public static int Thread::getMax ( void )

Some system administrators choose to limit the amount of Threads an instance of PHP can create. If the number is set and reached any calls to Thread::start() will fail, generating a warning.

参数

此函数没有参数。

返回值

The maximum number of Threads as defined by system administrators.


Thread
PHP Manual