Uniprocessor Scheduling. Aim of Scheduling. Types of Scheduling. Long-Term Scheduling. Chapter 9. Response time Throughput Processor efficiency

Similar documents
Uniprocessor Scheduling. Aim of Scheduling

Uniprocessor Scheduling. Chapter 9

Chapter 9 Uniprocessor Scheduling

Scheduling of processes

Uniprocessor Scheduling

Today s class. Scheduling. Informationsteknologi. Tuesday, October 9, 2007 Computer Systems/Operating Systems - Class 14 1

Chapter 9. Uniprocessor Scheduling

Announcements. Program #1. Program #0. Reading. Is due at 9:00 AM on Thursday. Re-grade requests are due by Monday at 11:59:59 PM.

Lecture Topics. Announcements. Today: Uniprocessor Scheduling (Stallings, chapter ) Next: Advanced Scheduling (Stallings, chapter

Announcements. Program #1. Reading. Due 2/15 at 5:00 pm. Finish scheduling Process Synchronization: Chapter 6 (8 th Ed) or Chapter 7 (6 th Ed)

Uniprocessor Scheduling. Basic Concepts Scheduling Criteria Scheduling Algorithms. Three level scheduling

Chapter 5: CPU Scheduling

Announcements. Reading. Project #1 due in 1 week at 5:00 pm Scheduling Chapter 6 (6 th ed) or Chapter 5 (8 th ed) CMSC 412 S14 (lect 5)

CPU Scheduling. Rab Nawaz Jadoon. Assistant Professor DCS. Pakistan. COMSATS, Lahore. Department of Computer Science

CPU Scheduling. Schedulers. CPSC 313: Intro to Computer Systems. Intro to Scheduling. Schedulers in the OS

Last Class: Processes

OPERATING SYSTEMS CS3502 Spring Processor Scheduling. Chapter 5

Scheduling. The Basics

CS370 Operating Systems

Lecture 5 / Chapter 6 (CPU Scheduling) Basic Concepts. Scheduling Criteria Scheduling Algorithms

CSE120 Principles of Operating Systems. Prof Yuanyuan (YY) Zhou Scheduling

CS3733: Operating Systems

Course Syllabus. Operating Systems

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

CPU Scheduling Algorithms

ALL the assignments (A1, A2, A3) and Projects (P0, P1, P2) we have done so far.

CPU Scheduling. CSE 2431: Introduction to Operating Systems Reading: Chapter 6, [OSC] (except Sections )

Subject Name: OPERATING SYSTEMS. Subject Code: 10EC65. Prepared By: Kala H S and Remya R. Department: ECE. Date:

Unit 3 : Process Management

1.1 CPU I/O Burst Cycle

CPU Scheduling. Daniel Mosse. (Most slides are from Sherif Khattab and Silberschatz, Galvin and Gagne 2013)

COSC243 Part 2: Operating Systems

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Operating Systems ECE344. Ding Yuan

Chapter 6: CPU Scheduling

Properties of Processes

Operating Systems. Lecture Process Scheduling. Golestan University. Hossein Momeni

CPU Scheduling. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

Ch 4 : CPU scheduling

CS370: System Architecture & Software [Fall 2014] Dept. Of Computer Science, Colorado State University

Operating System Concepts Ch. 5: Scheduling

Scheduling in the Supermarket

Scheduling. Scheduling. Scheduling. Scheduling Criteria. Priorities. Scheduling

CHAPTER 2: PROCESS MANAGEMENT

8: Scheduling. Scheduling. Mark Handley

CSE 120 Principles of Operating Systems Spring 2017

Scheduling Bits & Pieces

Review. Preview. Three Level Scheduler. Scheduler. Process behavior. Effective CPU Scheduler is essential. Process Scheduling

CISC 7310X. C05: CPU Scheduling. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 3/1/2018 CUNY Brooklyn College

CPU Scheduling. Basic Concepts. Histogram of CPU-burst Times. Dispatcher. CPU Scheduler. Alternating Sequence of CPU and I/O Bursts

Chapter 5: CPU Scheduling

Lecture 2 Process Management

CPU Scheduling (1) CPU Scheduling (Topic 3) CPU Scheduling (2) CPU Scheduling (3) Resources fall into two classes:

OPERATING SYSTEMS: Lesson 4: Process Scheduling

Operating Systems Unit 3

Announcements/Reminders

Operating System Review Part

CS418 Operating Systems

A COMPARATIVE STUDY OF CPU SCHEDULING POLICIES IN OPERATING SYSTEMS

CSE 4/521 Introduction to Operating Systems

Operating Systems. Scheduling

Comp 310 Computer Systems and Organization

High level scheduling: Medium level scheduling: Low level scheduling. Scheduling 0 : Levels

CSL373: Lecture 6 CPU Scheduling

CPU Scheduling: Objectives

Example: CPU-bound process that would run for 100 quanta continuously 1, 2, 4, 8, 16, 32, 64 (only 37 required for last run) Needs only 7 swaps

CSCE Operating Systems Scheduling. Qiang Zeng, Ph.D. Fall 2018

Chapter 6: CPU Scheduling

Frequently asked questions from the previous class survey

Topic 4 Scheduling. The objective of multi-programming is to have some process running at all times, to maximize CPU utilization.

Multiprocessor and Real- Time Scheduling. Chapter 10

CSE 120. Fall Lecture 8: Scheduling and Deadlock. Keith Marzullo

Assignment 3 (Due date: Thursday, 10/15/2009, in class) Part One: Provide brief answers to the following Chapter Exercises questions:

Interactive Scheduling

Two Level Scheduling. Interactive Scheduling. Our Earlier Example. Round Robin Scheduling. Round Robin Schedule. Round Robin Schedule

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Titolo presentazione. Scheduling. sottotitolo A.Y Milano, XX mese 20XX ACSO Tutoring MSc Eng. Michele Zanella

3. CPU Scheduling. Operating System Concepts with Java 8th Edition Silberschatz, Galvin and Gagn

CS370 Operating Systems

Last class: Today: CPU Scheduling. CPU Scheduling Algorithms and Systems

Chapter 5 CPU scheduling

Chapter 5: CPU Scheduling

Start of Lecture: February 10, Chapter 6: Scheduling

Chapter 5: CPU Scheduling. Operating System Concepts Essentials 8 th Edition

Preview. Process Scheduler. Process Scheduling Algorithms for Batch System. Process Scheduling Algorithms for Interactive System

Chapter 5: CPU Scheduling. Operating System Concepts 8 th Edition,

Project 2: CPU Scheduling Simulator

LECTURE 3:CPU SCHEDULING

Introducing CPU Scheduling Algorithms: The Photocopier Scenario

CSE 120 Principles of Operating Systems

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.

OPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:

CS307: Operating Systems

Scheduling. CSC400 - Operating Systems. 7: Scheduling. J. Sumey. one of the main tasks of an OS. the scheduler / dispatcher

by Maria Lima Term Paper for Professor Barrymore Warren Mercy College Division of Mathematics and Computer Information Science

Frequently asked questions from the previous class survey

CPU scheduling. Alternating sequence of CPU and I/O bursts. P a g e 31

SMD149 - Operating Systems

CS370 Operating Systems

Chap 7, 8: Scheduling. Dongkun Shin, SKKU

Transcription:

Uniprocessor Scheduling Chapter 9 Aim of Scheduling Response time Throughput Processor efficiency Types of Scheduling Long-Term Scheduling Determines which programs are admitted to the system for processing Controls the degree of multiprogramming More processes, smaller percentage of time each process is executed 6

Medium-Term Scheduling Short-Term Scheduling Criteria Part of the swapping function Based on the need to manage the degree of multiprogramming Performance-related Quantitative Measurable such as response time and throughput Not performance related Qualitative Predictability 7 0 Short-Term Scheduling Priorities Known as the dispatcher Executes most frequently Invoked when an event occurs Clock interrupts I/O interrupts Operating system calls Signals Scheduler will always choose a process of higher priority over one of lower priority Have multiple ready queues to represent each level of priority Lower-priority may suffer starvation allow a process to change its priority based on its age or execution history 8 Short-Tem Scheduling Criteria User-oriented Response Time Elapsed time between the submission of a request until there is output. System-oriented Effective and efficient utilization of the processor 9

First-Come-First-Served (FCFS) 0 0 0 Each process joins the Ready queue When the current process ceases to execute, the oldest process in the Ready queue is selected 6 Decision Mode First-Come-First-Served (FCFS) Nonpreemptive Once a process is in the running state, it will continue until it terminates or blocks itself for I/O Preemptive Currently running process may be interrupted and moved to the Ready state by the operating system Allows for better service since any one process cannot monopolize the processor for very long A short process may have to wait a very long time before it can execute Favors CPU-bound processes I/O processes have to wait until CPUbound process completes 7 Process Scheduling Example Round-Robin 0 0 0 Uses preemption based on a clock An amount of time is determined that allows each process to use the processor for that length of time 8

Round-Robin Clock interrupt is generated at periodic intervals When an interrupt occurs, the currently running process is placed in the ready queue Next ready job is selected Known as time slicing Shortest Remaining Time 0 0 0 Preemptive version of shortest process next policy Must estimate processing time 9 Shortest Process Next 0 0 0 Highest Response Ratio Next (HRRN) 0 0 0 Nonpreemptive policy Process with shortest expected processing time is selected next Short process jumps ahead of longer processes 0 Choose next process with the lowest ratio time spent waiting + expected service time expected service time Shortest Process Next Predictability of longer processes is reduced If estimated time for process not correct, the operating system may abort it Possibility of starvation for longer processes Feedback 0 0 0 Penalize jobs that have been running longer Don t know remaining time process needs to execute

Traditional UNIX Scheduling Multilevel feedback using round robin within each of the priority queues Priorities are recomputed once per second Base priority divides all processes into fixed bands of priority levels Adjustment factor used to keep process in its assigned band 8 Fair-Share Scheduling Bands User s application runs as a collection of processes (threads) User is concerned about the performance of the application Need to make scheduling decisions based on process sets Decreasing order of priority Swapper Block I/O device control File manipulation Character I/O device control User processes 6 9