Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sched_getscheduler(2) — DG/UX 5.4R2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought



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 schedgetscheduler (pid)
            pidt     pid;

DESCRIPTION
       Use schedgetscheduler(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 schedsetscheduler(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, schedgetscheduler 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
       schedsetscheduler(2), schedsetparam(2), schedgetparam(2),
       schedyield(2), schedgetprioritymax(2), schedgetprioritymin(2),
       schedrrgetinterval(2).








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


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