1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 12:35:54 +02:00
tldr/pages/linux/chrt.md
Stefan Breunig 3a575ec652
chrt: fix argument order when changing the scheduling policy (#12723)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2024-05-04 17:56:47 +02:00

478 B

chrt

Manipulate the real-time attributes of a process. More information: https://man7.org/linux/man-pages/man1/chrt.1.html.

  • Display attributes of a process:

chrt --pid {{PID}}

  • Display attributes of all threads of a process:

chrt --all-tasks --pid {{PID}}

  • Display the min/max priority values that can be used with chrt:

chrt --max

  • Set the scheduling policy for a process:

chrt --{{deadline|idle|batch|rr|fifo|other}} --pid {{priority}} {{PID}}