retagged by
367 views
0 votes
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).
retagged by

1 Answer

Best answer
1 votes
1 votes
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

Related questions

0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
4
BOB asked Oct 15, 2018
314 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...