Thread
PHP Manual

Thread::getPeak

(PECL pthreads >= 0.0.33)

Thread::getPeakReturn the peak number of Threads.

说明

final public static int Thread::getPeak ( void )

Return the peak number of Threads executing concurrently in the current instance of PHP. Some system administrators choose to limit the amount of Threads an instance of PHP can create. If enabled the maximum number of Threads the current instance can create is returned by a call to Thread::getMax().

What counts as "an instance of PHP" depends on the current environment PHP and pthreads are executing in.

参数

此函数没有参数。

返回值

The peak number of Threads the current of PHP has executed.


Thread
PHP Manual