int sched_rr_get_interval(pid_t pid, struct timespec *tp);
struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; |
The round robin time quantum value is not alterable under Linux 1.3.81.
POSIX systems on which sched_rr_get_interval() is available define_POSIX_PRIORITY_SCHEDULING in <unistd.h>.
標籤 | 描述 |
---|---|
EFAULT | Problem with copying information to userspace. |
EINVAL | Invalid pid. |
ENOSYS | The system call is not yet implemented. |
ESRCH | The process whose ID is pid could not be found. |
Programming for the real world - POSIX.4 by Bill O. Gallmeister, O’Reilly & Associates, Inc., ISBN 1-56592-074-0