Practice Library

All MCQs

Browse exam-wise, subject-wise, and country-wise MCQs with explanations.

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 the central synchronization challenge in the cigarette-smokers problem?

Choose an option to check your answer.

What does a reusable barrier ensure?

Choose an option to check your answer.

What coordination challenge is modeled by the sleeping-barber problem?

Choose an option to check your answer.

Which dining-philosophers strategy prevents circular wait?

Choose an option to check your answer.

Why can the naive dining-philosophers solution deadlock when every philosopher picks up the left fork first?

Choose an option to check your answer.

What policy defines the first readers-writers problem?

Choose an option to check your answer.

In the bounded-buffer problem, what does the full semaphore count?

Choose an option to check your answer.

In the bounded-buffer problem, what does the empty semaphore count?

Choose an option to check your answer.