Java 6 API question. Does calling LockSupport.unpark(thread)
have a happens-before relationship to the return from LockSupport.park
in the just-unparked thread? I strongly suspect the answer is yes, but the Javadoc doesn't seem to mention it explicitly.
views:
72answers:
1
+2
A:
I have looked though the JDK code and it looks like LockSupport methods are normally called outside of synchronization blocks. So, your assumption seems to be correct.
Slava Imeshev
2010-04-03 01:31:54