pcntl_getpriority
pcntl_getpriority
Get the priority of any process
**pcntl_getpriority** $process_id int $mode
gets the priority of
. Because priority levels can differ between
system types and kernel versions, please see your system's getpriority(2)
man page for specific details.
pcntl_getpriority``process_id
process_idIf null, the process id of the current process is used.
mode
One of , ,
,
or .
PRIO_PGRP``PRIO_USER``PRIO_PROCESS``PRIO_DARWIN_BG``PRIO_DARWIN_THREAD
returns the priority of the process
or false on error. A lower numerical value causes more favorable
scheduling.
pcntl_getpriority
pcntl_setpriority