Question: Suppose a single - core CPU has a clock frequency of 1 GHz . A context switch takes 8 0 0 clock cycles to run.

Suppose a single-core CPU has a clock frequency of 1GHz. A context switch takes 800 clock cycles to run. The polling interval is 600 cycles, and it takes 900 cycles to perform the processing for event A.
(a) Assume that the processing of event A must be finished within 1.6us from the time that event A occurred.
i. Can polling meet the required response time?
ii. Can interrupts meet the required response time?
(b) Assume that the processing of event A must be finished within 1.8us from the time that event A occurred.
i. Can polling meet the required response time?
ii. Can interrupts meet the required response time?

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!