Handbook
Glossary
policy-priority-range ( policy -- high low )
Unix Process Scheduling
Prev:
MOST_IDLE_SCHED_POLICY ( -- value )
Next:
priority-allowed? ( policy -- ? )
Vocabulary
unix
.
scheduler
Inputs
policy
an
int
Outputs
high
an
int
low
an
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
USING:
system
vocabs.metadata
;
IN:
unix.scheduler
:
policy-priority-range
( policy -- high low )
os
bad-platform
;