Thread
PHP Manual

Thread::getCount

(PECL pthreads >= 0.0.33)

Thread::getCountReturn the number of currently executing Threads.

说明

final public static int Thread::getCount ( void )

Returns the number of currently executing Threads.

参数

此函数没有参数。

返回值

The number of threads that are currently running. This number does not include any threads that are waiting to be joined, only those that are actively executing.


Thread
PHP Manual