#include <pthread.h> int pthread_setschedparam ( pthread_t thread, int policy, const struct sched_param *param);