Practice Library

All MCQs

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

What is the purpose of signaling a condition variable?

Choose an option to check your answer.

What happens when a thread executes wait on a condition variable inside a monitor?

Choose an option to check your answer.

What is the essential effect of the semaphore signal operation?

Choose an option to check your answer.

What is the essential effect of the semaphore wait operation?

Choose an option to check your answer.

What is the primary purpose of a mutex lock?

Choose an option to check your answer.

What guarantee does a lock-free algorithm provide?

Choose an option to check your answer.

Which statement best describes an atomic variable?

Choose an option to check your answer.

Why is a memory barrier used in concurrent code?

Choose an option to check your answer.

What is busy waiting?

Choose an option to check your answer.