Well...
man chrt
The main purpose of this command is to set the scheduling
algorithm that is to be used for a particular process.
The fly in this ointment, of course, is that in an
actual RTOS situation, it really doesn't work well to set the algorithm for "one process," or even for a group of processes, when other processes on the same system don't work the same way.
Somebody's gonna get the short end of the stick.
If you look at the scheduling behavior of a given process,
when it has control and
as long as it has control, then, yes, it will get dispatched as the chosen algorithm indicates. However, if you look at the behavior of the
system over time, you now see a curious and rather dysfunctional (IMHO) admixture... kind of like a committee meeting.
Of course, Linux
is doing the best that it can, given the (intentional) design that it has. You are putting apples and oranges together in the same bushel basket, and it's trying its best to make tasty juice out of them, but (IMHO) it's a problem that really can't be solved.