sched_get_priority_max(2) sched_get_priority_max(2)
sched_get_priority_max, sched_get_priority_min - get scheduling policy
priority range
#include <sched.h>
int sched_get_priority_max (int policy<b>);
int sched_get_priority_min (int policy<b>);
sched_get_priority_max and sched_get_priority_min return the maximum and
minimum priority values, respectively, for the specified scheduling
policy:
SCHED_FIFO [Toc] [Back]
The first-in-first-out real-time policy
SCHED_RR [Toc] [Back]
The round-robin real-time scheduling policy
SCHED_TS [Toc] [Back]
The timeshare earnings based scheduling policy
SCHED_OTHER [Toc] [Back]
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.
sched_get_priority_max and sched_get_priority_min will fail if the
following is true:
[EINVAL] The policy argument does not represent a valid scheduling
policy.
realtime(5), sched_setparam(2), sched_getparam(2), sched_setscheduler(2),
sched_yield(2), sched_rr_get_interval(2)
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.
PPPPaaaaggggeeee 1111 [ Back ]
|