Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
renice
Set nice values of running processes (POSIX)
Syntax:
renice prioritylevels [-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.
- prioritylevels
- The amount to adjust the priority by. Positive numbers will lower the priority by that many full priority levels, while negative numbers will raise the priority.
Description:
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.
Examples:
Lower the priority of process 768 by 2:
renice 2 -p 768
Exit status:
- 0
- Successful completion.
- >0
- An error occurred.
See also:
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Next]](../next.gif)