PRACTICE / UNDERSTAND / REPEAT

Java practice question

Practice concurrency with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Concurrency · MCQQuestion link ↗

What does `synchronized` provide around a monitor?

Choose one answer
Answer & explanation

Answer: Mutual exclusion and memory visibility

A synchronized region is mutually exclusive for a monitor and establishes visibility guarantees.