Problem Statement
Which pair creates a happens-before relationship under the JMM?
Explanation
Releasing a monitor happens-before the subsequent acquire of that monitor by another thread. This ensures visibility of changes made inside the critical section.
Practice Sets
This question appears in the following practice sets:
