Which one of the following statements about the ordering a monitor release establishes is true?
Answer: A
An unlock on a monitor is ordered before every subsequent lock of the same monitor, so everything one thread wrote inside a synchronized block is visible to the next thread that enters a block on the same object. Mutual exclusion and visibility come together, and both depend on it being the same monitor.
Please log in or register to report this question.