The Gateway to Computer Science Excellence
+2 votes
490 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
in CO and Architecture by Loyal (6.3k points)
retagged by | 490 views

1 Answer

+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%

by Loyal (8.2k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,650 questions
56,192 answers
193,988 comments
94,858 users