Process Scheduling. Process Scheduling. CPU and I/O Bursts. CPU - I/O Burst Cycle. Variations in Bursts. Histogram of CPU Burst Times
|
|
- Darlene Lester
- 5 years ago
- Views:
Transcription
1 Scheduling The objective of multiprogramming is to have some process running all the time The objective of timesharing is to have the switch between processes so frequently that users can interact with each program as it is running Bottom line is that the OS plays a shell game and needs to switch from process to process Scheduling refers to the algorithms used to implement the switching 3/21/99 ICSS44 - Scheduling 1 running running trap/intr idle Scheduling P OS P 1 Save state in PCB Reload state from PCB 1 Save state in PCB 1 Reload state from PCB trap/intr 3/21/99 ICSS44 - Scheduling 2 idle running idle - I/O Burst Cycle The success of scheduling depends on the following observed property of processes processes execution consists of a cycle of execution and I/O wait execution alternates back and forth between these two states and I/O Bursts load add read from file wait for I/O inc write to file wait for I/O load add read from file wait for I/O Burst I/O Burst Burst I/O Burst Burst I/O Burst 3/21/99 ICSS44 - Scheduling 3 3/21/99 ICSS44 - Scheduling 4 Histogram of Burst Times Variations in Bursts frequency Burst Times burst duration (milliseconds) The duration of bursts vary greatly from process to process an I/O bound process spends most of its time doing I/O a bound process spends most of its time doing computations The distribution can be important when selecting a scheduling algorithm 3/21/99 ICSS44 - Scheduling 5 3/21/99 ICSS44 - Scheduling 6 1
2 s The selection process is carried out by the shortterm scheduler (or scheduler) The scheduling policy determines when it is time for a process to be removed form the and which process should be allocated next The scheduling mechanism determines how scheduling actually happens long-term scheduler ready queue I/O medium-term scheduler short-term scheduler I/O waiting queues 3/21/99 ICSS44 - Scheduling 7 3/21/99 ICSS44 - Scheduling 8 Context Switch Preemptive/Non-Preemptive Scheduling A context switch saves the state of the current process and loads the saved state of the new process Context switch time is pure overhead Speed varies from machine-to-machine, from OSto-OS typical speeds range from 1 to 1 microseconds Non-preemptive scheduling decisions are made when a process switches from the running to the waiting state when a process terminates Preemptive scheduling adds when a process switches from the running to the ready state (interrupt occurs) when a process switches from the waiting to the ready state 3/21/99 ICSS44 - Scheduling 9 3/21/99 ICSS44 - Scheduling 1 Non-Preemptive Programming Execution Every process periodically yields to the scheduler Relies on correct process behavior Malicious Accidental Need a mechanism to override running process Allocate Resource Manager Request Resources 3/21/99 ICSS44 - Scheduling 11 3/21/99 ICSS44 - Scheduling 12 2
3 From Other States The Scheduling & Performance Descriptor Enqueue Allocate Resource Manager Request Dispatch Context Switch can control: utilization Average time a process waits for service Average amount of time to complete a job 3/21/99 ICSS44 - Scheduling 13 3/21/99 ICSS44 - Scheduling 14 Scheduling Criteria Common criteria used to compare scheduling algorithms include utilization Throughput the number of processes completed per unit time Turnaround time the time it takes to complete the job ( wait time + run time ) Wait time Response time Strategy Strategy = policy the scheduler mechanism uses to choose from the ready list Strive for any of: Equitability Favor very short or long jobs Meet priority requirements Different policies for different requirements Mechanism never changes 3/21/99 ICSS44 - Scheduling 15 3/21/99 ICSS44 - Scheduling 16 Contemporary Scheduling Mechanism Involuntary sharing -- timer interrupts Time quantum determined by interval timer -- usually fixed for every process using the system Sometimes called the time slice length Priority-based process (job) selection Select the highest priority process Priority reflects policy May or may not have preemption Optimal Scheduling Suppose the scheduler knows each process p i s service time, τ(p i ). Could look at every p i and τ(p i ) in the ready list and choose the scheduler that optimized on any desired criteria But Other processes may arrive while these processes are being serviced The τ(p i ) are almost certainly just estimates Algorithm to choose optimal schedule is O(n 2 ) 3/21/99 ICSS44 - Scheduling 17 3/21/99 ICSS44 - Scheduling 18 3
4 Talking About Scheduling... Let P = {p i i < n} = set of processes Let S(p i ) {running, ready, blocked} Let τ(p i ) = Time process needs to be in running state (the service time) Let W(p i ) = Time p i is in ready state before first transition to running (wait time) Let T TRnd (p i ) = Time from p i first enter ready to last exit ready (turnaround time) Batch Throughput rate = inverse of avg T TRnd Timesharing response time = W(p i ) Simple Scheduling Model Ignore the resource manager Only consider running and ready states Ignores time in blocked state created when it enters ready is destroyed when it enters blocked Really just looking at small phases of a process 3/21/99 ICSS44 - Scheduling 19 3/21/99 ICSS44 - Scheduling 2 Nonpreemptive s Easy to build and analyze Easy to analyze performance No issue of voluntary/involuntary sharing First-Come-First-Served p T TRnd (p ) = τ(p ) = 35 3/21/99 ICSS44 - Scheduling 21 3/21/99 ICSS44 - Scheduling 22 First-Come-First-Served First-Come-First-Served p p p p 1 p 2 T TRnd (p ) = τ(p ) = 35 T TRnd (p 1 ) = (τ(p 1 ) +T TRnd (p )) = = 475 W(p 1 ) = T TRnd (p ) = 35 T TRnd (p ) = τ(p ) = 35 T TRnd (p 1 ) = (τ(p 1 ) +T TRnd (p )) = = 475 T TRnd (p 2 ) = (τ(p 2 ) +T TRnd (p 1 )) = = 95 W(p 1 ) = T TRnd (p ) = 35 W(p 2 ) = T TRnd (p 1 ) = 475 3/21/99 ICSS44 - Scheduling 23 3/21/99 ICSS44 - Scheduling 24 4
5 First-Come-First-Served First-Come-First-Served p p 1 p 2 p 3 p p 1 p 2 p 3 T TRnd (p ) = τ(p ) = 35 T TRnd (p 1 ) = (τ(p 1 ) +T TRnd (p )) = = 475 T TRnd (p 2 ) = (τ(p 2 ) +T TRnd (p 1 )) = = 95 T TRnd (p 3 ) = (τ(p 3 ) +T TRnd (p 2 )) = = 12 W(p 1 ) = T TRnd (p ) = 35 W(p 2 ) = T TRnd (p 1 ) = 475 W(p 3 ) = T TRnd (p 2 ) = 95 T TRnd (p ) = τ(p ) = 35 T TRnd (p 1 ) = (τ(p 1 ) +T TRnd (p )) = = 475 T TRnd (p 2 ) = (τ(p 2 ) +T TRnd (p 1 )) = = 95 T TRnd (p 3 ) = (τ(p 3 ) +T TRnd (p 2 )) = = 12 T TRnd ( ) = (τ( ) +T TRnd (p 3 )) = = 1275 W(p 1 ) = T TRnd (p ) = 35 W(p 2 ) = T TRnd (p 1 ) = 475 W(p 3 ) = T TRnd (p 2 ) = 95 W( ) = T TRnd (p 3 ) = 12 3/21/99 ICSS44 - Scheduling 25 3/21/99 ICSS44 - Scheduling 26 FCFS Average Wait Time Easy to implement Ignores service time, etc Not a great performer p p 1 p 2 p 3 75 T TRnd (p ) = τ(p ) = 35 T TRnd (p 1 ) = (τ(p 1 ) +T TRnd (p )) = = 475 T TRnd (p 2 ) = (τ(p 2 ) +T TRnd (p 1 )) = = 95 T TRnd (p 3 ) = (τ(p 3 ) +T TRnd (p 2 )) = = 12 T TRnd ( ) = (τ( ) +T TRnd (p 3 )) = = 1275 W(p 1 ) = T TRnd (p ) = 35 W(p 2 ) = T TRnd (p 1 ) = 475 W(p 3 ) = T TRnd (p 2 ) = 95 W( ) = T TRnd (p 3 ) = 12 W avg = ( )/5 = 2974/5 = 595 3/21/99 ICSS44 - Scheduling 27 T TRnd ( ) = τ( ) = 75 W( ) = 3/21/99 ICSS44 - Scheduling p 1 p p 1 T TRnd (p 1 ) = τ(p 1 )+τ( ) = = 2 T TRnd (p 1 ) = τ(p 1 )+τ( ) = = 2 T TRnd ( ) = τ( ) = 75 W( ) = T TRnd (p 3 ) = τ(p 3 )+τ(p 1 )+τ( ) = = 45 T TRnd ( ) = τ( ) = 75 W(p 3 ) = 2 W( ) = 3/21/99 ICSS44 - Scheduling 29 3/21/99 ICSS44 - Scheduling 3 5
6 p 1 p 3 p p 1 p 3 p p 2 T TRnd (p ) = τ(p )+τ(p 3 )+τ(p 1 )+τ( ) = = 8 T TRnd (p 1 ) = τ(p 1 )+τ( ) = = 2 T TRnd (p 3 ) = τ(p 3 )+τ(p 1 )+τ( ) = = 45 T TRnd ( ) = τ( ) = 75 W(p ) = 45 W(p 3 ) = 2 W( ) = T TRnd (p ) = τ(p )+τ(p 3 )+τ(p 1 )+τ( ) = = 8 T TRnd (p 1 ) = τ(p 1 )+τ( ) = = 2 T TRnd (p 2 ) = τ(p 2 )+τ(p )+τ(p 3 )+τ(p 1 )+τ( ) = = 1275 T TRnd (p 3 ) = τ(p 3 )+τ(p 1 )+τ( ) = = 45 T TRnd ( ) = τ( ) = 75 W(p ) = 45 W(p 2 ) = 8 W(p 3 ) = 2 W( ) = 3/21/99 ICSS44 - Scheduling 31 3/21/99 ICSS44 - Scheduling 32 Minimizes wait time May starve large jobs Must know service times Optimal (for min wait time)!! p 1 p 3 p p 2 T TRnd (p ) = τ(p )+τ(p 3 )+τ(p 1 )+τ( ) = = 8 T TRnd (p 1 ) = τ(p 1 )+τ( ) = = 2 T TRnd (p 2 ) = τ(p 2 )+τ(p )+τ(p 3 )+τ(p 1 )+τ( ) = = 1275 T TRnd (p 3 ) = τ(p 3 )+τ(p 1 )+τ( ) = = 45 T TRnd ( ) = τ( ) = 75 W avg = ( )/5 = 1525/5 = W(p ) = 45 W(p 2 ) = 8 W(p 3 ) = 2 W( ) = 3/21/99 ICSS44 - Scheduling 33 Predicting Bursts SJF can be approximated by guessing what the service time will be τ n+1 = αt n + ( 1 - α) τ n Where α 1 This formula defines an exponential average τ n s most recent information α controls the relative weight of recent and past history 3/21/99 ICSS44 - Scheduling 34 burst length α =.5 Predicting Burst time Actual Predicted 3/21/99 ICSS44 - Scheduling 35 Pri Priority Scheduling Reflects importance of external use May cause starvation Can address starvation with aging p 3 p 1 p 2 p T TRnd (p ) = τ(p )+τ( )+τ(p 2 )+τ(p 1 ) )+τ(p 3 ) = = 1275 T TRnd (p 1 ) = τ(p 1 )+τ(p 3 ) = = 375 T TRnd (p 2 ) = τ(p 2 )+τ(p 1 )+τ(p 3 ) = = 85 T TRnd (p 3 ) = τ(p 3 ) = 25 T TRnd ( ) = τ( )+ τ(p 2 )+ τ(p 1 )+τ(p 3 ) = = 925 W avg = ( )/5 = 24/5 = W(p ) = 925 W(p 1 ) = 25 W(p 2 ) = 375 W(p 3 ) = W( ) = 85 3/21/99 ICSS44 - Scheduling 36 6
7 Deadline (none) 2 Deadline Scheduling Must receive service by deadline May not be feasible p 1 p p 2 p 3 p 1 p p 2 p 3 p p 1 p 2 p 3 Preemptive s Highest priority process is guaranteed to be running at all times Or at least at the beginning of a time slice Dominant form of contemporary scheduling But complex to build & analyze 3/21/99 ICSS44 - Scheduling 37 3/21/99 ICSS44 - Scheduling 38 Round Robin (TQ=5) Round Robin (TQ=5) 5 p p 1 p 1 W(p 1 ) = 5 3/21/99 ICSS44 - Scheduling 39 3/21/99 ICSS44 - Scheduling 4 Round Robin (TQ=5) Round Robin (TQ=5) p 1 p 1 p 2 p 1 p 1 p 2 2 p 3 W(p 1 ) = 5 W(p 2 ) = 1 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 3/21/99 ICSS44 - Scheduling 41 3/21/99 ICSS44 - Scheduling 42 7
8 Round Robin (TQ=5) Round Robin (TQ=5) p 1 p 1 p 2 2 p 3 p 1 p 1 p 2 2 p 3 3 p W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 3/21/99 ICSS44 - Scheduling 43 3/21/99 ICSS44 - Scheduling 44 Round Robin (TQ=5) Round Robin (TQ=5) p p 1 p 2 p 3 p p 1 p 2 p p p 1 p 2 p 3 p p 1 p 2 p 3 p p 1 T TRnd ( ) = 475 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 T TRnd (p 1 ) = 55 T TRnd ( ) = 475 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 3/21/99 ICSS44 - Scheduling 45 3/21/99 ICSS44 - Scheduling 46 Round Robin (TQ=5) Round Robin (TQ=5) p p 1 p 2 p 3 p p 1 p 2 p 3 p p 1 p 2 p p p 1 p 2 p 3 p p 1 p 2 p 3 p p 1 p 2 p p p 2 p 3 p p 2 p 3 p p 2 p 3 p p 2 p 3 p p 2 p T TRnd (p 1 ) = 55 T TRnd (p 3 ) = 95 T TRnd ( ) = 475 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 T TRnd (p ) = 11 T TRnd (p 1 ) = 55 T TRnd (p 3 ) = 95 T TRnd ( ) = 475 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 3/21/99 ICSS44 - Scheduling 47 3/21/99 ICSS44 - Scheduling 48 8
9 Round Robin (TQ=5) p p 1 p 2 p 3 p p 1 p 2 p 3 p p 1 p 2 p p Round Robin (TQ=5) Equitable Most widely-used Fits naturally with interval timer p 1 p 2 p 3 p p 1 p 2 p 3 p p 1 p 2 p p p 2 p 3 p p 2 p 3 p p 2 p p 2 p 2 p 2 p 2 p p 2 p 3 p p 2 p 3 p p 2 p p 2 p 2 p 2 p 2 T TRnd (p ) = 11 T TRnd (p 1 ) = 55 T TRnd (p 2 ) = 1275 T TRnd (p 3 ) = 95 T TRnd ( ) = 475 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 3/21/99 ICSS44 - Scheduling 49 T TRnd (p ) = 11 T TRnd (p 1 ) = 55 T TRnd (p 2 ) = 1275 T TRnd (p 3 ) = 95 T TRnd ( ) = 475 T TRnd _ avg = 87 W(p 1 ) = 5 W(p 2 ) = 1 W(p 3 ) = 15 W( ) = 2 W avg = 1 3/21/99 ICSS44 - Scheduling 5 p RR with Overhead=1 (TQ=5) p 1 p 2 p 3 p p 1 p 2 p 3 p p 1 p 2 p 3 T TRnd (p ) = 132 T TRnd (p 1 ) = 66 T TRnd (p 2 ) = 1535 T TRnd (p 3 ) = 114 T TRnd ( ) = 565 Overhead must be considered p p 2 p 3 p p 2 p 3 p p 2 p p 2 p 2 p 2 p 2 T TRnd _ avg = 144 W(p 1 ) = 6 W(p 2 ) = 12 W(p 3 ) = 18 W( ) = 24 W avg = 12 3/21/99 ICSS44 - Scheduling Multi-Level Queues All processes at level i run before any process at level j At a level, use RR BSD UNIX has 32 run queues Queues -7 are for system Queues 8-31are for user nice influences run queue 3/21/99 ICSS44 - Scheduling 52 BSD Priorities es have two priorities; one for user-mode execution, and one for kernel-mode execution Priorities range from to 127 ( is highest priority) User mode priorities range from PUSER (5) to 127 Priorities in UNIX are not fixed, they change based on usage by the process and system load 3/21/99 ICSS44 - Scheduling 53 BSD Priority A process s scheduling priority is determined by two values found in the PCB p_cpu - estimate of recent utilization p_nice - user-settable weighting factor (-2 to 2) A process s user-mode priority is calculated every 4 clock ticks (clamped to 127) p _ usrpri PUSER p _ cpu 4 2 p _ nice 3/21/99 ICSS44 - Scheduling 54 9
CPU scheduling. CPU Scheduling
EECS 3221 Operating System Fundamentals No.4 CPU scheduling Prof. Hui Jiang Dept of Electrical Engineering and Computer Science, York University CPU Scheduling CPU scheduling is the basis of multiprogramming
More informationModule 5: CPU Scheduling
Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation 5.1 Basic Concepts Maximum CPU utilization obtained
More informationChapter 6: CPU Scheduling
Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation 6.1 Basic Concepts Maximum CPU utilization obtained
More informationCPU Scheduling. CPU Scheduler
CPU Scheduling These slides are created by Dr. Huang of George Mason University. Students registered in Dr. Huang s courses at GMU can make a single machine readable copy and print a single copy of each
More informationCSE 380 Computer Operating Systems
CSE 380 Computer Operating Systems Instructor: Insup Lee & Dianna Xu University of Pennsylvania, Fall 2003 Lecture Note 3: CPU Scheduling 1 CPU SCHEDULING q How can OS schedule the allocation of CPU cycles
More informationScheduling I. Today Introduction to scheduling Classical algorithms. Next Time Advanced topics on scheduling
Scheduling I Today Introduction to scheduling Classical algorithms Next Time Advanced topics on scheduling Scheduling out there You are the manager of a supermarket (ok, things don t always turn out the
More informationScheduling I. Today. Next Time. ! Introduction to scheduling! Classical algorithms. ! Advanced topics on scheduling
Scheduling I Today! Introduction to scheduling! Classical algorithms Next Time! Advanced topics on scheduling Scheduling out there! You are the manager of a supermarket (ok, things don t always turn out
More informationCS 550 Operating Systems Spring CPU scheduling I
1 CS 550 Operating Systems Spring 2018 CPU scheduling I Process Lifecycle Ready Process is ready to execute, but not yet executing Its waiting in the scheduling queue for the CPU scheduler to pick it up.
More information2/5/07 CSE 30341: Operating Systems Principles
page 1 Shortest-Job-First (SJR) Scheduling Associate with each process the length of its next CPU burst. Use these lengths to schedule the process with the shortest time Two schemes: nonpreemptive once
More informationCPU SCHEDULING RONG ZHENG
CPU SCHEDULING RONG ZHENG OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed scheduling 2 SHORT-TERM, MID-TERM, LONG- TERM
More informationCSCE 313 Introduction to Computer Systems. Instructor: Dezhen Song
CSCE 313 Introduction to Computer Systems Instructor: Dezhen Song Schedulers in the OS CPU Scheduling Structure of a CPU Scheduler Scheduling = Selection + Dispatching Criteria for scheduling Scheduling
More informationLSN 15 Processor Scheduling
LSN 15 Processor Scheduling ECT362 Operating Systems Department of Engineering Technology LSN 15 Processor Scheduling LSN 15 FCFS/FIFO Scheduling Each process joins the Ready queue When the current process
More informationChe-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University
Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University } 2017/11/15 Midterm } 2017/11/22 Final Project Announcement 2 1. Introduction 2.
More informationTDDI04, K. Arvidsson, IDA, Linköpings universitet CPU Scheduling. Overview: CPU Scheduling. [SGG7] Chapter 5. Basic Concepts.
TDDI4 Concurrent Programming, Operating Systems, and Real-time Operating Systems CPU Scheduling Overview: CPU Scheduling CPU bursts and I/O bursts Scheduling Criteria Scheduling Algorithms Multiprocessor
More informationTDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II
TDDB68 Concurrent programming and operating systems Lecture: CPU Scheduling II Mikael Asplund, Senior Lecturer Real-time Systems Laboratory Department of Computer and Information Science Copyright Notice:
More informationCPU Scheduling. Heechul Yun
CPU Scheduling Heechul Yun 1 Recap Four deadlock conditions: Mutual exclusion No preemption Hold and wait Circular wait Detection Avoidance Banker s algorithm 2 Recap: Banker s Algorithm 1. Initialize
More informationCHAPTER 5 - PROCESS SCHEDULING
CHAPTER 5 - PROCESS SCHEDULING OBJECTIVES To introduce CPU scheduling, which is the basis for multiprogrammed operating systems To describe various CPU-scheduling algorithms To discuss evaluation criteria
More informationReal-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm
Real-time operating systems course 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm Definitions Scheduling Scheduling is the activity of selecting which process/thread should
More informationUC Santa Barbara. Operating Systems. Christopher Kruegel Department of Computer Science UC Santa Barbara
Operating Systems Christopher Kruegel Department of Computer Science http://www.cs.ucsb.edu/~chris/ Many processes to execute, but one CPU OS time-multiplexes the CPU by operating context switching Between
More informationCPU Scheduling Exercises
CPU Scheduling Exercises NOTE: All time in these exercises are in msec. Processes P 1, P 2, P 3 arrive at the same time, but enter the job queue in the order presented in the table. Time quantum = 3 msec
More informationSimulation of Process Scheduling Algorithms
Simulation of Process Scheduling Algorithms Project Report Instructor: Dr. Raimund Ege Submitted by: Sonal Sood Pramod Barthwal Index 1. Introduction 2. Proposal 3. Background 3.1 What is a Process 4.
More informationLast class: Today: Threads. CPU Scheduling
1 Last class: Threads Today: CPU Scheduling 2 Resource Allocation In a multiprogramming system, we need to share resources among the running processes What are the types of OS resources? Question: Which
More informationComp 204: Computer Systems and Their Implementation. Lecture 11: Scheduling cont d
Comp 204: Computer Systems and Their Implementation Lecture 11: Scheduling cont d 1 Today Scheduling algorithms continued Shortest remaining time first (SRTF) Priority scheduling Round robin (RR) Multilevel
More informationScheduling. Uwe R. Zimmer & Alistair Rendell The Australian National University
6 Scheduling Uwe R. Zimmer & Alistair Rendell The Australian National University References for this chapter [Bacon98] J. Bacon Concurrent Systems 1998 (2nd Edition) Addison Wesley Longman Ltd, ISBN 0-201-17767-6
More informationSeason Finale: Which one is better?
CS4310.01 Introduction to Operating System Spring 2016 Dr. Zhizhang Shen Season Finale: Which one is better? 1 Background In this lab, we will study, and compare, two processor scheduling policies via
More informationDETERMINING THE VARIABLE QUANTUM TIME (VQT) IN ROUND ROBIN AND IT S IMPORTANCE OVER AVERAGE QUANTUM TIME METHOD
D DETERMINING THE VARIABLE QUANTUM TIME (VQT) IN ROUND ROBIN AND IT S IMPORTANCE OVER AVERAGE QUANTUM TIME METHOD Yashasvini Sharma 1 Abstract The process scheduling, is one of the most important tasks
More informationImprovising Round Robin Process Scheduling through Dynamic Time Quantum Estimation
Improvising Round Robin Process Scheduling through Dynamic Time Quantum Estimation Mr. Nischaykumar Hegde 1, Mr. Pramod Kumar P M 2 Department of Computer Science, Vivekananda College of Engineering &
More informationCS 370. FCFS, SJF and Round Robin. Yashwanth Virupaksha and Abhishek Yeluri
CS 370 FCFS, SJF and Round Robin Yashwanth Virupaksha and Abhishek Yeluri Homework-4 Review Write a C program to demonstrate the following scheduling algorithms First Come First Serve. (20 pts) Shortest
More informationODSA: A Novel Ordering Divisional Scheduling Algorithm for Modern Operating Systems
ODSA: A Novel Ordering Divisional Scheduling Algorithm for Modern Operating Systems Junaid Haseeb Khizar Hameed Muhammad Junaid Muhammad Tayyab Samia Rehman COMSATS Institute of Information Technology,
More informationDesign and Performance Evaluation of a New Proposed Shortest Remaining Burst Round Robin (SRBRR) Scheduling Algorithm
Design and Performance Evaluation of a New Proposed Shortest Remaining Burst Round Robin (SRBRR) Scheduling Algorithm Prof. Rakesh Mohanty, Prof. H. S. Behera Khusbu Patwari, Manas Ranjan Das, Monisha
More informationDynamic Time Quantum based Round Robin CPU Scheduling Algorithm
Dynamic Time Quantum based Round Robin CPU Scheduling Algorithm Yosef Berhanu Department of Computer Science University of Gondar Ethiopia Abebe Alemu Department of Computer Science University of Gondar
More informationCOMPARATIVE PERFORMANCE ANALYSIS OF MULTI-DYNAMIC TIME QUANTUM ROUND ROBIN (MDTQRR) ALGORITHM WITH ARRIVAL TIME
COMPARATIVE PERFORMANCE ANALYSIS OF MULTI-DYNAMIC TIME QUANTUM ROUND ROBIN (MDTQRR) ALGORITHM WITH ARRIVAL TIME Abstract H. S. Behera, Rakesh Mohanty, Sabyasachi Sahu, Sourav Kumar Bhoi Dept. of Computer
More informationENHANCING CPU PERFORMANCE USING SUBCONTRARY MEAN DYNAMIC ROUND ROBIN (SMDRR) SCHEDULING ALGORITHM
ENHANCING CPU PERFORMANCE USING SUBCONTRARY MEAN DYNAMIC ROUND ROBIN (SMD) SCHEDULING ALGORITHM Sourav Kumar Bhoi *1, Sanjaya Kumar Panda 2 and Debashee Tarai 3 * 1 Department of Computer Science & Engineering,
More informationJournal of Global Research in Computer Science
Volume 2, No. 2, February 2011 Journal of Global Research in Computer Science RESEARCH PAPER Available Online at www.jgrcs.info Design and Performance Evaluation of Multi Cyclic Round Robin (MCRR) Algorithm
More informationFebruary 2011 Page 23 of 93 ISSN
Design and Performance Evaluation of A New Proposed Fittest Job First Dynamic Round Robin (FJFDRR) Scheduling Algorithm Prof. Rakesh Mohanty 1 Lecturer Department of Computer Science and Engineering Veer
More informationHalf Life Variable Quantum Time Round Robin (HLVQTRR)
Half Life Variable Quantum Time Round Robin () Simon Ashiru, Salleh Abdullahi, Sahalu Junaidu Department of Mathematics, ABU Zaria, Nigeria Abstract Round Robin (RR), one of the oldest CPU scheduling algorithms
More informationLecture 6. Real-Time Systems. Dynamic Priority Scheduling
Real-Time Systems Lecture 6 Dynamic Priority Scheduling Online scheduling with dynamic priorities: Earliest Deadline First scheduling CPU utilization bound Optimality and comparison with RM: Schedulability
More informationEfficient Dual Nature Round Robin CPU Scheduling Algorithm: A Comparative Analysis
Efficient Dual Nature Round Robin CPU Scheduling Algorithm: A Comparative Analysis Sajida Fayyaz 1, Hafiz Ali Hamza 2, Saira Moin U Din 3 and Iqra 4 1-4 Department of Computer Science, University of Lahore
More informationReal-Time Systems. Event-Driven Scheduling
Real-Time Systems Event-Driven Scheduling Marcus Völp, Hermann Härtig WS 2013/14 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed
More informationRevamped Round Robin Scheduling Algorithm
Revamped Round Robin Scheduling Chhayanath Padhy, M.Tech Student, Government College of Engineering Kalahandi, Odissa, India Dillip Ranjan Nayak, Assistant Professor, Government College of Engineering
More informationNetworked Embedded Systems WS 2016/17
Networked Embedded Systems WS 2016/17 Lecture 2: Real-time Scheduling Marco Zimmerling Goal of Today s Lecture Introduction to scheduling of compute tasks on a single processor Tasks need to finish before
More informationAperiodic Task Scheduling
Aperiodic Task Scheduling Jian-Jia Chen (slides are based on Peter Marwedel) TU Dortmund, Informatik 12 Germany Springer, 2010 2017 年 11 月 29 日 These slides use Microsoft clip arts. Microsoft copyright
More informationCIS 4930/6930: Principles of Cyber-Physical Systems
CIS 4930/6930: Principles of Cyber-Physical Systems Chapter 11 Scheduling Hao Zheng Department of Computer Science and Engineering University of South Florida H. Zheng (CSE USF) CIS 4930/6930: Principles
More informationScheduling IoT on to the Cloud : A New Algorithm
European Journal of Applied Sciences 9 (5): 249-257, 2017 ISSN 2079-2077 IDOSI Publications, 2017 DOI: 10.5829/idosi.ejas.2017.249.257 Scheduling IoT on to the Cloud : A New Algorithm 1 2 3 4 S. Balamurugan,
More informationAn Improved Round Robin Approach using Dynamic Time Quantum for Improving Average Waiting Time
An Improved Round Robin Approach using Dynamic Quantum for Improving Waiting Sandeep Negi Assistant Professor Department of Computer Science & Engineering Delhi Institute of Technology & Management ABSTRACT
More informationReal-Time Scheduling and Resource Management
ARTIST2 Summer School 2008 in Europe Autrans (near Grenoble), France September 8-12, 2008 Real-Time Scheduling and Resource Management Lecturer: Giorgio Buttazzo Full Professor Scuola Superiore Sant Anna
More informationEmbedded Systems 14. Overview of embedded systems design
Embedded Systems 14-1 - Overview of embedded systems design - 2-1 Point of departure: Scheduling general IT systems In general IT systems, not much is known about the computational processes a priori The
More informationImproved Deadline Monotonic Scheduling With Dynamic and Intelligent Time Slice for Real-time Systems
Improved Deadline Monotonic Scheduling With Dynamic and Intelligent Time Slice for Real-time Systems H. S. Behera, Sushree Sangita Panda and Jana Chakraborty Department of Computer Science and Engineering,
More informationA NEW PROPOSED DYNAMIC DUAL PROCESSOR BASED CPU SCHEDULING ALGORITHM
A NEW POPOSED DYNAMIC DUAL POCESSO BASED CPU SCHEDULING ALGOITHM 1 G.SIVA NAGESWAA AO, 2 D.S.V.N. SINIVASU, 3 D. N SINIVASU, 4 D. O NAGA AJU 1 Assoc. Professor, Department of Computer Science and Engineering,
More informationTask Models and Scheduling
Task Models and Scheduling Jan Reineke Saarland University June 27 th, 2013 With thanks to Jian-Jia Chen at KIT! Jan Reineke Task Models and Scheduling June 27 th, 2013 1 / 36 Task Models and Scheduling
More informationENHANCING THE CPU PERFORMANCE USING A MODIFIED MEAN- DEVIATION ROUND ROBIN SCHEDULING ALGORITHM FOR REAL TIME SYSTEMS.
Volume 3, o. 3, March 2012 Journal of lobal Research in Computer Science RSRCH PPR vailable Online at www.jgrcs.info HC H CPU PRFORMC US MODFD M- DVO ROUD ROB SCHDUL LORHM FOR RL M SYSMS. H.s.Behera *1,
More informationReal-Time Scheduling. Real Time Operating Systems and Middleware. Luca Abeni
Real Time Operating Systems and Middleware Luca Abeni luca.abeni@unitn.it Definitions Algorithm logical procedure used to solve a problem Program formal description of an algorithm, using a programming
More informationPBS: A Unified Priority-Based CPU Scheduler
PBS: A Unified Priority-Based CPU Scheduler Hanhua Feng Computer Science Columbia University Vishal Misra Computer Science Columbia University May, 006 Dan Rubenstein Electrical Engineering Columbia University
More informationJournal of Global Research in Computer Science
Volume 2, No. 4, April 2011 Journal of Global Research in Computer Science RESEARCH ARTICLE Available Online at www.jgrcs.info PERFORMANCE EVALUATION OF A NEW PROPOSED SHOTREST EXECUTION FIRST DYNAMIC
More informationDetermining the Optimum Time Quantum Value in Round Robin Process Scheduling Method
I.J. Information Technology and Computer Science, 2012, 10, 67-73 Published Online September 2012 in MECS (http://www.mecs-press.org/) DOI: 10.5815/ijitcs.2012.10.08 Determining the Optimum Time Quantum
More informationInternational Journal of Advanced Research in Computer Science and Software Engineering
Volume 2, Issue 11, November 2012 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com A Best possible
More informationProcess Scheduling for RTS. RTS Scheduling Approach. Cyclic Executive Approach
Process Scheduling for RTS Dr. Hugh Melvin, Dept. of IT, NUI,G RTS Scheduling Approach RTS typically control multiple parameters concurrently Eg. Flight Control System Speed, altitude, inclination etc..
More informationA new Hybridized Multilevel Feedback Queue Scheduling with Intelligent Time Slice and its Performance Analysis
A new Hybridized Multilevel Feedback Queue Scheduling with Intelligent Time Slice and its Performance Analysis H.S.Behera, Reena Kumari Naik, Suchilagna Parida Department of Computer Science and Engineering
More informationScheduling Algorithms for Multiprogramming in a Hard Realtime Environment
Scheduling Algorithms for Multiprogramming in a Hard Realtime Environment C. Liu and J. Layland Journal of the ACM, 20(1):46--61, January 1973. 2 Contents 1. Introduction and Background 2. The Environment
More informationAnalysis of Software Artifacts
Analysis of Software Artifacts System Performance I Shu-Ngai Yeung (with edits by Jeannette Wing) Department of Statistics Carnegie Mellon University Pittsburgh, PA 15213 2001 by Carnegie Mellon University
More informationReal-Time Systems. Event-Driven Scheduling
Real-Time Systems Event-Driven Scheduling Hermann Härtig WS 2018/19 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed Priority schedulers
More informationNon-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund
Non-Preemptive and Limited Preemptive Scheduling LS 12, TU Dortmund 09 May 2017 (LS 12, TU Dortmund) 1 / 31 Outline Non-Preemptive Scheduling A General View Exact Schedulability Test Pessimistic Schedulability
More informationOperational Laws Raj Jain
Operational Laws 33-1 Overview What is an Operational Law? 1. Utilization Law 2. Forced Flow Law 3. Little s Law 4. General Response Time Law 5. Interactive Response Time Law 6. Bottleneck Analysis 33-2
More informationLecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013
Lecture 3 Real-Time Scheduling Daniel Kästner AbsInt GmbH 203 Model-based Software Development 2 SCADE Suite Application Model in SCADE (data flow + SSM) System Model (tasks, interrupts, buses, ) SymTA/S
More informationCEC 450 Real-Time Systems
E 450 Real-ime Systems Lecture 4 Rate Monotonic heory Part September 7, 08 Sam Siewert Quiz Results 93% Average, 75 low, 00 high Goal is to learn what you re not learning yet Motivation to keep up with
More informationThere are three priority driven approaches that we will look at
Priority Driven Approaches There are three priority driven approaches that we will look at Earliest-Deadline-First (EDF) Least-Slack-Time-first (LST) Latest-Release-Time-first (LRT) 1 EDF Earliest deadline
More informationAndrew Morton University of Waterloo Canada
EDF Feasibility and Hardware Accelerators Andrew Morton University of Waterloo Canada Outline 1) Introduction and motivation 2) Review of EDF and feasibility analysis 3) Hardware accelerators and scheduling
More information3. Scheduling issues. Common approaches 3. Common approaches 1. Preemption vs. non preemption. Common approaches 2. Further definitions
Common approaches 3 3. Scheduling issues Priority-driven (event-driven) scheduling This class of algorithms is greedy They never leave available processing resources unutilized An available resource may
More informationEXTRA THRESHOLD IN ROUND ROBIN ALGORITHM IN MULTIPROCESSOR SYSTEM
EXTRA THRESHOLD IN ROUND ROBIN ALGORITHM IN MULTIPROCESSOR SYSTEM 1 AISHWARYA ARORA, 2 HIMANSHI BHATIA 1,2 Department of Computer Science, Jamia Hamdard, New Delhi, Delhi E-mail: aishwaryaa30@gmail.com,
More informationNATCOR: Stochastic Modelling
NATCOR: Stochastic Modelling Queueing Theory II Chris Kirkbride Management Science 2017 Overview of Today s Sessions I Introduction to Queueing Modelling II Multiclass Queueing Models III Queueing Control
More informationConvolution Algorithm
Convolution Algorithm Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 Jain@cse.wustl.edu Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse567-08/
More informationClock-driven scheduling
Clock-driven scheduling Also known as static or off-line scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017
More informationQueueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1
Queueing systems Renato Lo Cigno Simulation and Performance Evaluation 2014-15 Queueing systems - Renato Lo Cigno 1 Queues A Birth-Death process is well modeled by a queue Indeed queues can be used to
More informationA Dynamic Real-time Scheduling Algorithm for Reduced Energy Consumption
A Dynamic Real-time Scheduling Algorithm for Reduced Energy Consumption Rohini Krishnapura, Steve Goddard, Ala Qadi Computer Science & Engineering University of Nebraska Lincoln Lincoln, NE 68588-0115
More informationLecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan
Lecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan Note 6-1 Mars Pathfinder Timing Hiccups? When: landed on the
More informationEmbedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i
Embedded Systems 15-1 - REVIEW: Aperiodic scheduling C i J i 0 a i s i f i d i Given: A set of non-periodic tasks {J 1,, J n } with arrival times a i, deadlines d i, computation times C i precedence constraints
More informationENHANCING THE CPU PERFORMANCE USING A MODIFIED MEAN- DEVIATION ROUND ROBIN SCHEDULING ALGORITHM FOR REAL TIME SYSTEMS
Volume 3, o. 3, March 212 Journal of lobal esearch in Computer Science SCH PP vailable Online at www.jgrcs.info HC H CPU PFOMC US MODFD M- DVO OUD OB SCHDUL LOHM FO L M SYSMS H.s.Behera *1, Sreelipa Curtis
More informationENHANCED ROUND ROBIN ALGORITHM FOR PROCESS SCHEDULING USING VARYING QUANTUM PRECISION
ENHANCED ROUND ROBIN ALGORITHM FOR PROCESS SCHEDULING USING VARYING QUANTUM PRECISION 1 AASHNA BISHT, 2 MOHD ABDUL AHAD, 3 SIELVIE SHARMA Department of Computer Science, Jamia Hamdard, New Delhi Abstract:
More informationOnline Energy-Aware I/O Device Scheduling for Hard Real-Time Systems with Shared Resources
Online Energy-Aware I/O Device Scheduling for Hard Real-Time Systems with Shared Resources Abstract The challenge in conserving energy in embedded real-time systems is to reduce power consumption while
More informationAnalysis of PFLOTRAN on Jaguar
Analysis of PFLOTRAN on Jaguar Kevin Huck, Jesus Labarta, Judit Gimenez, Harald Servat, Juan Gonzalez, and German Llort CScADS Workshop on Performance Tools for Petascale Computing Snowbird, UT How this
More informationEmbedded Systems Development
Embedded Systems Development Lecture 3 Real-Time Scheduling Dr. Daniel Kästner AbsInt Angewandte Informatik GmbH kaestner@absint.com Model-based Software Development Generator Lustre programs Esterel programs
More information11 The M/G/1 system with priorities
11 The M/G/1 system with priorities In this chapter we analyse queueing models with different types of customers, where one or more types of customers have priority over other types. More precisely we
More informationEDF Feasibility and Hardware Accelerators
EDF Feasibility and Hardware Accelerators Andrew Morton University of Waterloo, Waterloo, Canada, arrmorton@uwaterloo.ca Wayne M. Loucks University of Waterloo, Waterloo, Canada, wmloucks@pads.uwaterloo.ca
More informationResearch Article Designing of Vague Logic Based 2-Layered Framework for CPU Scheduler
Fuzzy Systems Volume 6, Article ID 78467, pages http://dx.doi.org/./6/78467 Research Article Designing of Vague Logic Based -Layered Framework for CPU Scheduler Supriya Raheja School of Engineering & Technology,
More informationScheduling Lecture 1: Scheduling on One Machine
Scheduling Lecture 1: Scheduling on One Machine Loris Marchal October 16, 2012 1 Generalities 1.1 Definition of scheduling allocation of limited resources to activities over time activities: tasks in computer
More informationSupplement of Improvement of Real-Time Multi-Core Schedulability with Forced Non- Preemption
12 Supplement of Improvement of Real-Time Multi-Core Schedulability with Forced Non- Preemption Jinkyu Lee, Department of Computer Science and Engineering, Sungkyunkwan University, South Korea. Kang G.
More informationComputing the Signal Duration to Minimize Average Waiting Time using Round Robin Algorithm
Volume 4, No. 6, June 2013 Journal of Global Research in Computer Science RESEARCH PAPER Available Online at www.jgrcs.info Computing the Signal Duration to Minimize Average Waiting Time using Round Robin
More informationReal-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2
Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2 Lecture Outline Scheduling periodic tasks The rate monotonic algorithm Definition Non-optimality Time-demand analysis...!2
More informationReal-Time Systems. Lecture 4. Scheduling basics. Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling
Real-Time Systems Lecture 4 Scheduling basics Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling 1 Last lecture (3) Real-time kernels The task states States and transition
More informationReal-Time and Embedded Systems (M) Lecture 5
Priority-driven Scheduling of Periodic Tasks (1) Real-Time and Embedded Systems (M) Lecture 5 Lecture Outline Assumptions Fixed-priority algorithms Rate monotonic Deadline monotonic Dynamic-priority algorithms
More informationNon-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks
Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks Moonju Park Ubiquitous Computing Lab., IBM Korea, Seoul, Korea mjupark@kr.ibm.com Abstract. This paper addresses the problem of
More informationOn-line scheduling of periodic tasks in RT OS
On-line scheduling of periodic tasks in RT OS Even if RT OS is used, it is needed to set up the task priority. The scheduling problem is solved on two levels: fixed priority assignment by RMS dynamic scheduling
More informationCPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017
CPSC 531: System Modeling and Simulation Carey Williamson Department of Computer Science University of Calgary Fall 2017 Motivating Quote for Queueing Models Good things come to those who wait - poet/writer
More informationProportional Share Resource Allocation Outline. Proportional Share Resource Allocation Concept
Proportional Share Resource Allocation Outline Fluid-flow resource allocation models» Packet scheduling in a network Proportional share resource allocation models» CPU scheduling in an operating system
More informationCEC 450 Real-Time Systems
CEC 450 Real-Time Systems Lecture 3 Real-Time Services Part 2 (Rate Monotonic Theory - Policy and Feasibility for RT Services) September 7, 2018 Sam Siewert Quick Review Service Utility RM Policy, Feasibility,
More informationD Praveen Kumar et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (5), 2014,
Finding Best Time Quantum for Round Robin Scheduling Algorithm to avoid Frequent Context Switch D Praveen Kumar #1, T. Sreenivasula Reddy *2, A. Yugandhar Reddy *3 # Assistant Professor, Department of
More informationSection 1.2: A Single Server Queue
Section 12: A Single Server Queue Discrete-Event Simulation: A First Course c 2006 Pearson Ed, Inc 0-13-142917-5 Discrete-Event Simulation: A First Course Section 12: A Single Server Queue 1/ 30 Section
More informationSub-Optimal Scheduling of a Flexible Batch Manufacturing System using an Integer Programming Solution
Sub-Optimal Scheduling of a Flexible Batch Manufacturing System using an Integer Programming Solution W. Weyerman, D. West, S. Warnick Information Dynamics and Intelligent Systems Group Department of Computer
More informationA FAST MATRIX-ANALYTIC APPROXIMATION FOR THE TWO CLASS GI/G/1 NON-PREEMPTIVE PRIORITY QUEUE
A FAST MATRIX-ANAYTIC APPROXIMATION FOR TE TWO CASS GI/G/ NON-PREEMPTIVE PRIORITY QUEUE Gábor orváth Department of Telecommunication Budapest University of Technology and Economics. Budapest Pf. 9., ungary
More informationControlling Preemption for Better Schedulability in Multi-Core Systems
2012 IEEE 33rd Real-Time Systems Symposium Controlling Preemption for Better Schedulability in Multi-Core Systems Jinkyu Lee and Kang G. Shin Dept. of Electrical Engineering and Computer Science, The University
More information