Scheduling and Fairness

Slides:



Advertisements
Similar presentations
Scheduling Introduction to Scheduling
Advertisements

Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
Operating Systems Chapter 6
Chap 5 Process Scheduling. Basic Concepts Maximum CPU utilization obtained with multiprogramming CPU–I/O Burst Cycle – Process execution consists of a.
Operating Systems CPU Scheduling. Agenda for Today What is Scheduler and its types Short-term scheduler Dispatcher Reasons for invoking scheduler Optimization.
Chapter 3: CPU Scheduling
CS 311 – Lecture 23 Outline Kernel – Process subsystem Process scheduling Scheduling algorithms User mode and kernel mode Lecture 231CS Operating.
02/06/2008CSCI 315 Operating Systems Design1 CPU Scheduling Algorithms Notice: The slides for this lecture have been largely based on those accompanying.
5: CPU-Scheduling1 Jerry Breecher OPERATING SYSTEMS SCHEDULING.
02/11/2004CSCI 315 Operating Systems Design1 CPU Scheduling Algorithms Notice: The slides for this lecture have been largely based on those accompanying.
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 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.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
Chapter 4 Processor Management
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
Chapter 6 CPU SCHEDULING.
Scheduling. Alternating Sequence of CPU And I/O Bursts.
CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multiple-Processor Scheduling Operating Systems Examples Algorithm.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
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.
Lecture 4 CPU scheduling. Basic Concepts Single Process  one process at a time Maximum CPU utilization obtained with multiprogramming CPU idle :waiting.
Lecture 12 Scheduling Models for Computer Networks Dr. Adil Yousif.
First In First Out SJF is a scheduling policy that selects a waiting process with the smallest execution time to execute next. Shortest Job First Shortest.
Process Scheduling. Scheduling Strategies Scheduling strategies can broadly fall into two categories  Co-operative scheduling is where the currently.
CPU scheduling.  Single Process  one process at a time  Maximum CPU utilization obtained with multiprogramming  CPU idle :waiting time is wasted 2.
1 Module 5: Scheduling CPU Scheduling Scheduling Algorithms Reading: Chapter
1 Lecture 5: CPU Scheduling Operating System Fall 2006.
Lecture 5 Scheduling. Today CPSC Tyson Kendon Updates Assignment 1 Assignment 2 Concept Review Scheduling Processes Concepts Algorithms.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 5: CPU Scheduling.
Scheduling.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria.
1 Chapter 5: CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms.
CPU Scheduling Andy Wang Operating Systems COP 4610 / CGS 5765.
Scheduling Policies.
CPU SCHEDULING.
Operating Systems Design (CS 423)
Networks and Operating Systems: Exercise Session 2
CPU Scheduling Algorithms
Chapter 2 Scheduling.
Operating Systems Processes Scheduling.
Process Scheduling B.Ramamurthy 9/16/2018.
Lecture 24: Process Scheduling Examples and for Real-time Systems
Scheduling (Priority Based)
CPU Scheduling.
Chapter 6: CPU Scheduling
Lecture 23: Process Scheduling for Interactive Systems
ICS 143 Principles of Operating Systems
Process Scheduling B.Ramamurthy 11/18/2018.
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
Andy Wang Operating Systems COP 4610 / CGS 5765
Operating System Concepts
TDC 311 Process Scheduling.
Scheduling.
Operating systems Process scheduling.
CPU SCHEDULING.
Chapter 5: CPU Scheduling
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 4/19/2019.
Concurrency and Threading: CPU Scheduling
Process Scheduling B.Ramamurthy 5/7/2019.
CPU SCHEDULING CPU SCHEDULING.
Scheduling 21 May 2019.
CPU Scheduling: Basic Concepts
Introduction to Packet Scheduling
Presentation transcript:

Scheduling and Fairness Section 7 Scheduling and Fairness March 3rd, 2017 Taught by Joshua Don

Scheduling Scheduling: The process by which the kernel selects the next thread/process to run Fairness: A measure of how equitably the kernel allocates system resources (ie. CPU usage to run each process)

First come, first serve FIFO; run in the order of arrival Processes arrive: P2, P1, P3 We run: P2, P1, P3

Round robin Each process gets a short amount of time to run, before it is pushed to the back of the queue Cycle through all processes Processes arrive: P2, P1, P3 We run: P2, P1, P3, P2, P1, P3, P2, P1, P3, ….

Simple priority scheduling Run whatever process has the highest priority If using preemption, can preempt the currently running process if a higher priority process arrives Processes arrive: P2 – 5, P1 - 10 We start running: P1 P3 – 15 arrives Overall order will look like: P1, P3, P1, P2

Shortest remaining time first Run whatever process has the least amount of time left to completion Processes arrive: P2 - 4 ticks, P1 – 3 ticks, P3 – 5 ticks We run: P1, P2, P3

Other scheduling ideas Run a random process at each interval Decrease/increase priority based on how long a process has been waiting to get CPU time Choose processes randomly, but with probability proportional to priority Choose process with earliest deadline Round-robin among the highest priority processes (ie. MLFQS in proj1)

Scheduling overview There are many other scheduling algorithms, many are much more complicated. Each algorithm has pros and cons; need to consider how they handle mixture of different processes – different run times, priorities, etc. Some are harder to implement Some require more overhead to figure out which process to schedule Each algorithm tries to optimize its own definition of fairness