Is it possible to change the priority of the main thread? If so, how
do I do that?
Thank you.
Regards,
Rayne
I just realized that I can use
param.sched_priority = 20;
pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m);
to change the priority of the main thread, although that also means
the subsequently created threads will also inherit the priority,
unless I change them.