The pthread_getschedparam function

Name

pthread_getschedparam -- 

Synopsis

#include <pthread.h>

int pthread_getschedparam (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_getschedparam function retrieves the scheduling policy and scheduling priority parameters for the thread ID given by thread, and then stores the values in the policy and sched_priority member of param, respectively.

Returns

The pthread_getschedparam function returns -1 and sets errno if there is an error.

Implementation Notes

The value for policy must be SCHED_FIFO.

See Also

The pthread_setschedparam function