Question: A given processor requires 1 0 0 0 cycles to perform a context switch and start an interrupt handler and 1 5 0 0 number

A given processor requires 1000 cycles to perform a context switch and start an
interrupt handler and 1500 number of cycles to switch back to the program that
was running when the interrupt occurred, or 500 cycles to poll an I/O device. An
I/O device attached to that processor makes 200 requests per second, each of
which takes 12,500 cycles to resolve once the handler has been started. By default
, the processor polls every 0.25ms if it is not using interrupts
a. How many cycles per second does the processor spend handling I/O from the
device if interrupts are used?
b. How many cycles per second are spent on I/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 context-switch time in your
calculation
2
c. How often would the processor have to poll for polling to take as many cycles per
second as interrupts.
2 A given processor requires 1000 cycles to perform a context switch and start an
interrupt handler and 1500 number of cycles to switch back to the program that
was running when the interrupt occurred , or 500 cycles to poll an I/O device. An
I/O device attached to that processor makes 200 requests per second, each of
which takes 12,500 cycles to resolve once the handler has been started. By default
, the processor polls every 0.25 ms if it is not using interrupts
a. How many cycles per second does the processor spend handling I/O from the
device if interrupts are used? [2]
b. How many cycles per second are spent on I/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 context-switch time in your
calculation [2]
c. How often would the processor have to poll for polling to take as many cycles per
second as interrupts.
A given processor requires 1 0 0 0 cycles to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!