Set the scheduling policy for a process

chrt

  • Manipulate the real-time attributes of a process.
    More information: <https://man7.org/linux/man-pages/man1/chrt.1.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install chrt on any operating system with command-not-found.com