Scheduling Chap 2. Scheduling Introduction to Scheduling (1) Bursts of CPU usage alternate with periods of I/O wait –a CPU-bound process –an I/O bound.

Slides:



Advertisements
Similar presentations
Scheduling Introduction to Scheduling
Advertisements

Uniprocessor Scheduling Chapter 9 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Tutorial 4 Scheduling. Why do we need scheduling? To manage processes according to requirements of a system, like: –User responsiveness or –Throughput.
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
G53OPS Operating Systems Graham Kendall Q Exam.
CPU Scheduling Tanenbaum Ch 2.4 Silberchatz and Galvin Ch 5.
Topic : Process Management Lecture By: Rupinder Kaur Lecturer IT, SRS Govt. Polytechnic College for Girls,Ludhiana.
CS 149: Operating Systems February 3 Class Meeting
OS, , Part II CPU Scheduling Department of Computer Engineering, PSUWannarat Suntiamorntut.
CH 5. CPU Scheduling Basic Concepts F CPU Scheduling  context switching u CPU switching for another process u saving old PCB and loading.
Operating Systems Process Scheduling (Ch 3.2, )
Exercise (5).
1 Threads CSCE 351: Operating System Kernels Witawas Srisa-an Chapter 4-5.
OS Spring ’ 04 Scheduling Operating Systems Spring 2004.
Chapter 2 Processes and Threads Scheduling Classical Problems.
Uniprocessor Scheduling III CPSC 410 Operating Systems Department of Physics, Computer Science and Engineering Christopher Newport University.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Job scheduling Queue discipline.
1 Lecture 10: Uniprocessor Scheduling. 2 CPU Scheduling n The problem: scheduling the usage of a single processor among all the existing processes in.
CPU Scheduling Chapter 6 Chapter 6.
Chapter 6: CPU Scheduling
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Processes and Threads.
Uniprocessor Scheduling
1 Process States (1) Possible process states –running –blocked –ready Transitions between states shown.
Chapter 4 Processor Management
Chapter 6 CPU SCHEDULING.
Round Robin Scheduling A preemptive scheduling designed for Time Sharing Systems The Ready Queue is treated as a circular queue A small execution.
Classification of scheduling policies Preemptive methods (typical representative: RR) Non-preemptive methods (typical representative: FCFS) Preemption.
Scheduling. Alternating Sequence of CPU And I/O Bursts.
1 Scheduling The part of the OS that makes the choice of which process to run next is called the scheduler and the algorithm it uses is called the scheduling.
1 Our focus  scheduling a single CPU among all the processes in the system  Key Criteria: Maximize CPU utilization Maximize throughput Minimize waiting.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
Chapter 5 Processor Scheduling Introduction Processor (CPU) scheduling is the sharing of the processor(s) among the processes in the ready queue.
Operating Systems Scheduling. Bursts of CPU usage alternate with periods of waiting for I/O. (a) A CPU-bound process. (b) An I/O-bound process. Scheduling.
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
Process Control Management
CSC 322 Operating Systems Concepts Lecture - 10: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Processor Scheduling Hank Levy. 22/4/2016 Goals for Multiprogramming In a multiprogramming system, we try to increase utilization and thruput by overlapping.
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
Operating Systems Scheduling. Scheduling Short term scheduler (CPU Scheduler) –Whenever the CPU becomes idle, a process must be selected for execution.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Lecture 5 Scheduling. Today CPSC Tyson Kendon Updates Assignment 1 Assignment 2 Concept Review Scheduling Processes Concepts Algorithms.
Lecturer 5: Process Scheduling Process Scheduling  Criteria & Objectives Types of Scheduling  Long term  Medium term  Short term CPU Scheduling Algorithms.
Scheduling.
INTRO TO PROCESS SCHEDULING Module 2.4 COP4600 – Operating Systems Richard Newman.
CPU SCHEDULING.
Networks and Operating Systems: Exercise Session 2
Priority Scheduling Example
Chapter 2 Scheduling.
Questions (True = A, False = B)
Chapter 2.2 : Process Scheduling
Process Scheduling B.Ramamurthy 9/16/2018.
CPSC 457 Operating Systems
Process Management with OS
Chapter 6: CPU Scheduling
Introduction What is an operating system bootstrap
Operating System Concepts
TDC 311 Process Scheduling.
Processes and Threads Part III
Exercise Ms.Reema alOraini
Process Management Scheduling
Processor Scheduling Hank Levy 1.
Uniprocessor scheduling
Scheduling 21 May 2019.
CPU Scheduling ( Basic Concepts)
CPU Scheduling.
Chapter 5: CPU Scheduling
Presentation transcript:

Scheduling Chap 2

Scheduling Introduction to Scheduling (1) Bursts of CPU usage alternate with periods of I/O wait –a CPU-bound process –an I/O bound process

Introduction to Scheduling Scheduling Algorithm Goals

Two Major Types Pre-emptive –O/S can remove a running process. –On the clock or Error Non Pre-Emptive –O/S can not remove a running process –Must complete or Block –DO_EVENTS()

Scheduling in Batch Systems An example of first come first served scheduling A arrives at zero and runs til 10. B arrives at one and needs 5 units. C arrives at two and needs 2 units. D arrivers at three and needs 1 unit. A finishes at 10, B at 15, C at 17 and D at 18. Average turnaround is? Average wait is ?

Scheduling in Batch Systems An example of shortest job first scheduling A arrives at zero and runs til 10. B arrives at one and needs 5 units. C arrives at two and needs 2 units. D arrivers at three and needs 1 unit. Time line is? Average turnaround is? Average wait is ?

Scheduling in Batch Systems An example of shortest time remaining scheduling A arrives at zero and runs til 10. B arrives at one and needs 5 units. C arrives at two and needs 2 units. D arrivers at three and needs 1 unit. Time line is? Average turnaround is? Average wait is ?

Scheduling in Batch Systems Three level scheduling

Scheduling in Interactive Systems Round Robin Scheduling –list of runnable processes –list of runnable processes after B uses up its quantum

Scheduling in Interactive Systems A scheduling algorithm with four priority classes

Honesty in Scheduling Who is the owner? Compute ratio –R = CPU units / CPU possible units Lying!

Scheduling in Real-Time Systems Schedulable real-time system Given –m periodic events –event i occurs within period P i and requires C i seconds Then the load can only be handled if

A problem Arrival Time0123 Process/JobABCD CPU units6314 Draw a time line for each process using FCFS, SJN, SRT, RR quanta of 2. Compute turnaround time and wait time for each process. Compute average turnaround and average wait for each method.