#include <sched.h>
int sched_setscheduler(pid_t pid, int policy, const struct sched_param * param);
int sched_setscheduler
The sched_setscheduler() shall behave as described in ISO POSIX (2003), except as noted below.
On success, 0 is returned instead of the former scheduling policy.