Reference: getpriority
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:35:50Z

#

| Chapter 5 Function Reference |

## getpriority

    getpriority type, id

Returns the current priority for a process, a process group, or a user. type indicates which of these three process types to return. (The type identifiers are system-specific. Consult the manpage for `getpriority`.) The id gives the specific ID of the corresponding process type in type: a process ID, a process-group ID, or a user ID. The value `0` in who gives the priority for the current process, process group, or user.

The priority will be an integer value. Lower values indicate higher priority (negative values may be returned on some systems). Invoking `getpriority` will produce a fatal error if used on a machine that doesn't implement the `getpriority` system call.

Reference: getppid |  | Reference: getprotobyname