retagged by
2,062 views
2 votes
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
retagged by

1 Answer

3 votes
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%

Related questions

2 votes
2 votes
3 answers
2
Laahithyaa VS asked Sep 9, 2023
935 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...
0 votes
0 votes
1 answer
4
Sara86568 asked Jun 21, 2022
1,005 views
The program runs in 100s. Multiplies 80 % of the program. Designer M can improve the speedup of multiply operations. Now, I am a user and I need to make MY program 5 time...