MCQ Collection

Operating System MCQs

Practice Operating System questions with answers and explanations.

What does an atomic swap instruction exchange?

Choose an option to check your answer.

What is busy waiting?

Choose an option to check your answer.

Why is a memory barrier used in concurrent code?

Choose an option to check your answer.

Which statement best describes an atomic variable?

Choose an option to check your answer.

Peterson’s solution provides software mutual exclusion for how many cooperating processes in its classic form?

Choose an option to check your answer.

In Peterson’s solution, what is the purpose of the shared turn variable?

Choose an option to check your answer.

In Peterson’s solution, what does a process’s flag indicate?

Choose an option to check your answer.

On a single-processor system, why can disabling interrupts protect a very short kernel critical section?

Choose an option to check your answer.

What is the remainder section in the critical-section model?

Choose an option to check your answer.