Set a thread's priority
#include <pthread.h> int pthread_setschedprio( pthread_t thread, int prio );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_setschedprio() function sets the priority of thread thread to prio.
If the thread is running or runnable, the effect on its position in the ready queue depends on the direction of the modification:
The pthread_setschedprio() function gives you a way to temporarily raise a thread's priority and lower it again, without yielding to other threads of the same priority. This is necessary if you have to implement your own strategies for bounding priority inversion, such as priority inheritance or priority ceilings.
POSIX 1003.1 THR TPS
pthread_getschedparam(), pthread_setschedparam(), sched_setparam()
“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