retagged by
2,607 views
2 2 votes
Consider a system such that the number of clock cycles for a polling operation (including transferring to the polling routine,
accessing the device and restarting the user program) is 400 cycles,
and that the processor executes with a 500 MHz clock. Determine the fraction of CPU consumed when the mouse must be polled 30 times per second.

•0.002 %
•0.02 %
•0.2 %
•None of these

1 Answer

3 3 votes

Number of cycles per second required=30 times per second *400 cycles per polling operation =12000 cycles per sec

FractFraof cpu consumed=(required frequency /cpu frequency) *100=12000/500×10^6

=0.0024

Correct answer is 0.002% or 0.0024%

Position:
Show:

Related questions

2 2 votes
3 3 answers
2.2k
2.2k views
Laahithyaa VS asked Sep 9, 2023
2,163 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...