Shortest Job First (SJF) scheduling
Shortest Job
First (SJF) scheduling
In
this algorithm there are three algorithms those are:
·
SJF is a non-preemptive algorithm
·
Shortest Remaining Time First (SRTF)
·
Longest Remaining Time First (LRTF)
SJF is a
non-preemptive algorithm
Shortest
job first (SJF), is a scheduling policy that selects the waiting process with
the smallest execution time to execute next. SJN is a non-preemptive algorithm.
1. Shortest
Job first has the advantage of having minimum average waiting time among all
scheduling algorithms.
2. It
is a Greedy Algorithm.
3. It
may cause starvation if shorter processes keep coming. This problem can be
solved using the concept of aging.
4. It
is practically infeasible as Operating System may not know burst time and
therefore May not sort them. While it is not possible to predict execution
time, several methods can be used to estimate the execution time for a job,
such as a weighted average of previous execution times. SJF can be used in
specialized environments where accurate estimates of running time are
available.
Comments
Post a Comment