Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sched_get_priority_min(2) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought



sched_get_priority_min(2)      DG/UX R4.11MU05     sched_get_priority_min(2)


NAME
       sched_get_priority_min - get the lowest priority allowed by a
       scheduling policy

SYNOPSIS
       #include <sched.h>

       int schedgetprioritymin (policy)
            int       policy;

DESCRIPTION
       Use schedgetprioritymin(2) to get the lowest 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

       SCHED_DG_LIFO
                   DG/UX LIFO unrestricted fixed priority

       These policies are explained in schedsetscheduler(2).

       The priorities in a scheduling policy range from the low value
       returned by this call to the maximum value returned by
       schedgetprioritymax(2).  Smaller numbers indicate lower
       priorities.

   Note
        * This routine is based on POSIX realtime extension document P1003.4
          draft 14. 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, schedgetprioritymin returns the minimum priority
       allowed by policy. If unsuccessful, the routine returns -1 and sets
       ERRNO to:

        EINVAL The value of policy is invalid.

SEE ALSO
       schedgetprioritymax(2), schedrrgetinterval(2),
       schedsetscheduler(2), schedgetscheduler(2), schedsetparam(2),
       schedgetparam(2), schedyield(2).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026