Disk Scheduling
Disk Scheduling
Scheduling
Disk scheduling algorithms help to optimize the performance of hard
drives, which are slow compared to the CPU. In this presentation, we
will learn about the different types of disk scheduling
algorithms and compare their performance.
First-Come, First-Serve
Scheduling (FCFS)
How it Performanc
Works e
FCFS scheduling works by scheduling FCFS scheduling is not well-suited for
input/output requests in the same order they high- throughput systems because of
are received. It's simple to implement but can the long wait times. However, it can be
result in very long wait times if some an excellent choice for low-utilization
requests take longer to complete than systems or those that are not frequently
others. accessed.
Shortest Seek Time First
Scheduling (SSTF)
How it Works Performance
Variations
SSTF scheduling works SSTF scheduling Several variations of
by scheduling the provides excellent SSTF scheduling include
input/output request performance for most the elevator algorithm,
that is closest to the systems, although it which improves
read-write head of the can cause increased performance by
disk. It's designed to wait times for some limiting the head's
reduce the amount of requests that are movement in a single
time the head needs to significantly farther direction and the
seek the next request, from the head of the circular scan algorithm,
resulting in improved disk than others. which treats the disk
performance for high- However, the tradeoff like a circular list and
throughput systems. is generally well worth avoids extreme head
it for most systems. movements.
SCAN
Scheduling 1 How it
Works
SCAN scheduling works by
How it Performanc
Works e
LOOK scheduling is a variant of SCAN LOOK scheduling is an excellent option
scheduling where the direction of the for high- throughput systems as it
scan is reversed when there are no more avoids the head movements associated
requests to be serviced in one direction. with SCAN scheduling.
This helps to avoid costly head movements However, it can still suffer from some of
in the event that a request comes in from the issues associated with SSTF scheduling,
another area of the disk. including longer wait times for extreme
requests.
C-SCAN
Scheduling 1 How it
Works
C-SCAN scheduling is a variant of
Each disk scheduling algorithm has its own strengths and weaknesses, making it important to
carefully consider the specific needs of your system when choosing an appropriate algorithm. SSTF
scheduling provides excellent performance for most systems, although it can cause increased wait
times for some requests that are significantly farther from the head of the disk than others.
SCAN scheduling can be an excellent choice for systems where individual requests can become
very long and result in extended wait times.