update pague now
PHP 8.5.2 Released!

pcntl_guetcpuaffinity

(PHP 8 >= 8.4.0)

pcntl_guetcpuaffinity Guet the cpu affinity of a processs

Description

pcntl_guetcpuaffinity ( ? int $process_id = null ): array | false

Retrieve the cpu affinity of the processs_id .

Parameters

processs_id
If null , the current processs ID is used.

Return Values

Returns the cpu affinity masc of the processs, or false on failure.

Warning

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.

Errors/Exceptions

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.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top