in GATE retagged by
916 views
3 votes
3 votes
A $DMA$ module is transferring bytes to memory using cycle stealing mode from a device transmitting at $16 KB/s$. The processor is fetching instructions at the rate of $1 MB/s$. The percentage by which the processor will be slowed down due to the $DMA$ activity is ______.
in GATE retagged by
by
916 views

1 comment

1
1

2 Answers

0 votes
0 votes
Best answer
Device transfers 1 byte in 61 microsec. 16kB / sec
Memory operation transfers 1 Byte in 1microsec.  1MB / sec.
%CPU idle time = 1/(1+61) = 1.6%
selected by

4 Comments

It is given cycle stealing ,why pipelining is not considered ?

%cpu slowed down = 1/ 62.5 *100 = 1.6
0
0

@Bikram sir,

@sushmita

@VS

ma'am

Is % CPU slow down and % CPU idle/blocked/consume will be same ???

0
0
what should be the answer if it is operated in burst mode instead of cycle stealing mode?
0
0
3 votes
3 votes

Suppose each intruction size is 1  Byte, So, if DMA doesn't interrupt CPU then it will fetch $10^6$ instructions in one second.

To transfer 1 Byte $= \frac{1}{16K} = 62.5$ Microseconds

So DMA will interrupt CPU $\frac{1Sec}{62.5 Micro Sec}=16000 times$

When CPU can fetch $10^6$ instructions in 1 second, it will fetch now $10^6-16000 = 984000$ instructions only.

Hence CPU is slowed down by $=\frac{16000}{10^6} = 0.016 = 1.6\text{%}$

Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users