2021-03-11 07:54:09 -05:00
|
|
|
# chrt
|
|
|
|
|
|
|
|
> Manipulate the real-time attributes of a process.
|
2024-06-18 05:48:58 +02:00
|
|
|
> More information: <https://manned.org/chrt>.
|
2021-03-11 07:54:09 -05:00
|
|
|
|
|
|
|
- Display attributes of a process:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`chrt {{[-p|--pid]}} {{PID}}`
|
2021-03-11 07:54:09 -05:00
|
|
|
|
|
|
|
- Display attributes of all threads of a process:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`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`:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`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:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`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
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{PID}}`
|