Go Back   TestMagic Forums > Test preparation > GRE Subject Tests > GRE Computer Science
Register FAQForum Rules Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-14-2003, 09:47 PM   #1 (permalink)
wood
TestMagic Guru
 
Join Date: Jul 2003
Location: Brazil
Posts: 1,360
wood has disabled reputation
This one is simple but interesting... so I'm posting.

7.20 A disk has 8 sectors per track and spins at 600 rpm. It takes the controller 10 ms from the end of one I/O operation before it can issue a subsequent one. How long does it take to read all 8 sectors using the following interleaving systems?

(a) No interleaving
(b) Single interleaving
(c) Double interleaving
wood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Old 09-22-2003, 06:34 AM   #2 (permalink)
ambreenjava
Eager!
 
Join Date: Jun 2003
Location: Pakistan
Posts: 74
ambreenjava has disabled reputation
Okay,
Interleaving is when sectors are arranged in alternate order.

(a) when there is no interleaving

then

sectors would be like this

s1|s2|s3|s4|s5|s6|s7|s8

Since the disk revolves at 600 rpm then
it means it revolves at 10 revolutions per second and 1 revolutions per milli sec.

That means 100/8 = 12.5 millisec is spent on each of the 8 sectors

and the time it takes to load another request is 10ms

thats less than 12.5

In first request it read sector s1
then while the disk is spinning the controller went to fetch another request. And 10msec are waster out of 12.5 that means more than half of the s2 had already passed therefore the heads to rotate again to fetch s2. So will be the case of all 8 sectors meaning it will take

8 revolutions while each revolution takes 100 millisec and that would be 800 msec

(b)

the sectors will be arranged in the order

s1|s5|s2|s6|s3|s7|s4|s8

therefore in 1 rev 4 sectors will be read

and in 2 rev 8 sectors will be read

100 msec in 1 sec therefore 200 msec in 2 sec

(c)

sectors would be

s1|s4|s7|s2|s5|s8|s3|s6

here only 3 sectors will be read in 1 rev.

that means 300 msec for a total of 3 rev.

but 360/8 is 45 degrees
thats is only 3/4 of the disk rev is required in the 3rd rev
so we need to multiply 100*3/4 to get the actual time needed to read the last sector s8. since it comprises only 3/4

That means 275 msec is required
ambreenjava is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Old 09-22-2003, 02:18 PM   #3 (permalink)
wood
TestMagic Guru
 
Join Date: Jul 2003
Location: Brazil
Posts: 1,360
wood has disabled reputation
Good job ambreenjava! You got it all right!
wood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Old 10-30-2003, 02:15 PM   #4 (permalink)
The_Wonderful_Vipul
Here I am !!
 
The_Wonderful_Vipul's Avatar
 
Join Date: Feb 2003
Location: New York
Posts: 165
The_Wonderful_Vipul has no rep yet.
Quote:
Originally posted by ambreenjava

Okay,
Interleaving is when sectors are arranged in alternate order.

(a) when there is no interleaving

then

sectors would be like this

s1|s2|s3|s4|s5|s6|s7|s8

Since the disk revolves at 600 rpm then
it means it revolves at 10 revolutions per second and 1 revolutions per milli sec.

That means 100/8 = 12.5 millisec is spent on each of the 8 sectors

where did this 100 ms come from ?? so that you could say 100/8 ms ??

Quote:
and the time it takes to load another request is 10ms

thats less than 12.5

In first request it read sector s1
then while the disk is spinning the controller went to fetch another request. And 10msec are waster out of 12.5 that means more than half of the s2 had already passed therefore the heads to rotate again to fetch s2. So will be the case of all 8 sectors meaning it will take

8 revolutions while each revolution takes 100 millisec and that would be 800 msec

(b)

the sectors will be arranged in the order

s1|s5|s2|s6|s3|s7|s4|s8

therefore in 1 rev 4 sectors will be read

and in 2 rev 8 sectors will be read

100 msec in 1 sec therefore 200 msec in 2 sec

(c)

sectors would be

s1|s4|s7|s2|s5|s8|s3|s6

here only 3 sectors will be read in 1 rev.

that means 300 msec for a total of 3 rev.

but 360/8 is 45 degrees
thats is only 3/4 of the disk rev is required in the 3rd rev
so we need to multiply 100*3/4 to get the actual time needed to read the last sector s8. since it comprises only 3/4

That means 275 msec is required
Vipul.
The_Wonderful_Vipul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Old 10-30-2003, 03:44 PM   #5 (permalink)
AlbaLed
TestMagic Guru-in-Training
 
Join Date: Oct 2003
Location: Albania
Posts: 534
AlbaLed has disabled reputation
> where did this 100 ms come from ?? so that you could say 100/8 ms ??

10 revs per second => 100 ms per revolution therefore time to read one sector or 1/8th of the track = 100/8
AlbaLed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

What you can do
You cannot post new threads
You cannot post replies
You cannot post attachments
You cannot edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:07 PM.

Contact TestMagic   TestMagic Forums      Archive   

Link to TestMagic   TestMagic Locations   Legal   Privacy

Partner Sites: GMAT Sentence Correction   SAT 2400

Content Relevant URLs by vBSEO 3.0.0
Copyright © 1998-2008 TestMagic
Ad Management by RedTyger

Scroll Up