Skip to content
Related Articles

Related Articles

GATE | GATE CS 1997 | Question 23
  • Difficulty Level : Expert
  • Last Updated : 25 Oct, 2018
GeeksforGeeks - Summer Carnival Banner

When an interrupt occurs, an operating system
(A) ignores the interrupt
(B) always changes state of interrupted process to ‘blocked’ and schedules another process
(C) always resumes execution of interrupted process after processing the interrupt
(D) may change the state of interrupted process to ‘blocked’and schedule another process

Answer: (D)

Explanation: Scheduler decides that the interrupted process will complete execution or some other process will be executed.
If the interrupt signaled an I/O completion event, and at the same time a high priority process came into Ready state then the scheduler block the interrupted process and dispatch the high priority process in the running state. If low priority process comes into Ready state then scheduler dispatch the interrupted process.

Hence, D is correct.

Quiz of this Question


My Personal Notes arrow_drop_up
Recommended Articles
Page :