Season Finale: Which one is better?
|
|
- Aleesha Wilson
- 6 years ago
- Views:
Transcription
1 CS 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 simulation. They are the FCFS(First-come-first-serve), and the more sophisticated RR(Round Robin) policies. The former is easy to understand, while the latter is perhaps the most widely used among all the scheduling algorithms. Below shows a general, but simplified model, of processor scheduling: More specifically, with the FCFS algorithm, every process, when it joins the Ready list for the first time, is given a time stamp. The dispatcher simply picks up the process with the earliest arrival time stamp. Also, this is an example of the non-preemptive algorithm in the sense that, once a process is picked up, it will stay in the processor until it is completed. On the other hand, with the RR algorithm, for a given n processes, p 0, p 1,..., p n 1, the dispatcher will assign the processor to each process a certain amount of time 1, referred to as time slice henceforth. When a new process arrives, it is added into the list with its arrival time as a time stamp, and when the time slice of the currently running process is used up, but itself is not completed yet, this process will be put back to the list with a new time stamp, i.e., the system time when this round is done. The dispatcher just picks the one that has stayed in the list the longest time, or the one with the smallest time stamp, as the next process to run. This is certainly an example of the preemptive algorithm in the sense that a process could be put back into the Ready list before it is completed. For a description of these two policies, please check out Chapter 9, Uniprocessor scheduling, of thetext book, and pages13 through 17 of the lecture notes. For discussion of a comprehensive example, please check through pages 26 through 31 in the lecture notes, as well as Figure 9.5 and Table 9.5 in in the book. The objective of such a scheduling policy is certainly to achieve a desirable compromise among minimal average waiting time, maximum throughput and processor utilization for the forthcoming processes. Since there is no way to know that beforehand, the study of such policies is often carried ot through simulation when the data are randomly generated. We want to gain such an experience through this project, when studying the impact of such a 1 It is an approximation since we also have to consider the cost of scheduling, and context switching time, referred to as context switching time in later discussion.
2 policy on the average normalized turnaround time of a collection of processes with randomly generated arrival time and service time. You can use either C or Java to complete this project. It is clear that the appropriate data structure to organize the Ready queue for the RR algorithm is the priority queue as we discussed in the algorithm class on Heapsort for CS3221), while that for the FCFS is just the usual queue. My lecture notes for the algorithm course are available via the following link: turing.plymouth.edu/~zshen/webfiles/cs3221spring2016.html. 2 Scheduling algorithms We can characterize a scheduling algorithm with the following: Given a process, p i, i [0, n), by T s (i), the service time associated with p i, we mean the amount of processing time it takes p i to complete, by T r (i), the turnaround time for p i, we mean the total amount of time that p i has to stay in the system, running, ready, blocked, etc., and, by the normalized turnaround time for p i, we mean T r (i)/t s (i). It certainly true that, for all i [0, n), T r (i)/t s (i) 1, and the closer this ratio to 1, the better. For example, we can characterize the two algorithms with a given load, as shown in Table 1, assuming that all of them arrive at t = 0. Table 1: An example of process load information Index (i) Service time (T s (i)) Notice that in the example that we went through in the class, i.e., Figure 9.5, the five processes arrive at different time. 2.1 For the FCFS algorithm The following figure shows the scheduled assignment to various processors, under the FCFS algorithm, assuming all of them arrive at t = p 0 p 1 p 2 p 3 p 4 It is easy to calculate both the turnaround time T r, for those processes as follows: T r (p 0 ) =
3 T r (p 1 ) = 475 (= ). T r (p 2 ) = 950 (= ). T r (p 3 ) = 1200 (= ). T r (p 1 ) = 1275 (= ). For example, process p 1, although arriving at t = 0, has to wait p 1 to finish at t = 350, then start to run, since it is the second in the queue. Hence the average turnaround time for each process is the sum of the above turnaround time divided by the number of the processes, i.e., 850. From the above two charts, we can also easily calculate the respective normalized turnaround time, T r /T s, as follows: T Trnd (p 0 ) = T r (p 0 )/T s (p 0 ) = 350/350 = 1. T Trnd (p 1 ) = T r (p 1 )/T s (p 1 ) = 475/125 = 3.8 T Trnd (p 2 ) = 2 T Trnd (p 3 ) = 4.8 T Trnd (p 1 ) = 17. As a result, the average normalized turnaround time is Moreover, the following Table 2 shows that this policy favors longer processes, consistent with our observation as made in Figure 9.14 in the book. Table 2: Turnaround time in terms of service time with FCFS Index (i) Service time (T s (i)) T N.Trnd (i) For the RR algorithm Again, we first give the following figure, showing the scheduled assignment to various processes, under the RR algorithm. We first ignore the context switching time, namely, the overhead the system has to kick in to do the process switching in and out. We also assume a time slice of 50 units p 0 p 1 p 2 p 3 p 4 p 0 p 1 p 2 p 3 p 4 p 0 p 1 p 2 p p 0 p 2 p 3 p 0 p 2 p 3 p 0 p 2 p 0 p 2 p 2 p 2 p 2 3
4 For example, p 0 starts at t = 0, and stops at t = 50, then p 1 starts, and stops at t = 100,..., p 4 will complete at 475, and half of that slice will be wasted, and p 0 starts at t = 500, which will eventually complete at t = 1150, when p 2 will start and continue until t = 1325, which also wraps up the whole show. Table 3: Turnaround time in terms of service time with RR(50) Index (i) Service time (T s (i)) T Trnd (i) T N.Trnd (i) Following exactly the same approach, we can calculate that the average turnaround time for all the processes is 905 = (4525/5), and the average normalized turnaround time is Thus, compared with the FCFS approach, the RR algorithm, with the above assumptions, leads to about the same average turnaround time, but a 26.6% less average normalized turnaround time for this set of data. Moreover, as shown in Table 3, this policy also favors longer processes, but the results are not as far apart as what we saw with the FCFS policy. This observation is also consistent with what is demonstrated in Figure How about the context switching time? A RR based dispatcher rotates among processes, thus process switching becomes an issue. If we assume that each process switching takes 10 units of time, then the initial segment of the process will look like the following: p 0 starts at t = 0, stops at t = 50, and p 1 starts at t = 60, after the system spends 10 units of time on switching context for these two processes, and stops at t = 110, when p 2 kicks off, and stops at t = 160, etc p 0 c p 1 c p 2 c p 3 c p 4 c p 0 c p 1 c 3 What to do in this project? Besides implementing the FCFS and RR algorithms, you will also compare their performances by studying the impact of the length of time slice, and that of the context switching time, on the average turnaround time, and the average wait time for all the processes, when dispatched by these two policies. 4
5 1. As the input data of the process loading information, you should randomly generate an input consisting of a large collection, e.g., n = 1000, of process load, similar to that given in Table 1. Each process is characterized with two pieces of information, besides it identifier: arrival time, and service time 2. For example, the first few lines might look as follows: This means that process p 0 comes at time 30 and requests seconds, i.e., 785 ms, of CPU time, etc.. Notice that the above lines are sorted on the arrival time, when you can delete those with duplicated arrival time, if there are any. 2. Find out the average turnaround time, and, more importantly, the average normalized turnaround time for the such a process load as dispatched by FCFS, and the RR policies, respectively. For the latter policy, consider switching time ranges among 0, 5, 10, 15, 20 and 25 ms; and time slice ranges among 50, 100, 250 and 500 ms. 3. Sort the 1,000 processes according to the length of their service time, and then classify them into 20 groups of 50 processes each. For each group, find out the average normalized turnaround time under both the FCFS policy and the RR policy when the length of the time slice equal 50, 250 and 500 ms; and switching time is 10 ms. Thus, the average normalized turnaround time for the first group will be that of the 50 shortest processes, and that of the last group will be the average normalized turnaround time for the 50 longest processes, under the respective policy. All in all, there should be four rows of data, 20 pieces for each row, giving the average normalized turnaround time of the 20 process groups according to their relative length. For example, the first row gives the average normalized turnaround time of the 20 process groups, arranged in term of their length, under the FCFS policy; the second row gives the average normalized turnaround time of the 20 process groups, arranged in term of their length, under the RR policy when the time slice is 50 microseconds, and the process switching time is 10 microseconds, etc.. 4. Besides tabulating the results, demonstrate the results graphically, with, e.g., Microsoft Excel, using Figure 9.14 as an example. 4 What to send in? me the source code, and a lab report, containing 1) a brief but complete description as how you have implemented the two scheduling algorithms, especially the Round Robin policy 2 You might use a random number generator with a scope of [0, 10000) to generate the arrival time, and use another random number generator with a scope of [0, 500) to generate the service time. 5
6 in terms of a priority queue, with and without taking consideration of the context switching time; 2) the process of collecting the data; 3) the tabulated data; 4) the comparative chart(s); and 5) your conclusion as which policy looks better in terms of average normalized turnaround time; and, in terms of RR policy, which combination of context switching time and time slice, thus most promising for this set of data. Below is a general guideline for grading: 3(+/ ): A serious effort, as demonstrated via your program and the lab report, is made to implement the aforementioned two scheduling algorithms, and address all the aforementioned five issues in your report. 4(+/ ): Based on the implemented policies and a randomly generated process load, various combinations of time slice and context switching time are investigated, and non-trivial results are obtained. 5: Tabulated data and comparative chart(s) on average (normalized) turnaround time are provided for the chosen samples, based on which a justified conclusion is reached. 6
Module 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 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 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 informationProcess Scheduling. Process Scheduling. CPU and I/O Bursts. CPU - I/O Burst Cycle. Variations in Bursts. Histogram of CPU Burst Times
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
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 informationAdvanced Computer Networks Lecture 3. Models of Queuing
Advanced Computer Networks Lecture 3. Models of Queuing Husheng Li Min Kao Department of Electrical Engineering and Computer Science University of Tennessee, Knoxville Spring, 2016 1/13 Terminology of
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 informationLogistical and Transportation Planning. QUIZ 1 Solutions
QUIZ 1 Solutions Problem 1. Patrolling Police Car. A patrolling police car is assigned to the rectangular sector shown in the figure. The sector is bounded on all four sides by a roadway that requires
More informationSingle Machine Models
Outline DM87 SCHEDULING, TIMETABLING AND ROUTING Lecture 8 Single Machine Models 1. Dispatching Rules 2. Single Machine Models Marco Chiarandini DM87 Scheduling, Timetabling and Routing 2 Outline Dispatching
More informationNon-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions
Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Mitra Nasri Chair of Real-time Systems, Technische Universität Kaiserslautern, Germany nasri@eit.uni-kl.de
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 informationAnalysis of Round-Robin Implementations of Processor Sharing, Including Overhead
Analysis of Round-Robin Implementations of Processor Sharing, Including Overhead Steve Thompson and Lester Lipsky Computer Science & Engineering University of Connecticut Storrs, CT 669 Email: sat3@engr.uconn.edu;
More informationCSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD
Course Overview Material that will be covered in the course: Basic graph algorithms Algorithm Design Techniques Greedy Algorithms Divide and Conquer Dynamic Programming Network Flows Computational intractability
More informationprocess arrival time CPU burst time priority p1 0ms 25ms 3 p2 1ms 9ms 1 p3 20ms 14ms 4 p4 32ms 4ms 2
Homework #2 Solutions 1. Suppose that the following processes arrive for execution at the times indicated. Each process will run with a single burst of CPU activity (i.e., no I/O) which lasts for the listed
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 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 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 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 informationGreedy Algorithms. CSE 101: Design and Analysis of Algorithms Lecture 10
Greedy Algorithms CSE 101: Design and Analysis of Algorithms Lecture 10 CSE 101: Design and analysis of algorithms Greedy algorithms Reading: Kleinberg and Tardos, sections 4.1, 4.2, and 4.3 Homework 4
More informationServers. Rong Wu. Department of Computing and Software, McMaster University, Canada. Douglas G. Down
MRRK-SRPT: a Scheduling Policy for Parallel Servers Rong Wu Department of Computing and Software, McMaster University, Canada Douglas G. Down Department of Computing and Software, McMaster University,
More informationCS418 Operating Systems
CS418 Operating Systems Lecture 14 Queuing Analysis Textbook: Operating Systems by William Stallings 1 1. Why Queuing Analysis? If the system environment changes (like the number of users is doubled),
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 informationLoad Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors
Technical Report No. 2009-7 Load Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors RISAT MAHMUD PATHAN JAN JONSSON Department of Computer Science and Engineering CHALMERS UNIVERSITY
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 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 informationCS 374: Algorithms & Models of Computation, Spring 2017 Greedy Algorithms Lecture 19 April 4, 2017 Chandra Chekuri (UIUC) CS374 1 Spring / 1
CS 374: Algorithms & Models of Computation, Spring 2017 Greedy Algorithms Lecture 19 April 4, 2017 Chandra Chekuri (UIUC) CS374 1 Spring 2017 1 / 1 Part I Greedy Algorithms: Tools and Techniques Chandra
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 informationHow to deal with uncertainties and dynamicity?
How to deal with uncertainties and dynamicity? http://graal.ens-lyon.fr/ lmarchal/scheduling/ 19 novembre 2012 1/ 37 Outline 1 Sensitivity and Robustness 2 Analyzing the sensitivity : the case of Backfilling
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 informationCSE 421 Greedy Algorithms / Interval Scheduling
CSE 421 Greedy Algorithms / Interval Scheduling Yin Tat Lee 1 Interval Scheduling Job j starts at s(j) and finishes at f(j). Two jobs compatible if they don t overlap. Goal: find maximum subset of mutually
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 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 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 informationA Utilization Bound for Aperiodic Tasks and Priority Driven Scheduling
A Utilization Bound for Aperiodic Tasks and Priority Driven Scheduling Tarek F. Abdelzaher, Vivek Sharma Department of Computer Science, University of Virginia, Charlottesville, VA 224 Chenyang Lu Department
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 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 informationMassachusetts Institute of Technology
.203J/6.28J/3.665J/5.073J/6.76J/ESD.26J Quiz Solutions (a)(i) Without loss of generality we can pin down X at any fixed point. X 2 is still uniformly distributed over the square. Assuming that the police
More informationQueueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements
Queueing Systems: Lecture 3 Amedeo R. Odoni October 18, 006 Announcements PS #3 due tomorrow by 3 PM Office hours Odoni: Wed, 10/18, :30-4:30; next week: Tue, 10/4 Quiz #1: October 5, open book, in class;
More informationNotation. Bounds on Speedup. Parallel Processing. CS575 Parallel Processing
Parallel Processing CS575 Parallel Processing Lecture five: Efficiency Wim Bohm, Colorado State University Some material from Speedup vs Efficiency in Parallel Systems - Eager, Zahorjan and Lazowska IEEE
More informationB. Maddah INDE 504 Discrete-Event Simulation. Output Analysis (1)
B. Maddah INDE 504 Discrete-Event Simulation Output Analysis (1) Introduction The basic, most serious disadvantage of simulation is that we don t get exact answers. Two different runs of the same model
More informationQueuing Networks. - Outline of queuing networks. - Mean Value Analisys (MVA) for open and closed queuing networks
Queuing Networks - Outline of queuing networks - Mean Value Analisys (MVA) for open and closed queuing networks 1 incoming requests Open queuing networks DISK CPU CD outgoing requests Closed queuing networks
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 informationMASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science 6.262 Discrete Stochastic Processes Midterm Quiz April 6, 2010 There are 5 questions, each with several parts.
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 informationRCPSP Single Machine Problems
DM204 Spring 2011 Scheduling, Timetabling and Routing Lecture 3 Single Machine Problems Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Outline 1. Resource
More informationDiscrete Event Simulation. Motive
Discrete Event Simulation These slides are created by Dr. Yih 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
More informationThe preemptive uniprocessor scheduling of mixed-criticality implicit-deadline sporadic task systems
The preemptive uniprocessor scheduling of mixed-criticality implicit-deadline sporadic task systems Sanjoy Baruah 1 Vincenzo Bonifaci 2 3 Haohan Li 1 Alberto Marchetti-Spaccamela 4 Suzanne Van Der Ster
More informationQueueing with redundant requests: exact analysis
DOI 0.007/s34-06-9485-y Queueing with redundant requests: exact analysis Kristen Gardner Samuel Zbarsky 2 Sherwin Doroudi 3 Mor Harchol-Balter Esa Hyytiä 4 Alan Scheller-Wolf 3 Received: September 205
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 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 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 information1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)
1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours) Student Name: Alias: Instructions: 1. This exam is open-book 2. No cooperation is permitted 3. Please write down your name
More informationAn Energy-efficient Task Scheduler for Multi-core Platforms with per-core DVFS Based on Task Characteristics
1 An -efficient Task Scheduler for Multi-core Platforms with per-core DVFS Based on Task Characteristics Ching-Chi Lin, You-Cheng Syu, Chao-Jui Chang, Jan-Jan Wu, Pangfeng Liu, Po-Wen Cheng and Wei-Te
More informationPart A [10 points] spindle read/write head. block cylinder. 1) Choose the term from the list that matches each description.
Part A [10 points] 1) Choose the term from the list that matches each description. Terms a) Access Time b) Addressability c) Arithmetic/Logic Unit d) Bus Width e) Control Unit f) CPU g) Instruction Register
More informationAPTAS for Bin Packing
APTAS for Bin Packing Bin Packing has an asymptotic PTAS (APTAS) [de la Vega and Leuker, 1980] For every fixed ε > 0 algorithm outputs a solution of size (1+ε)OPT + 1 in time polynomial in n APTAS for
More informationIntroduction to Queueing Theory
Introduction to Queueing Theory 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-11/
More information