lkml.org 
[lkml]   [2007]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectMAX_RT_PRIO - 1 Highest prio?
Hello,

First, I'm assuming that if I want my task to have the HIGHEST priority
in the system (i.e. preempt any other task whenever it is put into the
ready queue (assuming I have preemption turned on/configured)), I use
sched_setscheduler (...) and use the sched_priority in sched_param for
MAX_RT_PRIO -1. Is this correct?

Second, assuming that MAX_RT_PRIO-1 is the highest, would it be bad on
an SMP/Hyperthreading system (that's using the migration thread
balancing in 2.6.20.7) to set a task's priority to MAX_RT_PRIO -1 given
the fact that the migration threads are already set to MAX_RT_PRIO -1?
Should I be setting my task's prio to MAX_RT_PRIO-2 to not interfere
with the load balancing?

Thanks,
Chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-20 01:23    [W:0.106 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site