renice

set nice values of running processes (POSIX)

Syntax:

renice increment [-g pgrp...] [-p pid...] [-u user...]

Options:

-g pgrp
Renice processes in this process group.
-p pid
Renice this process.
-u user
Renice processes owned by this user.
increment
A nice increment, represented as a decimal integer.

Examples:

Lower the priority of process 768 by 2:

    renice 2 -p 768

Description:

The renice utility adjusts the priority of one or more running processes. The specified nice increment is subtracted from the current priority of each selected process.

If you enter:It will:
a positive increment value (e.g. 2 or +2) lower the priority of a process, making it "nicer" to other processes
a negative increment value (e.g. -2) raise the priority of a process, making it "meaner" to other processes

Users may adjust their priority as follows:

If you're:You can change to any priority:
a normal userfrom 1 to 19
a superuser (root)from 1 to 29

Users without appropriate privileges can renice only the processes they own.

Exit status:

0
Successful completion.
>0
An error occurred.

See also: