schedgetprioritymax(2) schedgetprioritymax(2)
NAME
schedgetprioritymax, schedgetprioritymin - get scheduling policy
priority range
C SYNOPSIS
#include <sched.h>
int schedgetprioritymax (int policy);
int schedgetprioritymin (int policy);
DESCRIPTION
schedgetprioritymax and schedgetprioritymin return the maximum and
minimum priority values, respectively, for the specified scheduling
policy:
SCHEDFIFO
The first-in-first-out real-time policy
SCHEDRR
The round-robin real-time scheduling policy
SCHEDTS
The timeshare earnings based scheduling policy
SCHEDOTHER
The scheduling policy is equivalent to the SCHED_TS
Unlike IRIX 6.2 and earlier releases, processes having a higher numerical
priority value are more important than processes having a lower numerical
priority value.
Arbitrary priority values within the range should not be used.
Developers must consider the needs of the application and how it should
interact with the rest of the system, before selecting a real-time
priority. To aid in this decision, the priorities of the system threads
should be considered. See the "Real-Time Priority Band" section of
realtime(5) for more detailed information.
schedgetprioritymax and schedgetprioritymin will fail if the
following is true:
[EINVAL] The policy argument does not represent a valid scheduling
policy.
SEE ALSO
DIAGNOSTICS
Upon successful completion, the scheduling priority maximum or minimum
for policy is returned to the calling process. Otherwise, a value of -1
is returned and errno is set to indicate the error.
Page 1