You can use sudo chrt 99 myprog
to run a program with the highest real time priority.
Note, that the “niceness” value is not used for real time tasks. What you want to pay attention is the “PRI” row of htop
. You should see “RT” there for real time processes.
Have you change the realtime-priority
to 99
?