The following calls manipulate parameters that set the scheduling algorithm and priorities associated with a process.
#include <sched.h>
int sched_setscheduler(pid_t pid, int policy,
const struct sched_param *p);
int sched_getscheduler(pid_t pid);
struct sched_param {
...
int sched_priority;
...
};
#include <unistd.h>
int nice(int inc);
#include <sys/time.h>
#include <sys/resource.h>
int getpriority(int which, int who);
int setpriority(int which, int who, int prio);
#include <sched.h>
int sched_get_priority_max(int policy);
int sched_get_priority_min(int policy);