sched_get_priority_max(2)
sched_get_priority_max, sched_get_priority_min - get scheduling policy priority range
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME sched_get_priority_max, sched_get_priority_min - get scheduling policy priority range C SYNOPSIS #include <sched.h> int sched_get_priority_max (int policy); int sched_get_priority_min (int policy); DESCRIPTION sched_get_priority_max and sched_get_priority_min return the maximum and minimum priority values, respectively, for the specified scheduling policy: SCHED_FIFO The first-in-first-out real-time policy SCHED_RR The round-robin real-time scheduling policy SCHED_TS The timeshare earnings based scheduling policy SCHED_OTHER 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. SEE ALSO realtime(5), sched_setparam(2), sched_getparam(2), sched_setscheduler(2), sched_yield(2), sched_rr_get_interval(2) DIAGNOSTICS Upon successful completion, a value of 0 is returned to the calling process. Otherwise, a value of -1 is returned and errno is set to indicate the error.