Machine-translated by Google. Questions are authored in English.
Top

Discussion

If the disk head is located initially at 32, find the number of disk moves required with FCFS if the disk queue of I/O blocks requests are 98, 37, 14, 124, 65, 67.

  • A.239
  • B.310
  • C.321
  • D.325

Answer: C

With FCFS the head serves the requests in the order given, starting at 32. The moves are: 32 to 98 is 66, 98 to 37 is 61, 37 to 14 is 23, 14 to 124 is 110, 124 to 65 is 59 and 65 to 67 is 2.

\[ 66 + 61 + 23 + 110 + 59 + 2 = 321 \]

So the total number of moves is 321. The figure 239 is too small to cover the head's long swings between 14 and 124, and 310 and 325 come from miscounting one of the legs, for instance 14 to 124 or 124 to 65. Only the sum above is correct.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.