Sie sind auf Seite 1von 3

An Efficient Dynamic Round Robin CPU Scheduling Algorithm

Arjun Kumar
Amit Kumar
School Of Engineering and Technology Jaipur
School Of Engineering and Technology Jaipur
National University Jaipur, India
National University Jaipur, India
Arjunkumar4396@gmail.com
amit2197kumar@gmail.com

Abstract: Round Robin is the one of the most main goal of the dynamic form is to determine the
popular CPU scheduling algorithm. A fixed is right TQ value.
allocated to every process that arrives in the The embedded techniques in the round-robin
queue. This fix time is called time slice or time algorithm, there has have been many researches and
quantum. The time quantum or time slice is static effort to further improve it in the last four years.
in Round Robin algorithm that decreases the
performance of CPU. A. SHORTEST REMAINING BURST
In this paper selection of time quantum is ROUND ROBIN (SRBRR)
discussed and a new CPU scheduling algorithm
for timeshared systems is proposed and is called SRBRR is an improved algorithm of simple R-R
as EDRR (Efficient Dynamic Round Robin) giving the processor to processes with the shortest
algorithm. The objective of this paper is to make a remaining burst in the form of round-robin using
change in round robin CPU scheduling algorithm dynamic TQ. It performs better than RR in relation to
so that the performance of CPU can be improved. the Waiting and Turnaround time and the number of
Context Switch-s.

.INTRODUCTION TQ=Median (remaining burst time of all processes)


Round-Robin is an algorithm who has some
advantages compared to the others. It is simple, it
B. IMPROVED SHORTEST REMAINING
doesnt have interrupts and data sharing, it has no
BURST ROUND ROBIN (ISRBRR)
traffic and is very suited to systems who have only
sequential actions. A further improvement of the above technique is an
But its major challenge is in determining of the TQ. algorithm named Improved-SRBRR. The difference
This is the parameter which affects in the mean of these two techniques is precisely the definition of
Waiting and Turnaround time in the execution order TQ
One of the main subjects of study in this field is the
comparison of the static time quantum, meaning that TQ=Ceil (sort (median*highest burst time))
it is pre-determined and never changes in any of the By looking at the formula we see that TQ is
cycles, and the dynamic TQ which is redefined in calculated from the median and the highest burst
every cycle, renovating its inputs, which in turn are time.
dependent on the various techniques used to
determine the TQ, but mostly they have as main input
the burst time and the number of processes in the C. AVERAGE MID MAX ROUND ROBIN
ready queue. If TQ is static it causes a small number (AMMRR)
of context switches for a high TQ and a high number
for context switches if TQ is small. Higher number of In this case the time that is given to the process is
context switches means higher mean waiting and calculated in two steps taking into account the
turnaround time and all this leads to an overhead that minimum and maximum value of burst time
lowers the performance of the system [7]. So the Mid=(Min + Max)/2 TQ=(Mid+Max)/2
D. AVERAGE MAX ROUND ROBIN G. MIN-MAX DISPERSION MEASURE
(AMRR) ROUND ROBIN (MMRR)

Another attempt to improve the number of Context Another variant of Round Robin is MMRR, which
switch especially bringing their reduction, is also the defines TQ time after time using minimum and
AMRR technique. maximum values of left burst time.

AVG=SUM(Burst Time of all processes)/Number of M= MAXBT-MINBT


processes TQ=(AVG+MAX(BT))/2 Where :
MAXBT=Maximum Burst Time
MINBT =Minimum Burst Time
E. SELF-ADJUSTMENT ROUND-ROBIN
(SARR) H. EVEN ODD ROUND ROBIN (EORR)

A very important role in the further development of The definition of dynamic time quantum has
a better dynamic selection of TQ undoubtedly is developed another technique of determining the TQ.
played by the SARR publication. It laid the Two time quantum are determined on the basis of
foundation of a series of new research and determining the position of the odd or even numbers
development that would follow. Important role and [10]: TQ1=AVG(Burst Time of Even Processes)
influence had the preparation in the field of TQ2=AVG(Burst Time of Odd Processes) Once both
mathematics of the researchers. TQ are determined then it takes the value of one of
The median is again based on this concept but is a the top two values which results lower. This form
modified algorithm in the form of his choice. This is makes the burst time values close. This technique is
done by the odd and even numbers. The formula is as not effective given that other methods like SRBRR
follows [3]: are optimized.

Y(N+1)/2 if N odd I. MULTI-DYNAMIC TIME QUANTUM


TQ= (Y(n/2)) + Y(1+N/2) if N even ROUND ROBIN (MDTQRR)
where Y is the number of positioning among
numbers listed in ascending order. This is a method which calculates the time quantum
twice within a round robin cycle. This algorithm also
F. DYNAMIC QUANTUM WITH considers the process time of arrival in the ready
READJUSTED ROUND ROBIN (DQRRR) queue and is implemented in the algorithm. This
algorithm has higher efficiency than RR and SRBRR
A further development of the above technique is the but when is sorted in ascending order.
modified algorithm DQRRR. His largest impact was In this algorithm are introduced two new concepts
in the lowering of the context switches [4]. But again labeled MTQ (Time Quantum Media) and UTQ
this research will be subject to further development (Upper Quartile Time Quantum) which are calculated
with two other methods: MMRR and MDTQRR from the respective formulas. These two parameters
are calculated once in each cycle. Formulas are given
TQ=[(N+1)/2] if N odd as follows:
TQ= [(Y(n/2)) + Y(1+N/2)] if N even
where Y is the number of positioning among TQ=(N+1)/2 if N odd
numbers listed in ascending order. TQ= (Y(n/2)) + Y(1+N/2) if N even
where Y is the number of the location in the group of
numbers sorted in ascending order, and N is the
number of processes.
J. MY APPROACH Conference on Frontiers of Information Technology
2015 IEEE
By carefully observing and analyzing all the
techniques used and their results we perceive a [4]. Silberschatz, Galvin and Gagne, Operating
further development of one of the studied algorithms. system concepts, 8th edition, Wiley, 2009
The main advantage to minimize average waiting and
turnaround time [5] Rakesh Kumar Yadav, Abhishek K Mishra, Navin
Formula ; Prakash and Himanshu Sharma, An Improved
C=(PF+PL)/N Round Robin Schedduling Algorithm for CPU
TQ=C , Scheduling, International Journal on Computer
if C>Z Science and Engineering, Vol. 02, No. 04, 2010, pp.
Z=(Sum of burst time)/N 1064-1066.
TQ=Z ,if C<Z
Where
N is the number of process and
PF= Burst Time of First Process
PL=Burst time of Last Process

K. CONCLUSIONS

It should be said that many of these techniques have


high sensitivity to the sorting order of burst times in
the ready queue. Even many of the techniques are
built on the basis of first sorting and then processing
the algorithm. If a new process comes then its sorted
by the time and variables are redefined. In the three
sorting forms what looks most efficient to these
techniques is definitely the ascending sorted burst
times list.

L. REFERENCE

[1]. A. R. Dash. S. K. Sahu and S. K. Samantra, An


Optimized Round Robin CPU Scheduling Algorithm
with Dynamic Time Quantum International Journal
of Computer Science, Engineering and Information
Technology (lJCSEIT), Vol. 5, No. I, February 2015.

[2]. Ahmed Alsheikhy, Reda Ammar and Raafat


Elfouly An Improved Dynamic Round Robin
Scheduling Algorithm Based on a Variant Quantum
Time, 978-1-5090-0275-7/15/$31.00 2015 IEEE

[3]. Arfa Yasin, Ahmed Faraz, Saad Rehman,


Prioritized Fair Round Robin Algorithm with
Variable Time Quantum, 13th International

Das könnte Ihnen auch gefallen