I\'m reading Joe Duffy\'s post a开发者_运维知识库bout Volatile reads and writes, and timeliness, and i\'m trying to understand something about the last code sample in the post:
My question refers to whether or not the use of a ReentrantLock guarantees visibility of a field in the same respect that the synchronized keyword provides.