pcntl_setcpuaffinity
pcntl_setcpuaffinity
Set the cpu affinity of a process
bool **pcntl_setcpuaffinity** $process_id array $cpu_ids
Sets the cpu affinity for the with the cpu affinity mask given by
.
process_id``cpu_ids
process_idIf null, the current process ID is used.
cpu_idsThe cpu affinity mask comprised of one or more cpu id for binding the process to.
return.success
A is thrown if one
of the cpu id from the is invalid.
A is thrown if
is an invalid process id
or the cpu mask had failed to be created.
TypeError``cpu_ids``ValueError``process_id
pcntl_getcpuaffinity