![]() |
![]() |
![]() |
Get thread scheduling parameters
#include <pthread.h> int pthread_getschedparam( const pthread_t thread, int* policy, struct sched_param* param );
libc
The pthread_getschedparam() function gets the scheduling policy and associated scheduling parameters of thread thread and places them in policy and param.
The value of the sched_priority member of param is the priority specified by the most recent pthread_setschedparam() or pthread_create() call affecting the target thread, and doesn't reflect any temporary adjustment to the thread's priority due to priority inheritance.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_create(), pthread_setschedparam()
![]() |
![]() |
![]() |