LOOK



Introduction

Look disk scheduling is another type of disk scheduling algorithm. Look scheduling is an enhanced version of SCAN disk scheduling. Look disk scheduling is the same as SCAN disk scheduling, but in this scheduling, instead of going till the last track, we go till the last request and then change the direction.


Advantages

1. In Look disk scheduling, there is no starvation.

2. Look disk scheduling offers low variance in waiting time and response time.

3. Look disk scheduling offers better performance as compared to the SCAN disk scheduling.

4. In look disk scheduling, there is no requirement of disk head to move till the end to the disk when we do not have any request to be serviced.


Disdvantages

1. In look disk scheduling, there is more overhead to find the end request.

2. Look disk scheduling is not used in case of more load.


Example

Consider a disk contains 200 tracks (0-100). The request queue includes track number 82, 170, 43, 140, 24, 16, 180, respectively. The current position of the read/write head is 50. The direction is towards the larger value. Calculate the total number of cylinders moved by head using look disk scheduling.


As mentioned in the following example, disk contains 200 tracks, so we take a track line between 0 to 199. The current position of the read/write head is 50, So we start at 50, then we move the read/write head. (the disk head is moved towards the larger value as mentioned in the given example). When all the requests are addressed, then we calculate the total number of cylinders moved by the head.


look img

Total number of cylinders moved by the head = (180-50) + (180-16) = 294