mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Questions about linux scheduler
@ 2009-10-29 15:08 Daniel Rodrick
  2009-10-29 19:58 ` Chris Friesen
  2009-10-29 20:05 ` Jonathan Corbet
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Rodrick @ 2009-10-29 15:08 UTC (permalink / raw)
  To: Linux Newbie, Kernel Newbies, linux-kernel

Hi list,

I'm following the Robert Love's book and am trying to understand the
Linux O(1) scheduler. So here is my understanding. The kernel allows
the applications to specify two types of priorities

* Realtime Priorities: Range from 0 to 99
* Non-realtime priorities: Also called "nice" values range from -20 to +19.

(The above are mutually exclusive)


Over all Scheduling algo
=================
* A total of 140 priorities (100 RT + 40 non-RT) - these priorities
are static - do not change over time.
* A lower priority process will run only if there are no runnable
processes in priority above it - this automatically means that all RT
processes get to run before non-RT processes.
 * tasks on the same priority level are scheduled round robin

Is my above understanding correct? Where my understanding doesn't fit
is the conncept of dynamic timeslice calculation. IMHO, the dynamic
timeslice calculation applies only to Non-RT processes, right? Because
a higher priority RT process should always get to run.

Thanks,

Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-30 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-29 15:08 Questions about linux scheduler Daniel Rodrick
2009-10-29 19:58 ` Chris Friesen
2009-10-30 10:20   ` Daniel Rodrick
2009-10-30 15:55     ` Mulyadi Santosa
2009-10-29 20:05 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®