# 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

686 views
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

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

1
1.8k views
Assume that a CPU can process $10^8$ operations per second. Suppose you have to sort an array with $10^6$ elements. Which of the following is true? 1. Insertion sort will always take more than 2.5 hours while merge sort will always take less than 1 second. ... will always take less than 1 second. 4. Insertion sort could take more than 2.5 hours while quicksort will always take less than 1 second.
1 vote