I looking for a way to start a real-time process or set a running process as a real-time process.
To start/set a process as real-time, you should use
Usage to start a new process:
chrt priority command [arguments]
Usage to set a running process:
chrt -r -p priority pid
sudo chrt -r 70 <your command>
<your command> & sudo chrt -r 70 $!
Of course, one can do this programmatically just by calling the relevant system calls. There are various commands that wrap these so that one can do also this at the level of shell programming.
- On HP-UX, the command wrapper for this is
- On FreeBSD, the command wrapper for this is
rtpriowith a nod in the manual to the HP-UX tool.
- On Illumos, and on Solaris and Ultrix before it, the command wrapper is
- It is
priocntlon Schillix, too.
- In the util-linux toolset for Linux-based operating systems, the command wrapper is
- In the BusyBox toolset, the command wrapper is
chrtwith different options available than for the util-linux tool.
- In the ToyBox toolset, the command wrapper is
chrtwith a third set of different options.