Review of Round Robin (RR) CPU Scheduling Algorithm on Varying Time Quantum

Similar documents
Design and Performance Evaluation of Smart Job First Dynamic Round Robin (SJFDRR) Scheduling Algorithm with Smart Time Quantum

IJCSC VOLUME 5 NUMBER 2 JULY-SEPT 2014 PP ISSN

CPU Scheduling Minsoo Ryu Real-Time Computing and Communications Lab. Hanyang University

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

Pallab Banerjee, Probal Banerjee, Shweta Sonali Dhal

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - V CPU Scheduling - I. University at Buffalo.

Salisu Aliyu Department of Mathematics, Ahmadu Bello University, Zaria, Nigeria

Bhavin Fataniya 1, Manoj Patel 2 1 M.E(I.T) Student, I.T Department, L.D College Of Engineering, Ahmedabad, Gujarat, India ABSTRACT I.

Analysis of Adaptive Round Robin Algorithm and Proposed Round Robin Remaining Time Algorithm

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - V CPU Scheduling - I. Louisiana State University.

A Paper on Modified Round Robin Algorithm

א א א א א א א א

CPU Scheduling. Chapter 9

Chapter 6: CPU Scheduling. Basic Concepts. Histogram of CPU-burst Times. CPU Scheduler. Dispatcher. Alternating Sequence of CPU And I/O Bursts

CPU Scheduling. Basic Concepts Scheduling Criteria Scheduling Algorithms. Unix Scheduler

Comp 204: Computer Systems and Their Implementation. Lecture 10: Process Scheduling

CSC 1600: Chapter 5. CPU Scheduling. Review of Process States

CPU Scheduling: Part I. Operating Systems. Spring CS5212

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Efficient Round Robin Scheduling Algorithm with Dynamic Time Slice

Simulation of Process Scheduling Algorithms

Asia Pacific Journal of Engineering Science and Technology

CPU scheduling. CPU Scheduling

LEAST-MEAN DIFFERENCE ROUND ROBIN (LMDRR) CPU SCHEDULING ALGORITHM

CPU Scheduling. Jo, Heeseung

Scheduling. CSE Computer Systems November 19, 2001

CPU SCHEDULING. Scheduling Objectives. Outline. Basic Concepts. Enforcement of fairness in allocating resources to processes

Scheduling Processes 11/6/16. Processes (refresher) Scheduling Processes The OS has to decide: Scheduler. Scheduling Policies

FIFO SJF STCF RR. Operating Systems. Minati De. Department of Mathematics, Indian Institute of Technology Delhi, India. Lecture 6: Scheduling

IJRASET: All Rights are Reserved

Mixed Round Robin Scheduling for Real Time Systems

Journal of Global Research in Computer Science

Motivation. Types of Scheduling

CS510 Operating System Foundations. Jonathan Walpole

CS 143A - Principles of Operating Systems

Lecture 3. Questions? Friday, January 14 CS 470 Operating Systems - Lecture 3 1

CSE 5343/7343 Fall 2006 PROCESS SCHEDULING

A New Proposed Dynamic Quantum for Priority Based Round Robin Scheduling Algorithm

Process Scheduling Course Notes in Operating Systems 1 (OPESYS1) Justin David Pineda

CPU Scheduling. Jo, Heeseung

Scheduling I. Today. Next Time. ! Introduction to scheduling! Classical algorithms. ! Advanced topics on scheduling

A NOVEL METHOD BASED ON PRIORITY FOR ENHANCEMENT ROUND-ROBIN SCHEDULING ALGORITHM

Improvised Optimum Multilevel Dynamic Round Robin Algorithm for Optimizing CPU Scheduling

Principles of Operating Systems

Project 2 solution code

Comparative Analysis of Basic CPU Scheduling Algorithms

CS 153 Design of Operating Systems Winter 2016

Scheduling Algorithms. Jay Kothari CS 370: Operating Systems July 9, 2008

CPU Scheduling. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

CPU Scheduling. Disclaimer: some slides are adopted from book authors and Dr. Kulkarni s slides with permission

CPU Scheduling (Chapters 7-11)

Announcements. Program #1. Reading. Is on the web Additional info on elf file format is on the web. Chapter 6. CMSC 412 S02 (lect 5)

Reading Reference: Textbook: Chapter 7. UNIX PROCESS SCHEDULING Tanzir Ahmed CSCE 313 Fall 2018

CPU Scheduling. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction to Operating Systems Prof. Chester Rebeiro Department of Computer Science and Engineering Indian Institute of Technology, Madras

CPU Scheduling. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Improvement of Queue Management for Real Time Task in Operating System

Intro to O/S Scheduling. Intro to O/S Scheduling (continued)

Lecture 11: CPU Scheduling

Introduction to Operating Systems. Process Scheduling. John Franco. Dept. of Electrical Engineering and Computing Systems University of Cincinnati

Smarter Round Robin Scheduling Algorithm for Cloud Computing and Big Data

Operating Systems Process Scheduling Prof. Dr. Armin Lehmann

DRR Based Job Scheduling for Computational Grid and its Variants

SE350: Operating Systems. Lecture 6: Scheduling

CSC 553 Operating Systems

Advanced Types Of Scheduling

Comparative Study of Parallel Scheduling Algorithm for Parallel Job

TASK SCHEDULING BASED ON EFFICIENT OPTIMAL ALGORITHM IN CLOUD COMPUTING ENVIRONMENT

CS 111. Operating Systems Peter Reiher

Operating System 9 UNIPROCESSOR SCHEDULING

Chapter 9 Uniprocessor Scheduling

Lecture 6: CPU Scheduling. CMPUT 379, Section A1, Winter 2014 February 5

Uniprocessor Scheduling

SELF OPTIMIZING KERNEL WITH HYBRID SCHEDULING ALGORITHM

Queue based Job Scheduling algorithm for Cloud computing

Operating Systems. Scheduling

CSE 451: Operating Systems Spring Module 8 Scheduling

Process Scheduling I. COMS W4118 Prof. Kaustubh R. Joshi hdp://

CS162 Operating Systems and Systems Programming Lecture 10. Tips for Handling Group Projects Thread Scheduling

September 30 th, 2015 Prof. John Kubiatowicz

A COMPARATIVE ANALYSIS OF SCHEDULING ALGORITHMS

PERFORMANCE ANALYSIS OF LOAD BALANCING IN CLOUD COMPUTING BY USING SCHEDULING ALGORITHMS

Recall: Example of RR with Time Quantum = 20. Round-Robin Discussion

An Optimized Task Scheduling Algorithm in Cloud Computing Environment

Process Scheduling for John Russo generated Mon Nov 07 13:57:15 EST 2011

Resource Utilization & Execution Time Enhancement by Priority Based Preemptable Shortest Job Next Scheduling In Private Cloud Computing

ENGG4420 CHAPTER 4 LECTURE 3 GENERALIZED TASK SCHEDULER

Recall: FCFS Scheduling (Cont.) Example continued: Suppose that processes arrive in order: P 2, P 3, P 1 Now, the Gantt chart for the schedule is:

CPU scheduling CPU 1. P k P 3 P 2 P 1 CPU 2. CPU n. The scheduling problem: Which jobs should we assign to which CPU(s)?

Study and Comparison of VM Scheduling Algorithm in Cloud Computing Using CloudSim Simulator

GENERALIZED TASK SCHEDULER

Design and Implementation of LST Based Dynamic Scheduler on Real Time OS

International Journal of Computer Engineering and Applications, Volume XI, Issue VIII, August 17, ISSN

ELC 4438: Embedded System Design Real-Time Scheduling

Lecture Note #4: Task Scheduling (1) EECS 571 Principles of Real-Time Embedded Systems. Kang G. Shin EECS Department University of Michigan

Scheduling II. To do. q Proportional-share scheduling q Multilevel-feedback queue q Multiprocessor scheduling q Next Time: Memory management

Q1. What is Real time system? Explain the basic model of Real time system. (8)

Performance Comparison of RTS Scheduling Algorithms

TBP:A Threshold Based Priority Scheduling in Cloud Computing Environment

Tasks or processes attempt to control or react to external events occuring in real time RT processes must be able to keep up events

Transcription:

International Journal of Engineering Science Invention ISSN (Online): 2319 6734, ISSN (Print): 2319 6726 Volume 6 Issue 8 August 2017 PP. 68-72 Review of Round Robin (RR) CPU Scheduling Algorithm on Varying Time Quantum Amit Kumar Gupta 1 Dr. Narendra Singh Yadav 2 Dr. Dinesh Goyal 3 Suresh Gyan Vihar University, Jaipur 1 JECRC University Jaipur 2 Suresh Gyan Vihar University,Jaipur 3 Abstract: Round Robin scheduling is mostly used CPU scheduling algorithm; it gives better result in comparison to other scheduling algorithm. But this algorithm may lead many problems directly related to time quantum. If selected time quantum is large, then the response time of the processes may be too high. On the other hand, if time quantum is short, it increases the number of context switch which may lead overhead of the CPU. In this paper, the researcher has analyzed the Round Robin CPU scheduling algorithm on varying time quantum. It is founded that selection of time quantum has crucial role for finding the optimal solution in Round Robin scheduling algorithm. Keywords: Operating Systems, Waiting Time, Turnaround Time, Context Switching, Scheduling Algorithm, Time Quantum, Round Robin. ----------------------------------------------------------------------------------------------------------------------------- ---------- Date of Submission: 08-08-2017 Date of acceptance: 19-08-2017 ----------------------------------------------------------------------------------------------------------------------------- ---------- I. Introduction Round Robin (RR) algorithm which is the main concern of this research is one of the oldest, simplest, and most widely used scheduling algorithms. This algorithm works on time sharing phenomenon. A time slice is given to every process and every process will executed for particular defined time slice. New processes are added to at the last of ready queue. The scheduler pick the process from the starting point of the ready queue and set the timer to a defined time slice and also set an interrupt. If the process still not completed its complete execution within a time slice it will be preempted after a time slice and added at the end of ready queue. The round robin scheduling give the better response time, minimize waiting time and turnaround time, maximize throughput and CPU utilization [1, 2].There are some scheduling criteria, on the basis of these criteria we analysis and determine which scheduling algorithm is best. II. Scheduling criteria There are many CPU scheduling algorithms having different properties, and the selection of a particular algorithm may favour one class of processes over another. The algorithm is selected for a particular state; we must judge properties of a verity of algorithms. The criteria contain the following: [1, 2, 3, 4] Context Switch: A context switch occur when a process interrupt the normal execution sequence of another process. The CPU stores all relevant information of interrupted process in Task Control Box (TCB). The context switch includes wastage of time, memory and scheduling overhead. So scheduling algorithm is designed in such way that it can minimize the number of context switches. Throughput: This term is defined as number of process completed per unit time. So scheduling algorithm is designed in such way that it can maximise the throughput. CPU Utilization: From the performance wise concern the CPU cannot be sit ideal. So scheduling algorithm is designed in such way that it cans maximum use of CPU as possible. Turnaround Time: It is the difference in the time of process when a process is ready to execute and when it complete its execution. So scheduling algorithm is designed in such way that it can minimize the turnaround time. Waiting Time it is the sum of all waiting done by a process in ready queue for execution. So scheduling algorithm is designed in such way that it can minimize the waiting time. Response Time: Response time is the time it takes to start its execution not the time it takes to output the response. III. Scheduling Algorithm There exist different Scheduling algorithms, each of them has advantages and disadvantages and as follows: First-Come-First-Served (FCFS) FCFS is simple scheduling algorithm in which process are executed on the basis of their arrival time in ready queue. This scheduling algorithm is non preemptive in nature. The disadvantages of this algorithm is long waiting time, response time for high priority process. 68 Page

Shortest-Job-First (SJF) In this algorithm the process which have minimum CPU burst time will schedule first. This algorithm can be implemented in two way on is preemptive and another one is non preemptive. This is also known as Shortest Remaining Time first (SRTF). This algorithm may lead a problem that we cannot predict how long a job will executed. Priority Scheduling In This algorithm the process which has priority among the processes will schedule first. This algorithm may lead a problem of starvation which is defined as if high priority processes are regularly available in ready queue then waiting time for low priority may become infinite. Round Robin (RR) algorithm which is the main concern of this research is one of the oldest, simplest, and most widely used scheduling algorithms. This algorithm works on time sharing phenomenon. A time slice is given to every process and every process will executed for particular defined time slice. New processes are added to at the last of ready queue. The scheduler pick the process from the starting point of the ready queue and set the timer to a defined time slice and also set an interrupt. If the process still not completed its complete execution within a time slice it will be preempted after a time slice and added at the end of ready queue. The round robin scheduling give the better response time, minimize waiting time and turnaround time, maximize throughput and CPU utilization [1, 2]. IV. Round robin scheduling The simple RR scheduling algorithm is defined by following steps [1, 2]:- 1. The scheduler contains a queue of ready processes and a list of blocked and swapped out Processes. 2. The Task Control Box (TCB) of newly created process is added to end of ready queue. 3. When executing process finishes its slice, it is moved to end of ready queue. 4. Define the Time quantum for which the processes will be allocated to the CPU In this Researcher has to consider the processes only with CPU burst time and also let round robin quantum =5 RR quantum=5 Table 1 Process With Cpu Burst Time Process Id CPU Burst Time(ms) P1 22 P2 18 P3 9 P4 10 P5 5 Gantt chart: Figure 1 Gantt chart for Round Robin Scheduling No of context switches=13 Average waiting Time=34 ms Average turnaround Time=46.8ms There are many researcher give many improved round robin algorithm. So the literature survey is presented V. Analysis of rr on varying time quantum Consider there are five processes P1, P2, P3, P4 and P5 with their arrival time and execution time as shown in table 2. The Figure 2, 3, 4, 5, 6 and 7 shows Gantt chart for scheduling of process in Round Robin with time quantum=1, 2, 3, 4, 5 and 6 respectively. Table 2 Processes With Burst Time, Arrival Time And Priority Process Arrival Time Burst Time (ms) Priority P1 0 10 5 P2 2 4 2 P3 3 2 1 P4 4 6 3 P5 5 8 4 69 Page

Figure 2 Simple RR Scheduling with Time Quantum=1 Figure 3 Simple RR Scheduling with Time Quantum=2 Figure 4 Simple RR Scheduling with Time Quantum=3 Figure 5 Simple RR Scheduling with Time Quantum=4 Figure 6 Simple RR Scheduling with Time Quantum=5 Figure 7 Simple RR Scheduling with Time Quantum=6 The Average Waiting Time, Average Turnaround Time and number of context switches of above mentioned RR scheduling algorithm is shown in table 3 and figure 8, figure 9 and figure 10 shows comparison graph of average waiting time, average turnaround time and number of context switches of Simple RR CPU scheduling technique with varying time quantum. Table 3 Shows The Awt, Atat And Ncs Scheduling Algorithm Average Waiting Time (ms) Average Turnaround Time (ms) Number of Context Switches 13.2 19.2 29 10 16 14 13 19 13 10.8 16.8 8 12 17.8 7 10.2 16.2 6 70 Page

14 12 10 8 6 4 2 0 Average Waiting Time (ms) Figure 8 shows comparison graph of average waiting time of Simple RR CPU scheduling technique with varying time quantum 20 19 18 17 16 15 14 Average Turnaround Time (ms) Figure 9 shows comparison graph of average turnaround time of Simple RR CPU scheduling technique with varying time quantum. 35 30 25 20 15 10 5 0 Number of Context Switches Figure 10 shows comparison graph of number of context switches of Simple RR CPU scheduling technique with varying time quantum. 71 Page

VI. Conclusion As shown in study of simple round robin algorithm with varying time quantum is shows that it does not define the selection of time quantum properly. The figure 8, 9 and 10 shows the comparison graph of average waiting time, average turnaround time and number of context switches, it clearly shows that the time quantum has more important role in enhancing the performance matrices of simple round robin algorithm. If the chosen time quantum =2 for the above mentioned example than it achieve better performance matrices of scheduling. If the chosen time quantum =1 than it found worst performance matrices of scheduling. In above study basically the time quantum is depends upon the burst time of processes. But in the simple round robin algorithm the time quantum is defined statically and it is not relevant to burst time of processes. The simple round robin is also not considering the priority of the processes which is the major issue in the scheduling system. References [1]. D.M. Dhamdhere operating Systems A Concept Based Approach,Second edition, Tata McGraw-Hill, 2006. [2]. Silberchatz, Galvin and Gagne, 2003. Operating systems concepts [3]. Rami J. Matarneh Self-Adjustment Time Quantum in Round Robin Algorithm Depending on Burst Time of the Now Running Processes American Journal of Applied Sciences 6 (10): 1831-1837, 2009. [4]. Ajit Singh, Priyanka Goyal, Sahil Batra An Optimized Round Robin Scheduling Algorithm for CPU Scheduling International Journal on Computer Science and Engineering Vol. 02, No. 07, 2010, 2383-2385 [5]. Rakesh Mohanty, Manas Das, M.Lakshmi Prasanna,Sudhashree Design and performance evaluation of a new proposed fittest job first dynamic round robin (FJFDRR)scheduling algorithm International Journal of Computer Information System Vol. 2 No. 2,2011 [6]. Abbas Noon, Ali Kalakech, Seifedine Kadry A New Round Robin Based Scheduling Algorithm for Operating Systems: Dynamic Quantum Using the Mean Average IJCSI International Journal of Computer Science Issues, Vol. 8, Issue 3, No. 1, May 2011 [7]. Rakesh Mohanty, H. S. Behera, Debashree Nayak, A New Proposed Dynamic Quantum with Re-Adjusted Round Robin Scheduling Algorithm and Its Performance Analysis, International Journal of Computer Applications (0975 8887), Volume 5 No.5, August 2010. [8]. Debashree Nayak,Sanjeev Kumar malla, Debashree Debadarshini Improved Round Robin Scheduling using Dynamic Time Quantum International Journal of computer Application (1975-8875) Volume 38-No. 5,January 2012. [9]. Rakesh Mohanty,H.S. Behara,Khusbu Tiwari, Manas Das, M.Lakshmi Prasanna Priority Based dynamic Round Robin(PBDRR) Algorithm with Intelligent Time Slice for Soft Real Time System International Journal of Advanced Computer Science and Application Vol. 2 No. 2, February,2011. [10]. Rakesh Mohanty, H. S. Behera, Khusbu Patwari, Monisha Dash, Design and Performance Evaluation of a New Proposed Shortest Remaining Burst Round Robin (SRBRR) Scheduling Algorithm, In Proceedings of International Symposium on Computer Engineering & Technology (ISCET), Vol 17, 2010. [11]. H. S. Behera and et. al. A New Dynamic Round Robin and SRTN Algorithm with Variable Original Time Slice and Intelligent Time Slice for Soft Real Time Systems. International Journal of Computer Applications 16(1):54 60, February 2011. IOSR Journal of Computer Engineering (IOSR-JCE) is UGC approved Journal with Sl. No. 5019, Journal no. 49102. Amit Kumar Gupta. Review of Round Robin (RR) CPU Scheduling Algorithm on Varying Time Quantum. International Journal of Engineering Science Invention (IJESI), vol. 6, no. 8, 2017, pp. 68 72. 72 Page