I'm write a time-critical application in C on an embedded computer and need to change the scheduling policy of the process. Using pthread_setscheduler
with SCHED_RR
leads to sufficient results for me. But now the application needs root-rights. But giving root-rights to the application is not very nice. Is there any possibility to set round-robin without the need of root-rights?
Or there are a more elegant solution?
Another approach with setcap
sudo setcap cap_sys_nice+ep my_application
leads to problems while loading some own shared libraries which are placed in several folders.