sched_get_priority_max(2) DG/UX 5.4 Rel. 2.01 sched_get_priority_max(2)
NAME
sched_get_priority_max - get the highest priority allowed by a
scheduling policy
SYNOPSIS
#include <sched.h>
int sched_get_priority_max (policy)
int policy;
DESCRIPTION
Use sched_get_priority_max(2) to get the highest scheduling priority
allowed for processes governed by policy. The policy may be:
SCHED_DG_TS The default DG/UX timesharing policy (same as SCHED_OTHER
described in POSIX specifications)
SCHED_FIFO First-in-first-out restricted fixed priority
SCHED_RR Round robin restricted fixed priority with a timeslice
SCHED_DG_FIFO
DG/UX FIFO unrestricted fixed priority
These policies are explained in sched_setscheduler(2).
The priorities in a scheduling policy range from the low value
returned by sched_get_priority_min(2) to the maximum value returned
by this call. Larger numbers indicate higher priorities.
Note
* This routine is based on POSIX realtime extension document P1003.4
draft 12. It is therefore subject to change.
* Compilation of a source file using this routine requires that
feature macro _POSIX4_DRAFT_SOURCE be defined. This feature macro
is not enabled by any other feature macro, nor does it enable any
other feature macro.
* The compiled routine must be linked to library librte.a.
RETURN VALUE
If successful, sched_get_priority_max returns the maximum priority
allowed by policy. If unsuccessful, the routine returns -1 and sets
ERRNO to:
EINVAL The value of policy is invalid.
SEE ALSO
sched_get_priority_min(2), sched_rr_get_interval(2),
sched_setscheduler(2), sched_getscheduler(2), sched_setparam(2),
sched_getparam(2), sched_yield(2).
Licensed material--property of copyright holder(s) 1