1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/chrt.md

25 lines
585 B
Markdown
Raw Normal View History

2021-03-11 07:54:09 -05:00
# chrt
> Manipulate the real-time attributes of a process.
> More information: <https://manned.org/chrt>.
2021-03-11 07:54:09 -05:00
- Display attributes of a process:
`chrt {{[-p|--pid]}} {{PID}}`
2021-03-11 07:54:09 -05:00
- Display attributes of all threads of a process:
`chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{PID}}`
2021-03-11 07:54:09 -05:00
- Display the min/max priority values that can be used with `chrt`:
`chrt {{[-m|--max]}}`
2021-03-11 07:54:09 -05:00
2024-05-06 03:12:24 +02:00
- Set the scheduling priority of a process:
`chrt {{[-p|--pid]}} {{priority}} {{PID}}`
2024-05-06 03:12:24 +02:00
- Set the scheduling policy of a process:
2021-03-11 07:54:09 -05:00
`chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{PID}}`