Name
setpriority
Synopsis
setpriority which, who, priority
Sets the current priority
for a process, a process group, or a user.
which must indicate one of these types:
PRIO_PROCESS, PRIO_PGRP, or PRIO_USER.
who, therefore, identifies the specific
process, process group, or user with its ID.
priority is an integer number that will
be added to or subtracted from the current priority; the lower the
number, the higher the priority. The interpretation of a given
priority may vary from one operating system to the next. See
setpriority on your system.
Invoking setpriority will
produce a fatal error if used on a machine that doesn’t implement
setpriority.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access