Returns the scheduling priority of a process.
int getpri (ProcessID) pid_t ProcessID;
The getpri subroutine returns the scheduling priority of a process.
ProcessID | Specifies the process ID. If this value is 0, the current process scheduling priority is returned. |
Upon successful completion, the getpri subroutine returns the scheduling priority of a thread in the process. Otherwise, a value of -1 is returned and the errno global variable is set to indicate the error.
The getpri subroutine is unsuccessful if one of the following is true:
This subroutine is part of Base Operating System (BOS) Runtime.
The setpri subroutine.
Performance-Related Subroutines in AIX Versions 3.2 and 4 Performance Tuning Guide.
Subroutines Overview in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.