Given the following set of events, show which routines the CPU is executing for
ID: 3669580 • 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
10s: IRQ1
Time
Action
0 ns
Start of main program
10 ns
IRQ1
25 ns
IRQ4
40 ns
IRQ6
50 ns
IRQ3
Explanation / Answer
R U LOOKING FOR THIS:
As an interrupt will complete one instruction in 20ns this means after 20ns another interrupt will be handled no matter the previous one is completed or not
0 - 10ns IRQ1
10 - 30ns IRQ4
30 - 65ns IRQ6
50 - 100ns IRQ3
And in parallel to IRQ6, from 50ns, IRQ3 will start
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.