![]()  | 
![]()  | 
![]()  | 
![]()  | 
Set thread scheduling parameters
#include <pthread.h>
int pthread_setschedparam(
               pthread_t thread,
               int policy,
               const struct sched_param *param );
For more information, see “Thread scheduling” in the QNX Neutrino Microkernel chapter of the System Architecture guide.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_setschedparam() function sets the scheduling policy and associated scheduling parameters of thread thread to the values specified in policy and param.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
pthread_getschedparam(), pthread_setschedprio(), sched_param
“Thread scheduling” in the QNX Neutrino Microkernel chapter of the System Architecture guide
“Scheduling policies” in the Programming Overview chapter of the QNX Neutrino Programmer's Guide
![]()  | 
![]()  | 
![]()  | 
![]()  |