Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing priority of main thread

14 views
Skip to first unread message

lance...@yahoo.com

unread,
Nov 10, 2008, 1:39:58 AM11/10/08
to
Hi,

Is it possible to change the priority of the main thread? If so, how
do I do that?

Thank you.

Regards,
Rayne

lance...@yahoo.com

unread,
Nov 10, 2008, 2:34:23 AM11/10/08
to
On Nov 10, 2:39 pm, "lancer6...@yahoo.com" <lancer6...@yahoo.com>
wrote:

I just realized that I can use

param.sched_priority = 20;
pthread_setschedparam(pthread_self(), SCHED_FIFO, &param);

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.

0 new messages