pcntl_getpriority
(PHP 5, PHP 7, PHP 8)
pcntl_getpriority — Get the priority of any process
Return Values
pcntl_getpriority() returns the priority of the process
or false on error. A lower numerical value causes more favorable
scheduling.
WarningThis 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.