get the priority of a given process
#include <sys/sched.h> int getprio( pid_t pid );
The getprio() function returns the current priority of process pid. If pid is zero, the priority of the calling process is returned.
The priority, or -1 if an error occurs, in which case errno is set.
See qnx_scheduler().
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
errno, sched_getparam(), sched_getscheduler(), sched_setscheduler(), sched_yield(), setprio(), qnx_scheduler()