The
sched_get_priority_max()
and
sched_get_priority_min()
system calls return the appropriate maximum or minimum, respectively,
for the scheduling policy specified by
policy.
The
sched_rr_get_interval()
system call updates the
timespec
structure referenced by the
interval
argument to contain the current execution time limit (i.e., time
quantum) for the process specified by
pid.
If
pid
is zero, the current execution time limit for the calling process is
returned.
The value of
policy
should be one of the scheduling policy values defined in
<sched.h>:
[SCHED_FIFO]
|
First-in-first-out fixed priority scheduling with no round robin scheduling;
|
[SCHED_OTHER]
|
|
The standard time sharing scheduler;
|
[SCHED_RR]
|
Round-robin scheduling across same priority processes.
|