pcntl_getcpuaffinity
pcntl_getcpuaffinity
Get the cpu affinity of a process
**pcntl_getcpuaffinity** $process_id
Retrieve the cpu affinity of the .
process_id
process_idIf null, the current process ID is used.
Returns the cpu affinity mask of the process, return.falseforfailure.
A is thrown when
is an invalid process id
or the cpu mask had failed to be created.
ValueError``process_id
If is a process for which the current
user has no allowed permission, a
is emitted.
process_id``E_WARNING
pcntl_setcpuaffinity