*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> sched_rr_get_interval (3)              
Title
Content
Arch
Section
 

sched_rr_get_interval(3)

Contents


NAME    [Toc]    [Back]

       sched_rr_get_interval  -  Returns  the current quantum for
       process execution under the SCHED_RR policy (P1003.1b)

SYNOPSIS    [Toc]    [Back]

       #include <sched.h>

       int sched_rr_get_interval (  pid_t  pid,  struct  timespec
       *interval);


LIBRARY    [Toc]    [Back]

       Realtime Library (librt.so, librt.a)

PARAMETERS    [Toc]    [Back]

       Specifies  the  ID of the process for which the quantum is
       to be returned.  Specifies the  location  to  receive  the
       current  quantum  for process execution under the SCHED_RR
       scheduling policy.

DESCRIPTION    [Toc]    [Back]

       The sched_rr_get_interval function  updates  the  timespec
       structure  referenced  by the interval argument to contain
       the current quantum for the process  executing  under  the
       SCHED_RR  policy.  If  a  process running under the roundrobin
 scheduling policy runs without blocking or  yielding
       for  more than this amount of time, it may be preempted by
       another runnable process (at the same priority).

       If the PID argument is zero, the  current  execution  time
       limit for the calling process is returned.

       No    special   privileges   are   needed   to   use   the
       sched_rr_get_interval function.

RETURN VALUES    [Toc]    [Back]

       On a successful call, a value of 0 (zero) is returned.  On
       an  unsuccessful call, a value of -1 is returned and errno
       is set to indicate the error.

ERRORS    [Toc]    [Back]

       The sched_rr_get_interval fails under the following condition:
  The value of the pid parameter does not indicate an
       existing process.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:    sched_getparam(3),    sched_getscheduler(3),
       sched_setparam(3), sched_setscheduler(3)

       Guide to Realtime Programming



                                         sched_rr_get_interval(3)
[ Back ]
 Similar pages
Name OS Title
sched_getscheduler Tru64 Returns the scheduling policy of a process (P1003.1b)
sched_get_priority_min Tru64 Returns the maximum or minimum priority for the specified scheduling policy (P1003.1b)
sched_get_priority_max Tru64 Returns the maximum or minimum priority for the specified scheduling policy (P1003.1b)
nanosleep Tru64 Suspends a process from execution for the specified timer interval (P1003.1b)
sched_getparam Tru64 Returns the scheduling parameters of the specified process (P1003.1b)
sched_setscheduler Tru64 Sets the scheduling policy and scheduling parameters of the specified process (P1003.1b)
sched_rr_get_interval Linux get the SCHED_RR interval for the named process
aio_return Tru64 Returns the status of an asynchronous I/O operation (P1003.1b)
aio_error Tru64 Returns the error status of a specified asynchronous I/O operation (P1003.1b)
mq_getattr Tru64 Returns the status and attributes of a message queue (P1003.1b)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service