Set nice values of running processes (POSIX)
renice prioritylevels [-g pgrp...] [-p pid...] [-u user...]
The renice utility adjusts the priority of one or more running processes. The specified prioritylevels is subtracted from the current priority of each selected process.
If you enter: | It will: |
---|---|
a positive value (e.g. 2 or +2) | lower the priority of a process, making it "nicer" to other processes |
a negative 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 user | from 1 to 19 |
a superuser (root) | from 1 to 29 |
Users without appropriate privileges can renice only the processes they own.
Lower the priority of process 768 by 2:
renice 2 -p 768