Process Scheduling

Process Scheduling - Process Scheduling From the users...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Process Scheduling From the user’s point of view, an OS allows running multiple processes simultaneously. In reality, the OS runs one process after another to give the illusion that multiple processes run simultaneously. The Process Scheduler is the OS subsystem that runs one process after the other and decides what process to run next. A Context Switch is the procedure used by the OS to switch from one process to another
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Process Scheduling Steps of a Context Switch Save current running process in process table Load next ready process from process table and put registers and PC in the CPU. Context Switches may happen as a result of: A process needs to go to wait state, and therefore, another process can be scheduled. A process yields (gives up) the CPU so another process can run. Timer interrupt ( Only for Preemptive Scheduling)
Background image of page 2
Types of Scheduling There are two types of scheduling: Non Preemptive Scheduling Preemptive Scheduling
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue.

Page1 / 6

Process Scheduling - Process Scheduling From the users...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online