#include <sched.h> int sched_rr_get_interval( pid_t pid, struct timespec *interval );
On error, this routine returns -1 and sets errno to one of the following:
This routine returns the length of the timeslice quantum in the
interval
parameter for the specified pid
.
The pid
argument should be 0 to indicate the calling process.
Copyright © 1988-2007OAR Corporation