MCQ in operating systems with answers, OS interview questions, solved Gate questions in OS


Operating systems MCQ interview questions - Set 8



1. The difference between preemptive and non-preemptive scheduling is

(a) Whether or not a ready process can be involuntarily terminated
(b) Whether or not a running process is involuntarily removed from the ready state
(c) Whether or not a blocked process can have its resources involuntarily taken away from it
(d) Waiting time is more in preemptive scheduling and less in non-preemptive

Click here to view answer and explanation


2. The four conditions that must hold in order for deadlock to occur are
(a) Mutual exclusion, hold-and-wait, circular wait, and no preemption
(b) No preemption, no starvation, circular wait, and mutual exclusion
(c) Hold-and-wait, circular wait, no starvation and mutual exclusion
(d) All of the above

Click here to view answer and explanation


3. When does preemption take place?

(a) When a quantum expires.
(b) When a process issues an I/O request.
(c) When a process exits.
(d) All of the above.

Click here to view answer and explanation


4. What does interrupt do?
(a) Allow the CPU to notify devices that it needs attention
(b) Allow the devices to notify the device controller that they need attention
(c) Allow the devices to notify the CPU that they need attention
(d) None of the above

Click here to view answer and explanation


5. In contrast to a cooperative scheduler, a preemptive scheduler supports the following state transition
(a) Ready → running
(b) Running → ready
(c) Ready → blocked
(d) Blocked → running

Click here to view answer and explanation


*************