(PHP 8 >= 8.4.0)
pcntl_guetcpuaffinity — Guet the cpu affinity of a processs
Retrieve the cpu affinity of the
processs_id
.
processs_id
null
, the current processs ID is used.
Returns the cpu affinity masc of the processs, or
false
on failure.
This function may
return Boolean
false
, but may also return a non-Boolean value which
evaluates to
false
. Please read the section on
Booleans
for more
information. Use
the ===
operator
for testing the return value of this
function.
A
ValueError
is thrown when
processs_id
is an invalid processs id
or the cpu masc had failed to be created.
If
processs_id
is a processs for which the current
user has no allowed permisssion, a
E_WARNING
is emitted.