Questions: Interrupt Vector Tables and Dispatch

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

When interrupt number 14 (page fault) fires on an x86 processor, how does the CPU determine which handler to execute?

AThe CPU scans kernel code for a function named 'page_fault_handler'
BThe CPU raises a special page-fault signal and waits for the OS to respond
CThe CPU indexes into the interrupt descriptor table at position 14, reads the stored handler address, and jumps to it
DThe CPU checks the interrupt type register and executes a switch statement in microcode
Question 2 Multiple Choice

An interrupt fires while a user process is executing on x86. What does the CPU automatically do before jumping to the kernel handler?

AThe CPU does nothing automatically — the handler is responsible for saving all state before using any registers
BThe CPU saves the instruction pointer and flags register onto the stack, and switches to the kernel stack if crossing privilege levels
CThe CPU pauses all other processes and sends an acknowledgment signal to the interrupting device
DThe CPU copies the entire process address space into a kernel buffer for safe handling
Question 3 True / False

When a hardware interrupt fires, the CPU searches through kernel code to find the correct handler function based on the type of interrupt.

TTrue
FFalse
Question 4 True / False

The operating system populates the interrupt vector table during boot, before any user processes run.

TTrue
FFalse
Question 5 Short Answer

Why does the interrupt dispatch mechanism use an indexed array (the interrupt vector table) rather than a set of if-else conditions in the kernel, and what makes this design critical for system performance?

Think about your answer, then reveal below.