retagged by
5,035 views

1 Answer

Best answer
19 19 votes

 x=  Data preparation time or CPU time   and y=  Data transfer time 

When to use which formula: % of cpu time consume   , that depends on the exact wordings in question .

 Case 1: In Burst Mode  -

In this case we use ( x/x+y  )                  

 example : burst mode in both cases 


Case 2:  In Cycle Stealing Mode -

In this case we use  ( x/y ) 
example -  explicitly mention it is in cycle stealing mode

In cycle stealing mode we always follow pipelining concept that means when one byte is getting transferred then at the same time Device is parallel way preparing the next byte.So we use concept of x/y .

And default is burst mode, when no mode mention explicitly , we use Burst mode like  1996 and 2004 Gate questions.

We use cycle stealing formula (x/y) only when the term "cycle stealing" is mention explicitly . In cycle stealing 1 byte data is transferred at a time in theoretically.

Now, coming to x =  preparation time, it is given in question,say " A hard disk with a transfer rate of 10 Mbytes/second is constantly transferring data to memory using DMA. The processor runs at 600 MHz, and takes 300 and 900 clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is 20 Kbytes,"

Clock cycle time = 600 MHz =1/ (600 x 106 ) seconds

total cycle time for processor is (300+900)=1200 and each cycle time is  1/ (600 x 106  ) seconds

So data preparation time = x , which is 1200 * 1/ (600 x 106 ) * 106  microsecs = 2 microsec.  This 2 microsec is x .

Now coming to y = data transfer time

here data transfer rate from disk is 10 MB/sec , total data to transfer is 20 KB . 

so, Disk Transfer data at a rate of 10 Mbytes/sec

 1 byte transfer in 1/107 sec

 20 Kbytes transfer in 2 milisec = 2000 micro sec .. this 2000 microsec is data transfer time of y .

now here nothing is mention so we use formula for burst that is x/x+y 

so put x and y value and get the answer.

here if cycle stealing mode explicitly mention like " assume disk is using cycle stealing mode" then we should use x/y formula..

hope you get it now .

selected by
Position:
Show:

Related questions

0 0 votes
0 0 answers
376
376 views
Markzuck asked Oct 26, 2018
376 views
If each address space represents one byte of storage space, how many address lines are needed to access RAM chips arranged in a $4 \times 6$ array, where each chip is $8 ...
5 5 votes
2 2 answers
497
497 views
GO Classes asked Sep 24, 2025
497 views
A DMA controller transfers data from an I/O device to main memory using cycle stealing. The CPU is running at a frequency of $50$ MHz . The I/O device transfers data at a...
4 4 votes
1 1 answer
315
315 views
GO Classes asked Sep 17, 2025
315 views
A system with a $1$ GHz CPU uses DMA to transfer data from a device at a rate of $50 \mathrm{MB} / \mathrm{s}$. The data is transferred in $32$ KB blocks. The DMA setup r...
0 0 votes
1 1 answer
590
590 views
N_i_t_i_n asked Sep 13, 2025
590 views
During DMA transfers, the CPU is momentarily halted while the DMA controller takes control of the system busTrue or False?