题目
简答题
Consider a disk with tracks numbered 0 to 199. The current head position is 50 (Head Movement is Right). The request queue is: 98, 183, 37, 122, 14, 124, 65, 67. How Many Head movements are there in servicing requests using SSTF?Tip: Enter numerical data ONLY. E.g: "5" and NOT "5 Head Movements".
查看解析
标准答案
Please login to view
思路分析
We start by identifying the initial head position and the queue of requests to be serviced using SSTF (Shortest Seek Time First).
Initial head position: 50. Pending requests: 98, 183, 37, 122, 14, 124, 65, 67.
Step 1: From 50, compute distances to each request: |50-98|=48, |50-183|=133, |50-37|=13, |50-122|=72, |50-14|=36, ......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Which disk scheduling algorithm might lead to a "sweeping" effect where requests are serviced in a patterned manner across the disk?
Which disk scheduling algorithm is the simplest and processes requests in the order they arrive?
Consider a disk with tracks numbered 0 to 199. The current head position is 50 (Head Movement is Left). The request queue is: 98, 183, 37, 122, 14, 124, 65, 67. How Many Head movements are there in servicing requests using C-LOOK?Tip: Enter numerical data ONLY. E.g: "5" and NOT "5 Head Movements".
Which disk scheduling algorithm might lead to a "sweeping" effect where requests are serviced in a patterned manner across the disk?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!