1

How to set High Thread Priority?

view story
linux-howto

http://qt-project.org – I use Qt for Embedded Linux 4.7.3. And I have a thread that should be run with high priority. But to set high priority to thread a process have to have root privileges. But I don’t want process is running with root privileges. I have tried two approches: 1) I execute process by root, set the thread high priority and call setuid(1000) to reduce the privilege level. But, in this case ‘Qt for Embedded Linux data directory’(/tmp/qtembedded-0) is owned by root and after changing process uid my program can’t access it. 2) I execute process by root with setuid fl (HowTos)