Lesson Objectives Aims Key Words

Slides:



Advertisements
Similar presentations
Scheduling Introduction to Scheduling
Advertisements

CPU Scheduling Tanenbaum Ch 2.4 Silberchatz and Galvin Ch 5.
CS 149: Operating Systems February 3 Class Meeting
IT Systems Multiprocessor System EN230-1 Justin Champion C208 –
OS Spring ’ 04 Scheduling Operating Systems Spring 2004.
Operating Systems (CSCI2413) Lecture 4 Process Scheduling phones off (please)
CPU-Scheduling Whenever the CPU becomes idle, the operating system must select one of the processes in the ready queue to be executed. The short term scheduler.
Chapter 4 Processor Management
Chapter 5 – CPU Scheduling (Pgs 183 – 218). CPU Scheduling  Goal: To get as much done as possible  How: By never letting the CPU sit "idle" and not.
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.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
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.
Process Control Management
Processor Scheduling Hank Levy. 22/4/2016 Goals for Multiprogramming In a multiprogramming system, we try to increase utilization and thruput by overlapping.
Copyright © Curt Hill More on Operating Systems Continuation of Introduction.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
Scheduling.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
CPU SCHEDULING.
Lesson Objectives Aims Key Words
Applied Operating System Concepts -
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Chapter 5a: CPU Scheduling
Uniprocessor Scheduling
Networks and Operating Systems: Exercise Session 2
April 6, 2001 Gary Kimura Lecture #6 April 6, 2001
Uniprocessor Scheduling
CPU scheduling 6. Schedulers, CPU Scheduling 6.1. Schedulers
Uniprocessor Scheduling
Chapter 2.2 : Process Scheduling
CPU scheduling 6. Schedulers, CPU Scheduling 6.1. Schedulers
Process Scheduling B.Ramamurthy 9/16/2018.
CPU Scheduling.
Chapter 6: CPU Scheduling
Chapter 6: CPU Scheduling
Chapter 6: CPU Scheduling
Process management Information maintained by OS for process management
פרק שלישי – תזמון תהליכים
Process Management with OS
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 5: CPU Scheduling
OverView of Scheduling
Operating System Concepts
3: CPU Scheduling Basic Concepts Scheduling Criteria
Chapter5: CPU Scheduling
TDC 311 Process Scheduling.
Processes and Threads Part III
Operating systems Process scheduling.
Last Week Introduced operating systems Discussed the Kernel
Chapter 9 Uniprocessor Scheduling
Chapter 6: CPU Scheduling
CPU SCHEDULING.
Outline Scheduling algorithms Multi-processor scheduling
CPU scheduling decisions may take place when a process:
Process Scheduling Decide which process should run and for how long
CS703 – Advanced Operating Systems
Processor Scheduling Hank Levy 1.
Scheduling.
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Shortest-Job-First (SJR) Scheduling
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 6: Scheduling Algorithms Dr. Amjad Ali
Chapter 6: CPU Scheduling
Uniprocessor Scheduling
Uniprocessor Scheduling
CPU Scheduling: Basic Concepts
Module 5: CPU Scheduling
CPU Scheduling CSE 2431: Introduction to Operating Systems
Presentation transcript:

Lesson Objectives Aims Key Words Be able to describe how processes are scheduled in an operating system. Give examples of different scheduling algorithms Key Words round robin, first come first served, multi-level feedback queues, shortest job first, shortest remaining time.

The kernel contains three important features: Memory Manager Process Scheduler File Manager

The Process Scheduler The scheduler determines how programs access CPU time. As we’ve seen previously, this can be affected by, and must take into account the effect of Interrupts Running more than one process at a time is called multitasking. Without a process scheduler, you cannot create a multi-programming or multi-tasking system.

Scheduling issues A process is not constantly running. It can be in one of three states, or terminated (ended)

Process states Running - the CPU is actually executing the process. Only one process can be running at a time (per core) Ready - the process is loaded into memory and runnable, but is not actually running; the CPU is doing something else. These processes are in the Ready Queue, although the data structure which contains these may not be a simple queue (owing to the algorithm used!). Blocked - the process is not runnable because it is waiting for an event to occur. The usual event is that it is waiting for an I/O operation to complete.

Already there is a need for any scheduling algorithm to maximise CPU utilisation by: Not allowing a ready process to occupy the CPU in an idle state To prioritise “ready” tasks How long have they been waiting? What priority do they have?

Problems Any scheduling algorithm should: minimise starvation (ensure ALL processes WILL run and are not constantly superseded by higher priority processes) eliminate deadlock (deadlock occurs when a process is waiting for a resource that never becomes available) ensure efficiency of process execution ensure that all processes have an opportunity to execute.

Task – fill in the table Algorithm Description Potential Advantages / Disadvantages Round Robin All processes are given an equal time slice of CPU time, regardless of priority. All processes are guaranteed service. However, important processes may lack necessary processing time – could lead to inefficient running of the system. Time critical processes may not complete in time. First Come, First Serve (FCFS) Shortest Remaining Time (SRT) Shortest Job First

Question What is a “Multi-level Feedback Queue” and what is its role in process scheduling?

Review/Success Criteria You should know: What states processes can be in Problems that scheduling algorithms need to overcome Features of a good scheduler Four different scheduling algorithms