MCQ Collection

Operating System MCQs

Practice Operating System questions with answers and explanations.

How can an operating system attack the no-preemption condition to prevent deadlock?

Choose an option to check your answer.

In a resource-allocation graph, an edge from a process to a resource indicates what?

Choose an option to check your answer.

What does an edge from a resource instance to a process mean in a resource-allocation graph?

Choose an option to check your answer.

If every resource type has exactly one instance, what does a cycle in the resource-allocation graph imply?

Choose an option to check your answer.

Which statement about a safe state is correct?

Choose an option to check your answer.

What is the ostrich approach to deadlocks?

Choose an option to check your answer.

What is the central synchronization challenge in the cigarette-smokers problem?

Choose an option to check your answer.

A high-priority thread waits for a lock held by a low-priority thread, while medium-priority threads keep preempting the holder. Which remedy is appropriate?

Choose an option to check your answer.

What is a deadlock?

Choose an option to check your answer.

Which deadlock condition requires at least one resource to be usable by only one process at a time?

Choose an option to check your answer.