What does `synchronized` provide around a monitor?
Answer & explanation
Answer: Mutual exclusion and memory visibility
A synchronized region is mutually exclusive for a monitor and establishes visibility guarantees.
Practice concurrency with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: Mutual exclusion and memory visibility
A synchronized region is mutually exclusive for a monitor and establishes visibility guarantees.