✔ Scroll down and test yourself — answers are hidden under the “View Answer” button.
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
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
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.
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
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
*************
Go to Operating Systems MCQ home page
Go to Operating Systems home page
Go to Operating Systems TRUE/FALSE questions page
No comments:
Post a Comment