CS 111 Scribe Notes

Saketh Kasibatla

10/14/2013

1 Scheduling

1.1 Mechanisms

The mechanism for scheduling is how we actually switch from process to process. This problem has several solutions:

  1. We can use yield() for cooperative multitasking.
  2. Preemptive Scheduling (linux solution)

1.2 Policy

Policy dictates which process we choose to run when the kernel is asked to schedule a new process, either by the cooperative or preemptive mechanism. To construct a well thought-out policy, we must address the following long, medium and short term issues:

Generally, we can have two main policy approaches when dealing with realtime scheduling: