update page now
PHP 8.4.22 Released!

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.

Смотрите также

  • pcntl_getcpuaffinity() - Получает информацию о привязке процессора к процессу
  • pcntl_setcpuaffinity() - Устанавливает связку процессора с процессом
Добавить

Примечания пользователей

Пользователи ещё не добавляли примечания для страницы
To Top