Query: sched_rr_get_interval
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
sched_rr_get_interval(3) Library Functions Manual sched_rr_get_interval(3)NAMEsched_rr_get_interval - Returns the current quantum for process execution under the SCHED_RR policy (P1003.1b)LIBRARYRealtime Library (librt.so, librt.a)SYNOPSIS#include <sched.h> int sched_rr_get_interval ( pid_t pid, struct timespec *interval);PARAMETERSpid Specifies the ID of the process for which the quantum is to be returned. *interval Specifies the location to receive the current quantum for process execution under the SCHED_RR scheduling policy.DESCRIPTIONThe 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 round-robin 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 VALUESOn 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.ERRORSThe sched_rr_get_interval fails under the following condition: [ESRCH] The value of the pid parameter does not indicate an existing process.RELATED INFORMATIONFunctions: sched_getparam(3), sched_getscheduler(3), sched_setparam(3), sched_setscheduler(3) Guide to Realtime Programming delim off sched_rr_get_interval(3)
Related Man Pages |
---|
sched_rr_get_interval(2) - redhat |
sched_rr_get_interval(3rt) - sunos |
sched_rr_get_interval(2) - suse |
sched(3) - netbsd |
sched_get_priority_max(3) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Quantum/Unix |
timer interrupt |
specifying an execution time |
libquantum 1.1.0 (Development branch) |
Finding a rogue process |