Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sched_setscheduler(2)

sched_setparam(2)

sched_getparam(2)

sched_yield(2)

sched_get_priority_max(2)

sched_get_priority_min(2)

sched_rr_get_interval(2)



sched_getscheduler(2)        DG/UX 5.4 Rel. 2.01       sched_getscheduler(2)


NAME
       sched_getscheduler - get the scheduling policy for a process

SYNOPSIS
       #include <sched.h>

       int sched_getscheduler (pid)
            pid_t     pid;

DESCRIPTION
       Use sched_getscheduler(2) to get the scheduling policy of process
       pid. If pid is 0, the policy of the calling process is returned. The
       policy values that may be returned are:

       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).

       This call requires no access to pid.

   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_getscheduler returns the scheduling policy of
       pid. If unsuccessful, the routine returns -1 and sets ERRNO to:

        ESRCH  Process pid doesn't exist or is negative.

SEE ALSO
       sched_setscheduler(2), sched_setparam(2), sched_getparam(2),
       sched_yield(2), sched_get_priority_max(2), sched_get_priority_min(2),
       sched_rr_get_interval(2).








Licensed material--property of copyright holder(s)                         1


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