The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
25 views
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 ______
asked in CO & Architecture by Junior (563 points) | 25 views

1 Answer

0 votes

A DMA module is transferring bytes to memory using cycle stealing mode

Since number of bytes is not clear. Lets assume you mean to say we are transferring 1 byte of data to memory using cycle stealing mode.
Device transfer speed = 16 KB/s
Processor speed = 1 MB/s

Preparation time ( x ) 
16 KB = 1 sec
1 B  = $\frac{1}{16 \times 10^{3}}$ sec = 62.5 $\mu$ sec

Transfer time ( y )
1MB = 1 sec
1B = $\frac{1}{10^{6}}$  =  1 $\mu$ sec

In cycle stealing mode, % of time cpu is busy  = $\frac{1}{ 62.5} \times 100$ = 1.6 %

Read more about it here : https://gateoverflow.in/140573/%25-time-of-cpu-blocked-in-dma

answered by Boss (6.6k points)


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

29,157 questions
36,984 answers
92,154 comments
34,823 users