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

Given the following set of events, show which routines the CPU is executing for

ID: 3644794 • Letter: G

Question

Given the following set of events, show which routines the CPU is executing for times 0 to 100 ns. Each handler routine (with its interrupt request) takes 20 ns to complete. The priority of the interrupts ranges from IRQ6 as the highest priority interrupt to IRQ0 as the lowest priority interrupt.

Time Action
0 ns Start of main program
10 ns IRQ5
20 ns IRQ4
35 ns IRQ3
50 ns IRQ2
Time Action


Complete:
0 ns: Start of Main Program
10 ns: IRQ5

Explanation / Answer

As the interrupt will complete one instruction in 20 ns that means after 20nsec, a next interrupt will be handeled no matter the previous one is completed or not,hence 0-10 ns-> IRQ5 10-30ns -> IRQ4 30-65ns->IRQ3 And in parallel to IRQ3, from 50ns, the IRQ2 will start 50-100 ns-> IRQ2

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