Disk Scheduling (Scan - Algorithm)
Disk Scheduling (Scan - Algorithm)
Disk Scheduling (Scan - Algorithm)
(SCAN - ALGORITHM)
By - Sachi Meshram(4CE44)
Vaishnavi Pannase(4CE72)
Disk Scheduling
➢ Disk scheduling is done by operating
systems to schedule I/O requests arriving
for the disk. Disk scheduling is also known
as I/O scheduling.
➢ The access time has two major
components.
➢ The Seek Time is the time for the disk arm
to move the heads to the cylinder
containing the desired sector.
➢ The Rotational Latency is the additional
time for the disk to rotate the desired sector
to disk head.
There are various types of disk scheduling
algorithem . They are :-
1.FCFS
2.SSTF
3.SCAN
4.C-SCAN
5.LOOK
6.C-LOOK
SCAN ALGORITHM
Rotational Time : Time taken for one full rotation (360 degree).
Or
Total no. of track movement by R\W head using SCAN = (82-50) + (140-82) + (170-140) +
(190-170) +
(199-190) + (199-43) + (43-24) + (24-16)
= 332
DISADVANTAGES :
➔ More complex algorithm to understand.
➔ It cause long waiting time for the cylinders just visited by the head.
➔ It causes the head to move till the end of the disk in this way the requests arriving
ahead of the arm position would get immediate service but some other requests
that arrive behind the arm position will have to wait for the request to complete.