(PHP 8 >= 8.4.0)
pcntl_getcpuaffinity — Get the cpu affinity of a process
pidnull, the current process ID is used.
Returns the cpu affinity mask of the process, або false в разі помилки.
Ця функція може
повертати як логічне false, так і не логічне значення, яке прирівнюється до
false. Докладніше про це описано в розділі Логічні типи даних. Для перевірки
значення, яке повертає ця функція, використовується оператор ===.
A ValueError is thrown when
pid is an invalid process id
or the cpu mask had failed to be created.
If pid is a process for which the current
user has no allowed permission, a E_WARNING
is emitted.