Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A processor with a 5 0 0 M H z clock requires 1 0 0 0 clock cycles to perform a context switch and start

A processor with a 500MHz clock requires 1000 clock cycles to perform a context switch and start an ISR. Assume each interrupt takes 10,000 cycles to execute the ISR and the device makes 300 interrupt requests per second. Also, assume that the processor polls every 0.5msec during the time when there are no interrupts. Further assume that polling an I/O device requires 250 cycles. Compute the following:
a. How many cycles per second does the processor spend handling I/O from the device if only interrupts are used? [10 marks]
b. What fraction of the CPU time is used in interrupt handling for part? [10 marks]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions