pcntl_getcpu
PHP Manual
PHP Manual»Функції PCNTL»pcntl_getcpu

pcntl_getcpu

(No version information available, might only be in Git)

pcntl_getcpuGet the CPU number on which the calling process last executed

Опис

function pcntl_getcpu(): int

pcntl_getcpu() returns the number of the CPU on which the calling process was last executed. This function uses the sched_getcpu(3) system call available on Linux.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the CPU number as an int.

Прогляньте також

To Top