#ifndef _SCHED_H #define _SCHED_H 1 // https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html #include __BEGIN_DECLS #include #define __need_pid_t #include #include #define SCHED_FIFO 1 #define SCHED_RR 2 #define SCHED_SPORADIC 3 #define SCHED_OTHER 4 int sched_get_priority_max(int policy); int sched_get_priority_min(int policy); int sched_getparam(pid_t pid, struct sched_param* param); int sched_getscheduler(pid_t pid); int sched_rr_get_interval(pid_t pid, struct timespec* interval); int sched_setparam(pid_t pid, const struct sched_param* param); int sched_setscheduler(pid_t pid, int, const struct sched_param* param); int sched_yield(void); __END_DECLS #endif