938 views

2 Answers

Best answer
1 votes
1 votes

For Cycle Steal Mode :

Data is transferred word by word from DMA to memory .

Here total data size is 4 Bytes . And 1 word = 4 Bytes ( given )

so for 4 B data we need to transfer in 1 word means 1 time bus access is require by DMA. 

each cycle time is 50 micro second, to transfer 16 Bytes it takes 1 * 50 = 50 micro seconds to transfer 4 Bytes data .

so Data preparation time is 50 microseconds .

Now, hard disk transfer rate is 10 KBPS = 10 * 103 Bytes/sec

so (104 * 8 ) bits is sending in 1 sec 

1  bit is sending 1/(104 * 8 ) sec

4 * 8 bits data is sending in 4 * 8 /(104 * 8 ) seconds = ( 4 * 8 /104 * 8 ) * 106 micro secs = 400 micro secs 

so, to transfer 4 Bytes data hard disk needs 400 micro secs == Transfer time.

Then, % of CPU time consume for DMA operation is : ( 50/400 ) * 100 = 0.125 * 100 = 12.5%

So, Ans is 12.5% CPU time is consumed in Cycle Steal Mode .

selected by
0 votes
0 votes

In cycle stealing mode transfer takes place word by word..

Here word size given = 4 B

Here time CPU busy which is also known as preparation time  =  Data size / I/O Device transfer rate

                                                   In   1 s , data transferred  =    104 B

                                                   So   time take for 4 B  =  10-4 s * 4

                                                                                     =  400 microsec

 And time CPU is blocked ( also known as transfer time )    =   50 microsec

So % time CPU is blocked                                                =   (50 / 400) * 100

                                                                                       =   12.50 % [In cycle stealing mode , pipelining is there]

So by this amount only CPU activity is reduced..

Hence 12.50 % should be the correct answer..

                                 

edited by
Answer:

Related questions

2 votes
2 votes
0 answers
1
gailort asked May 11, 2022
821 views
A system is based on an 8-bit microprocessor and has two I/O devices. The I/O controllers for this system use separate control and status registers. Both devices handle d...
0 votes
0 votes
2 answers
3
1 votes
1 votes
0 answers
4
learner_geek asked Jul 29, 2017
180 views
Please give detailed explanation.