CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A disk has 200 tracks (number 0 through 199). At a given time, it was servicing the request of reading data from track 120, and at the previous request, service was for track 90. The pending requests (in order of their arrival) are for track numbers.

30 70 115 130 110 80 20 25.
How many times will the head change its direction for the disk scheduling policies SSTF (Shortest Seek Time First) and FCFS (First Come First Serve)?

A
4 and 4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
3 and 4
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
2 and 3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
3 and 3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 3 and 4
Using FCFS :

So, 4 head direction change.

Using SRTF :

So, 3 head direction changed.

flag
Suggest Corrections
thumbs-up
2
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Types of Files
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon