renice: split POSIX and util-linux implementations (#12047)

This commit is contained in:
Vitor Henrique
2024-01-09 18:18:23 -03:00
committed by GitHub
parent 73c8bd118f
commit fb6b981286
2 changed files with 26 additions and 7 deletions

18
pages/linux/renice.md Normal file
View File

@@ -0,0 +1,18 @@
# renice
> Alter the scheduling priority/niceness of one or more running processes.
> Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).
> See also: `nice`.
> More information: <https://manned.org/renice>.
- Set the absolute priority of a running [p]rocess:
`renice {{+3}} -p {{pid}}`
- Increase/decrease the priority of all processes owned by a [u]ser:
`renice --relative {{-4}} -u {{uid|user}}`
- Set the priority of all processes that belong to a process [g]roup:
`renice --absolute {{5}} -g {{process_group}}`