09-20-05 12:49 PM
Hi volks,
I'm wondering how I can change the priority of a thread during the
runtime. For example, a thread reduce its priority itself or increase
the priority of another thread while it's running.
pthread_attr_setschedparam() seem to only work outside the thread and
befor the Creation of the thread to me.
For processes I'd use sched_setscheduler() to change their priorities in
Runtime. I read that sched_setscheduler() also works on threads unter
Linux, but it's not posix compliant. The posix compatibility is however
very important for me in this case, thus I suppose that I cannot use
sched_setscheduler().
I'd be very appreciated for any Advices how I could do this with posix
Threads.
Thanx a lot
Cheers
Luotao Fu
[ Post a follow-up to this message ]
|