question re: scheduling policies

Adam Mckee (mckee@SEDSystems.ca)
Tue, 15 Jul 1997 15:09:10 -0600 (CST)


Hello all. I am new to the wacky world of kernel hacking, so this
question may be silly, but...

In kernel/sched.c:goodness(), I am puzzled by the following:

/*
* Realtime process, select the first one on the
* runqueue (taking priorities within processes
* into account).
*/
if (p->policy != SCHED_OTHER)
return 1000 + p->rt_priority;

I thought SCHED_OTHER *was* real-time... this snippet implies that
SCHED_RR and SCHED_FIFO are real-time. Is this true?

Thanks for your help!

-- Adam