• retagged by
906 views
0 0 votes
A keyboard must be interrogated at least 10 times per second to make sure that no keystroke by the user is missed. Assume that each such interrogation and data transfer takes 800 clock cycles in a processor with a 1 GHz clock. what % of CPU time is spent polling the keyboard? (answer up to 4 decimal places).

1 Answer

Best answer
1 1 vote
CPU Clock Cycle Time= 10^-9 sec =1nsec

Each interrogation and transfer take =800*1ns=800nsec

In 1 sec keyboard is interrogated 10 times

So in 1 nsec it is interrogated =10 ×10^(-9) times

So, total time spent in polling=800*10*10^(-9) nsec

% of time spent in polling=((time spent on polling in a cycle)/(total time) )*100

=(((800*10^(-8))nsec)/(1nsec)) *100

=0.0008
• selected by
Position:
Show:

Related questions

0 0 votes
0 0 answers
816
816 views
Gate Fever asked Nov 28, 2018
816 views
Assume that cache is 2 way set associative and has the following configurations:-(i) 8B of the total size(ii)2B of block size(iii)LRU replacementif byte-addressable memo...
0 0 votes
1 answers 1 answer
1.2k
1.2k views
0 0 votes
1 1 answer
462
462 views
Gate Fever asked Nov 28, 2018
462 views
Consider a directly mapped cache in which the number of tag bits is equal to the number of words in the block and the number of words is equal to the number of blocks in ...
0 0 votes
1 1 answer
643
643 views
BOB asked Oct 15, 2018
643 views
Consider a device that is to transfer data at a rate of 1 Mbytes/sec in 16bytes chunks. The overhead of polling is 400 cycles on 500 Mhz processor. Calculate the overhead...