pcntl_setpriority()
function pcntl_setpriority(int $priority, int $process_id = null, int $mode = 0): bool
Changes a process, process-group, or user scheduling priority.
Parameters:
$priority(int)$process_id(int), defaultnull, optional$mode(int), default0, optional
Returns: bool
Availability
- Compiled (AOT): supported on the three executable/release hosts (macOS ARM64, Linux ARM64, and Linux x86_64); calls are refused at compile time for iOS library targets.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/pcntl/pcntl_setpriority.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how pcntl_setpriority is implemented in the compiler, see the internals page.