David, >> - if (priority > 0) >> + if (priority > 1 && !sameprio) >> priority--; > Unless I'm missing something really obvious, shouldn't this one state: > if (priority > 0 && !sameprio) > priority--; > Or else 1 will be the lowest priority. [..] Yes, which is ok, since the range of valid SCHED_FIFO priorities is 1 to 99. A priority of 0 would cause sched_setscheduler() to set the EINVAL error condition. Carsten. -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html