Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote