Explore BrainMass
Share

Explore BrainMass

    Execution sequence of main program and interrupts on CPU

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Given the following sequence of events, show which routines the CPU is executing from time 0 to 100ns. Each handler routine with its interrupt request takes 20 ns to complete.

    Time Action
    0 ns Start of main program
    10ns IRQ4
    20ns IRQ6
    45ns IRQ1
    60ns IRQ3.

    © BrainMass Inc. brainmass.com October 9, 2019, 8:40 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpu-utilisation/execution-sequence-main-program-interrupts-cpu-158734

    Solution Preview

    Following explanation of cpu timeline assumes that lower interrupts can be interrupted by higher interrupts.

    0-10 ns: Main program executes, IRQ4 comes at 10ns and interrupts Main program.
    10-20 ns: IRQ4 handler executes, IRQ6 comes at ...

    Solution Summary

    CPU timeline explained in solution assumes that lower interrupts can be interrupted by higher interrupts.

    $2.19