版权所有 © 2014 tutorialspoint
int sched_rr_get_interval(pid_t pid, struct timespec *tp);
struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ };
在 Linux 1.3.81 下,循环时间片值不可更改。
在提供 sched_rr_get_interval() 的 POSIX 系统上,<unistd.h> 中定义了 _POSIX_PRIORITY_SCHEDULING。
sched_setscheduler (2)
Programming for the real world - POSIX.4 by Bill O. Gallmeister, O’Reilly & Associates, Inc., ISBN 1-56592-074-0
广告