a. Explain why interrupts have overheads. c. If interrupts introduce a 50ns over
ID: 3711057 • Letter: A
Question
a. Explain why interrupts have overheads.
c. If interrupts introduce a 50ns overhead and the interrupt handler itself takes 250ns to execute, and you are again printing 250 characters, how much savings in CPU cycles would you have using interrupt driven programming instead of polling?
d. Suppose it takes 500ns to set up a DMA transfer to perform the printing and an additional 200ns to handle the interrupt at the end of printing. How many cycles would you save over polling and interrupts, if you are printing 250 characters?
Explanation / Answer
a)
The processing time required by system S/W, that involves the OS and be any utility that supports application programs.
The interrupt overhead is caused because of context switching. The negative impact of context switching is cache usage.
c)
d)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.