lkml.org 
[lkml]   [1997]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectquestion re: scheduling policies
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

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.051 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site