On receiving an interrupt from an I/O device,the CPU

2009

On receiving an interrupt from an I/O device,the CPU

  1. A.

    Halts for a predetermined time

  2. B.

    Branches off to the interrupt service routine after completion of the current instruction

  3. C.

    Branches off to the interrupt service routine immediately

  4. D.

    Hands over control of address bus and data bus to the interrupting device

Attempted by 120 students.

Show answer & explanation

Correct answer: B

Upon receiving an interrupt from an I/O device, the CPU completes the current instruction before responding. This ensures that the processor state remains consistent and predictable. After finishing the instruction, the CPU saves its context and branches to the interrupt service routine.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro