972 views
1 votes
1 votes
I am presenting here 2 doubts in the form of questions.Plz give proper explanation to these :

Q1 : Out of the available disk scheduling algorithms , which can be considered as the best and most practical?

Q2 : In CSCAN or CLOOK , we consider the head movement when there is transition from one extreme to another extreme.But do we consider this movement for the waiting time as well.By waiting time I mean waiting time for those requests which are on the opposite side w.r.t. initial direction of head movement and hence not yet serviced ?

1 Answer

4 votes
4 votes
Q1)out of all disk scheduling algorithms SSTF is best.we cannot say alltime this is best it depends on th problem also.

because it search for nearest disk that come.

Q2)yes ,exactly we consider that disk head movements in waiting time

suppose there are total 200(0to199) cylinders,suppose head movements are 20,50,85,144,185.

in cscan we go until last cylinder and then came back to initial cylinder (199-185,199-0 these waiting times also included in cscan)

but in clook we reach until lst cylinder (185-144,185-20)

Related questions

1 votes
1 votes
0 answers
1
jatin khachane 1 asked Dec 11, 2018
1,159 views
Suppose a disk has 100 cylinders, numbered from 0 to 99. At some time the disk arm is at cylinder 20, and there is a queue of disk access requests for cylinders 10, 22, 6...
0 votes
0 votes
2 answers
3
iarnav asked Apr 10, 2017
1,397 views
Hello guys, I'm seeing a lot of questions on disk scheduling asked by various folks, but in GATE CS syllabus of OS - there's no topic as disk scheduling. So, please point...