recategorized by
12,419 views
5 votes
5 votes

On a disk with 1000 cylinders (0 to 999) find the number of tracks, the disk arm must move to satisfy all the requests in the disk queue. Assume the last request service was at track 345 and the head is moving toward track 0. The queue in FIFO order contains requests for the following tracks:

123, 874, 692, 475, 105, 376

(Assume scan algorithm)

  1. 2013
  2. 1219
  3. 1967
  4. 1507
recategorized by

4 Answers

3 votes
3 votes

FIRST LOOK AT THIS :http://www.cs.iit.edu/~cs561/cs450/disksched/disksched.html

ANS IS OPTION B .1219

345-----123(222)

            -------------------105(18)--------0(105)

                                                     .-----------------376(376)-------------475(99)-----------692(217)------------874(182)

(  ) VALUES ARE THE DISTANCES 

SO TOTAL ARM MOVE =    222+18+105+376+99+217+182=1219

1 votes
1 votes
(345-123)+(123-105)+(105-0)+(999-0)+(999-874)+(874-692)+(692-475)+(475-376)

=222+18+105+999+125+182+217+99

=1967
0 votes
0 votes

Answer will be option A.

The question is hinting to use FCFS algorithm not C-SCAN or C-LOOK!

Answer:

Related questions

2 votes
2 votes
2 answers
2
go_editor asked Jul 7, 2016
1,508 views
____ is sometimes said to be object oriented, because the only way to manipulate kernel objects is by invoking methods on their handles.Windows NTWindows XPWindows VIST...
2 votes
2 votes
1 answer
3