The pthread_setschedparam function

Name

pthread_setschedparam -- 

Synopsis

#include <pthread.h>

int pthread_setschedparam (pthread_t thread, int policy, struct sched_param *param);

Description

The pthread_setschedparam and pthread_getschedparam functions allow the scheduling policy and scheduling priority parameters to be set and retrieved for individual threads.

The pthread_setschedparam function sets the scheduling policy and related scheduling priority for the thread ID given by thread to the policy and associated priority provided in policy, and the sched_priority member of param, respectively.

Returns

The pthread_setschedparam function returns 1 and sets errno in th event of an error.

Implementation Notes

The value for policy must be SCHED_FIFO.

See Also

The pthread_getschedparam function