Given the following set of events, show which routines the CPU is executing for
ID: 3669676 • 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
IRQ1
25 ns
IRQ4
40 ns
IRQ6
50 ns
IRQ3
Time Action
0 ns: Start of Main Program
10 s: IRQ1
This question has been answere over ond over on Chegg with different answers. I need to know the correct answer (would be nice to show why the others are wrong)
Time
Action
0 ns
Start of main program
10 ns
IRQ1
25 ns
IRQ4
40 ns
IRQ6
50 ns
IRQ3
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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.