Question: A given processor requires 1 5 0 0 cycles to perform a context switch and star un interrupt handler ( and the same number of
A given processor requires cycles to perform a context switch and star un interrupt handler and the same number of cycles to switch bock to the progeram that Was running whien the interrupt occurred or cyctes to poll an to device An to device attached to that processor makes requests per second, each of which takes cycles to resolve once the handler has been started. By default, the processot polls every if it is not using interrupts.
a How many cycles per second does the processor spend handling from the device if interrupts are used?
b How many cycles per second are spemt on O if polling is used include all polling attempts Assume the processor only polls during time slices when user programs are not running, so do not include any contextswiteh time in your calculation.
c How often would the processor have to poll for polling to take as many eycles per second as interrupts?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
