priority-allowed? ( policy -- ? )
Unix Process Scheduling

Prev:policy-priority-range ( policy -- high low )


Vocabulary
unix.scheduler

Inputs
policyan int


Outputs
?a boolean


Word description
t if the input scheduling policy can be used with a non-zero static priority, f otherwise. This word allows a platform's real-time policies to be distinguished from normal scheduling policies.

Depending on platform, normal scheduling policies (such as SCHED_OTHER, SCHED_BATCH, and SCHED_IDLE) must be used with a static scheduling priority of 0. Similarly, the real-time policies must be used with a non-zero priority, within the range found by policy-priority-range.

Examples
USE: unix.scheduler SCHED_OTHER priority-allowed? .
f

USE: unix.scheduler SCHED_FIFO priority-allowed? .
t


Definition