• closed by
2,252 views
1 1 vote
closed as a duplicate of: GATE CSE 2005 | Question: 70
Consider a disk drive with following specifications: 16 surfaces, 512 tracks/surface, 512 sectors/sector, 1KB/sector, rot. speed 3000rpm. The disk is operated in cycle stealing mode whereby whenever one byte word is ready it is sent to memory; similarly for writing the disk surface reads a 4 byte word from the memory in each dma cycle. Memory cycle time is 40ns. The max. percentage of time that cpu gets blocked during dma operation:

10%  25%  40% 50%

1 Answer

0 0 votes

Let x be preparation time and y be transfer time 

Then % of time CPU Blocked = $\displaystyle \frac{y}{x+y}*100$

Total byte to be transfer = 
1 byte word is ready it is sent to memory + 4 byte word for writing in each dma cycle
= 5 Byte 
X =  In one rotation $\frac{60}{3000}$sec  it reads 512 KB
         so how much time  for 5 B ?

= 195ns(approx)

Y = 5*memory cycle time 
      5*40 = 200ns 

Therefore    
 $\displaystyle \frac{y}{x+y}*100 = \frac{200}{200+195}*100 = 50 \%$

• edited by
Position:
Show:

Related questions

0 0 votes
1 1 answer
1.6k
1.6k views
Na462 asked Jul 23, 2018
1,554 views
Consider 8-bit DMA device operating in cycle stealing mode (Single Transfer Mode). Each DMA cycle takes 6 clock and each clock is of 2 MHz. An intermediate CPU machine cy...
2 2 votes
0 0 answers
851
851 views
Raj Singh 1 asked Jan 7, 2019
851 views
Wikipedia says this about DMA burst mode (https://en.wikipedia.org/wiki/Direct_memory_access#Burst_mode)In burst mode, an entire block of data is transferred in one conti...
1 1 vote
1 1 answer
2.9k
2.9k views
PEKKA asked Nov 3, 2016
2,872 views
Initialize the address register Initialize the count to 500 LOOP: Load a byte from device Store in memory at address given by address register Increment the address regis...
2 2 votes
1 1 answer
2.2k
2.2k views
iarnav asked Oct 5, 2018
2,247 views
Consider ​y μs is cycle time / transfer time (for memory) x μs is data transfer time / preparation time (for disk) then % of time CPU idle in CYCLE STEALING MODE is = y/...