hi rfr1tz,
As you said one thread should be RT and other is non RT.
For RT,
You need to give the scheduling policy, tid and sched_priority.
1) RT thread.(here i am giving max priority, u can give any)
also it needs su priority.
RT thread can have SCHED_FIFO or SCHED_RR policy.
...
struct sched_param p;
p. sched_priority= sched_get_priority_max(SCH
pthread_setschedparam(pthr
2:) leave it as it is. Default priority will be ok.
But if you want to change, it is similar as above.
give it SCHED_OTHER policy and some priority you like.
regards manish
Main Topics
Browse All Topics





by: sunnycoderPosted on 2004-06-06 at 22:20:34ID: 11246267
You need superuser permissions for this ... you can change the priority of a thread by modifying the sched_priority field of the sched_param structure
use pthread_setschedparam() for this