sched_get_priority_max, sched_get_priority_min - get priority limits
#include <sys.h>
The sched_get_priority_max() and sched_get_priority_min() functions return the appropriate maximum or minimum for the scheduling policy specified by policy.
The policy must be
The value of the maximum or minimum priority is returned.
pthread_getprio(), pthread_setprio()