policy-priority-range ( policy -- high low )
Unix Process Scheduling

Prev:MOST_IDLE_SCHED_POLICY ( -- value )
Next:priority-allowed? ( policy -- ? )


Vocabulary
unix.scheduler

Inputs
policyan int


Outputs
highan int
lowan int


Word description
Find the upper and lower bound on scheduler priority value, for a given scheduler policy. Each available scheduler policy (SCHED_OTHER, SCHED_FIFO, etc) may have its own range of allowable priorities.

Examples
USING: formatting unix.scheduler ; SCHED_OTHER policy-priority-range "High: %d Low: %d\n" printf
High: 0 Low: 0

USING: formatting unix.scheduler ; SCHED_FIFO policy-priority-range "High: %d Low: %d\n" printf
High: 99 Low: 1


Definition