PHP.nl

pcntl_setpriority

pcntl_setpriority

Change the priority of any process

bool **pcntl_setpriority** int $priority  $process_id int $mode
sets the priority of

. pcntl_setpriority``process_id

priority is generally a value in the range to . The default priority is while a lower numerical value causes more favorable scheduling. Because priority levels can differ between system types and kernel versions, please see your system's setpriority(2) man page for specific details. priority``-20``20``0

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

return.success

pcntl_getpriority``pcntl_setpriority