Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  On receiving an interrupt from a I/O device t... Start Learning for Free
On receiving an interrupt from a I/O device the CPU:
  • a)
    Halts for a predetermined time.
  • b)
    Hands over control of address bus and data bus to the interrupting device.
  • c)
    Branches off to the interrupt service routine immediately.
  • d)
    Branches off to the interrupt service routine after completion of the current instruction.
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
On receiving an interrupt from a I/O device the CPU:a)Halts for a pred...
Answer should be D i.e branches off to ISR after completing current instruction.
CPU checks the status bit of interrupt at the completion of each current instruction running when there is a interrupt it service the interrupt using ISR.
View all questions of this test
Most Upvoted Answer
On receiving an interrupt from a I/O device the CPU:a)Halts for a pred...
Interrupt Handling in CPU

An interrupt is a signal that is sent to the CPU by an I/O device to request its attention. When the CPU receives an interrupt, it temporarily stops executing its current program and transfers control to a special routine called the interrupt service routine (ISR).

Handling Interrupts

When the CPU receives an interrupt, it follows the following steps to handle it:

1. Save the current state: The CPU saves the current state of the program, including the program counter, on the stack.

2. Determine the interrupt source: The CPU reads the interrupt request register to determine the source of the interrupt.

3. Disable interrupts: The CPU disables interrupts to prevent other interrupts from occurring while it is servicing the current interrupt.

4. Branch to the ISR: The CPU branches to the ISR, which is a special routine that handles the interrupt. The ISR executes a sequence of instructions to service the interrupt.

5. Enable interrupts: After the ISR completes, the CPU re-enables interrupts and returns to the interrupted program.

Option D

The correct answer is option D, i.e., the CPU branches off to the interrupt service routine after completion of the current instruction. This is because the CPU cannot immediately branch off to the ISR when it receives an interrupt. It must complete the current instruction before servicing the interrupt. This ensures that the program state is saved correctly before the CPU transfers control to the ISR.

Conclusion

In conclusion, interrupt handling is an important mechanism in the CPU that allows I/O devices to request the CPU's attention. When the CPU receives an interrupt, it temporarily stops executing its current program and transfers control to the ISR. The CPU follows a sequence of steps to handle the interrupt and returns to the interrupted program after the ISR completes.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer?
Question Description
On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer?.
Solutions for On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer?, a detailed solution for On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? has been provided alongside types of On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice On receiving an interrupt from a I/O device the CPU:a)Halts for a predetermined time.b)Hands over control of address bus and data bus to the interrupting device.c)Branches off to the interrupt service routine immediately.d)Branches off to the interrupt service routine after completion of the current instruction.Correct answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev