The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+2 votes
1.7k views

A DMA controller transfers 32-bit words to memory using cycle Stealing. The words are assembled from a device that transmits characters at a rate of 4800 characters per second. The CPU is fetching and executing instructions at an average rate of one million instructions per second. By how much will the CPU be slowed down because of the DMA transfer?

  1. 0.06%
  2. 0.12%
  3. 1.2%
  4. 2.5%
by Veteran (103k points)
retagged by | 1.7k views

1 Answer

+2 votes
1 character=1 byte

32 bit word= 4byte

4800 bytes in 1 sec

so for 1 byte  it takes 1/4800 sec

so for 4 byte word it takes  1/1200 sec

so 1200 words are transfered in 1 sec through cycle stealing

and given 1 million instructions are fetching and executing in 1 sec out of which 1200 words are executing through cycle stealing so

%of slow down or cycle wasted in dma transfer = (1200/1000000)*100

=0.12%

option b)
by Active (4.1k points)

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
50,339 questions
55,765 answers
192,354 comments
90,814 users