体验新版 GitCode,发现更多精彩内容 >>
#include <sched.h> #include "syscall.h" int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param) { static const struct sched_param def; return syscall(SYS_sched_setscheduler, pid, sched, &def); }