FCFS, SJF, PR Scheduling Algorithm Comparison

Verified

Added on  2019/09/20

|4
|440
|406
Report
AI Summary
This report provides a detailed comparison of three CPU scheduling algorithms: First Come First Serve (FCFS), Shortest Job First (SJF), and Priority (PR). It explains how each algorithm works, including their abbreviations, execution methods, and whether they are preemptive or non-preemptive. The report also discusses the performance, implementation, advantages, and disadvantages of each algorithm, highlighting their suitability for different systems. FCFS is noted for its simplicity but poor performance, while SJF minimizes waiting time but can lead to starvation. PR offers good response for high-priority processes but may cause starvation for low-priority ones. The report concludes with references to relevant online resources.
Document Page
The comparison between FCFS, SJF and PR:
Algorithm FCFS SJF PR
Abbreviation: FIRST COME
FIRST SERVE
SHORTEST JOB
FIRST
PRIORITY
Explanation: This algorithm is
based on first come
first serve.
This algorithm
executes shortest
process first.
According to this
algorithm each process
is assigned a priority.
Here process is executed
one by one but which
process is preferred first
this is totally depends on
process priority.
This algorithm is
non-preemptive.
This is a non-
preemptive
scheduling
This algorithm is also a
no-preemptive.
This algorithm
executes every
process which are
placed in FIFO
queue.
The process are
executed but
according to their
execution time.
The process are
executed but according
to their priorities.
This performance is
poor, the average
wait time is very
high.
This is best algorithm
to decrease the
waiting time for each
process.
This algorithm is
easy to implement
and understand
because no
additional
This is easy method
where we already
knew the total
required execution
time for each arrived
Here are some criteria to
decide the priorities for
processes:
1. This depends on
memory
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
calculation is needed
to choose any
process.
process. requirements.
2. Time
requirements.
3. Any other
specific resource
requirement.
Advantages: This algorithm
matches with
batch system
This is not support
batch system.
This also not support the
batch system.
This increases the
average waiting
time
This minimizes
average waiting time.
This algorithm good
response for the highest
priority processes.
It is simple to
understand and to
implement
Throughput is high Throughput is
maximized.
Disadvantages: This waiting time
could be long if
there is any short
process is waiting
in a queue behind
the long process
This can lead to
process starvation
Starvation may be
possible for the lowest
priority for processes in
the highest traffic.
Document Page
This is not
suitable for time
sharing system
This is also not
suitable for time
sharing system
This algorithm is
suitable for time sharing
system.
Document Page
References:
People.csail.mit.edu. (2016). Operating Systems Lecture Notes Lecture 6 CPU
Scheduling. [online] Available at: https://people.csail.mit.edu/rinard/osnotes/h6.html
[Accessed 22 Dec. 2016].
Williamstallings.com. (2016). Operating Systems Lecture Notes Lecture 6 CPU
Scheduling. [online] Available at: http://williamstallings.com/Extras/OS-Notes/h6.html
[Accessed 22 Dec. 2016].
Studytonight.com. (2016). CPU Scheduling in OS | Operating System Tutorial |
Studytonight. [online] Available at: http://www.studytonight.com/operating-system/cpu-
scheduling [Accessed 22 Dec. 2016].
chevron_up_icon
1 out of 4
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]