Professional Documents
Culture Documents
STMJOURNALCPUSCHEDULING
STMJOURNALCPUSCHEDULING
STMJOURNALCPUSCHEDULING
net/publication/333079926
CITATIONS READS
5 7,415
4 authors, including:
Some of the authors of this publication are also working on these related projects:
DIGITAL MARKETING CHALLENGE AND OPPORTUNITY WITH REFERENCE TO TIKTOK-A NEW RISING SOCIAL MEDIA PLATFORM View project
All content following this page was uploaded by Nilam Choudhary on 14 May 2019.
Abstract
Current study represents the implementation of a various scheduling algorithms and
developing CPU scheduling algorithms. Examining their impact in practice can be difficult as
well as time consuming because of the need to modify their test operating system kernel code
and measure the resulting performance on a consistent workload of real applications. As
processor is the important resource, CPU scheduling becomes very important in accomplishing
the operating system (OS) design goals. The intention should be allowed as many as possible
running processes at all times in order to make best use of CPU. This study presents a state
diagram that depicts the comparative study of various scheduling algorithms using simulator
for a single CPU and shows which algorithm is best for the particular situation. Using this
representation, it becomes much easier to understand what is going on inside the system and
why a different set of processes is a candidate for the allocation of the CPU at different times.
The objective of the study is to analyze the highly efficient CPU scheduler on design of the
high-quality scheduling algorithms which suits the scheduling goals.
JoASP (2018) 1-5 © STM Journals 2018. All Rights Reserved Page 1
Comparative Study of CPU Scheduling Algorithms Choudhary et al.
Another paper which closely corresponds with principle of FIFO (First in First out). FCFS is
current paper is by Ankur et al. [10]. non-preemptive in nature and will have
Comparison of existing scheduling algorithms negligible number of context switches among
is based on seven parameters which are the process; that means once the process is
namely: allocation, application, complexity, scheduled on CPU it will not switch to
waiting time, usability, preemption and types different process until its full completion. In
of system. Their observation concluded that this perspective, a waiting queue is formed of
not one algorithm is enough to satisfy all the the processes which are started in after some
seven basic parameters and suggested need for time. They are pushed into the queue from the
improvement. rear node as they are submitted [11].
SCHEDULING ALGORITHMS P2 3 1 3
First Come First Serve Scheduling (FCFS) P3 9 2 1
First come first serve, this is the most basic P4 4 3 4
scheduling algorithm and based on the Quantum Time =4 ms.
JoASP (2018) 1-5 © STM Journals 2018. All Rights Reserved Page 2
Journal of Advances in Shell Programming
Volume 5, Issue 3
ISSN: 2395-6690 (Online)
Table 1: FCFS (First Come First Serve) Gantt comparative analysis of average waiting time
Chart. and average turnaround time respectively.
P1 P2 P3 P4
0 10 13 22 26 Table 5: Waiting Time for Each Process and
Average Waiting Time for Each Scheduling.
Table 2: SJF (Shortest Job First) Gantt Chart. Properties Process FCFS SJF RR Priority
P1 P2 P4 P1 P3 P1 0 7 15 9
0 1 4 8 17 26 P2 9 0 3 18
Waiting Time
P3 11 15 15 0
Table 3: Round Robin Scheduling Gantt P4 19 0 7 18
Chart. Average
P1 P2 P3 P4 P1 P3 P1 P3 9.75 5.5 10 11.25
Waiting Time
0 4 7 11 15 19 23 25 26
Table 6: Turnaround Time for Each Process
Table 4: Priority Scheduling Gantt Chart. and Average Turnaround Time for Each
P1 P3 P1 P2 P4 Scheduling.
Properties Process FCFS SJF RR Priority
0 2 11 19 22 26
P1 10 17 25 19
P2 12 3 6 21
Figures 1 and 2 depict the comparative waiting Turnaround Time
P3 20 24 24 9
time and turnaround time respectively. In P4 23 4 11 22
continuation, Figures 3 and 4 show the Average TAT 16.25 12 16.5 17.75
JoASP (2018) 1-5 © STM Journals 2018. All Rights Reserved Page 3
Comparative Study of CPU Scheduling Algorithms Choudhary et al.
JoASP (2018) 1-5 © STM Journals 2018. All Rights Reserved Page 4
Journal of Advances in Shell Programming
Volume 5, Issue 3
ISSN: 2395-6690 (Online)
JoASP (2018) 1-5 © STM Journals 2018. All Rights Reserved Page 5