get the current priority of a process
#include <sys/sched.h> int sched_getparam( pid_t pid, struct sched_param *param );
The sched_getparam() function gets the current priority of the process specified by pid (or the current process if pid is zero), and puts it in the sched_priority member of the sched_param structure pointed to by param.
POSIX 1003.4
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
errno, getprio(), sched_getscheduler(), sched_setparam(), sched_setscheduler(), sched_yield(), setprio(), qnx_scheduler()