retagged by
2,587 views
1 1 vote
The head of a moving head disk with $100$ tracks numbered $0$ to $99$ is serving a request at track $x$. if the requests of track $25, 76, 43, 10, 67$ are served using $FIFO$ algorithm, then total head movements are $194$. The track $x$ initially served was at ________.

2 Answers

Best answer
7 7 votes
@ Bikram Sir I have a doubt in this.

As given servicing will be done in FIFO order .. And intially head is at X
 all differences will be mod values :

so |x-25| + |76-25|+|76-43|+|43-10|+|67-10|= 194

which is |x--25|=20

so possible ans are 5 and 45 both .

correct me if i am wrong sir.
selected by
1 1 vote
First assume the head is at 25. Hence total disk head movements will be = (76-25) + (76-43) + (43-10) + (67-10) =174. (As the requests are served in FIFO order).

Now in question the total movement is given as 194. So we need to move extra (194-174)=20 tracks which is only possible if at the begining the head was at (20+25)=45.
Answer:
Position:
Show:

Related questions

2 2 votes
1 answers 1 answer
3.3k
3.3k views
Bikram asked Jan 16, 2017
3,335 views
Consider a disk with a sector size of $512$ bytes, $50$ sectors per track, $2000$ tracks per surface and five double-sided platters (i.e. $10$ surfaces). The disk platter...
3 3 votes
3 answers 3 answers
2.0k
2.0k views
Bikram asked Jan 16, 2017
1,995 views
Suppose we have a block-addressable disk drive. With such block organized disk non data overhead of subblocks and, interblock gaps have to be accounted for.There are $40,...
10 10 votes
1 answers 1 answer
2.0k
2.0k views
Bikram asked Jan 16, 2017
2,043 views
A contractor receives a certain sum that he uses to pay wages. His capital, together with the weekly subsidy, would eactly enable him to pay $42$ men for $52$ weeks. If h...
5 5 votes
2 answers 2 answers
2.1k
2.1k views
Bikram asked Jan 16, 2017
2,106 views
Consider the set of numbers $N= 1,2,3,4,5,6,7,8$. Take every distinct two-element subset of $N$ and write down the number that is smaller. For eg, if you take the subset$...