Open In App
Related Articles

GATE | GATE CS 1997 | Question 23

Improve Article
Improve
Save Article
Save
Like Article
Like

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

Level Up Your GATE Prep!
Embark on a transformative journey towards GATE success by choosing Data Science & AI as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need.

Last Updated : 25 Oct, 2018
Like Article
Save Article
Similar Reads