Questions: Exception and Interrupt Handling Architecture

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A page fault fires while an instruction is partway through execution in a pipelined processor. The OS loads the missing page and returns. What must the processor guarantee for this sequence to work correctly?

AThe faulting instruction is skipped and execution resumes at the next instruction.
BThe processor must guarantee precise exception semantics: all prior instructions appear complete, the faulting instruction appears as if it never started, and it will be re-executed from scratch after the handler returns.
CThe pipeline flushes all in-flight instructions and the program restarts from its beginning.
DThe exception handler runs within the same pipeline stage where the fault was detected.
Question 2 Multiple Choice

When a keyboard interrupt arrives, the processor indexes into the interrupt vector table using the interrupt's type number. What does the table entry at that index contain?

AA saved copy of the interrupted program's register values.
BA priority level number indicating whether the interrupt should preempt the current handler.
CThe memory address of the handler routine to be executed for this interrupt type.
DA flag indicating whether the I/O device has already been acknowledged.
Question 3 True / False

Achieving precise exceptions in a pipelined processor requires flushing partially-completed instructions that followed the faulting instruction and restoring the architectural state to the exact point of the fault.

TTrue
FFalse
Question 4 True / False

After an exception handler finishes, the processor generally resumes execution at the instruction immediately following the one that caused the exception.

TTrue
FFalse
Question 5 Short Answer

Why do pipelined processors face a significantly harder problem achieving precise exceptions than single-cycle processors?

Think about your answer, then reveal below.