Multithreaded Programming Guide

Get the Thread Priority

thr_getprio(3T)

Use thr_getprio(3T) to get the current priority for the thread. Each thread inherits a priority from its creator. thr_getprio() stores the current priority, tid, in the location pointed to by newprio. (For POSIX threads, see "pthread_getschedparam(3T)".)

#include <thread.h>

int thr_getprio(thread_t tid, int *newprio)