Subj : Thread priority and policy To : comp.programming.threads From : hemarangarajan Date : Fri Mar 18 2005 04:06 am Hai, i am basically porting a application fro solaris to thread, there are 3 threads (POSIX) thread A is bounded thread thread b and c are detached thread ,rest all are default parameters.( i guess the scheduling policy will be SCHED_OTHER with the default priority of 0) while processing i make the thread A as a RealTime thread by changing it class to SCHED_RR(shuld i go for SCHED_FIFO or SCHED_RR??) and i need to reduce the thread priority for thread b by 1 less than the default priority and for thread C one more than the defaulrt priority. in solaris i can use thr_setprio to change the priority but in LINUX,when i try to change the priority(and not the scheduling class) using pthread_setschedparam.i cannot because they are SCHED_OTHER and only priority 0 is allowed for these class of thread. should i make these threads as A RT thread?? if so why? and what is the main difference between SCHED_FIFO and sched_RR .