[concurrency-interest] Does Semaphore have the same memory model visibility guarantees as synchronizing?

Victor Grazi vgrazi at gmail.com
Wed Sep 7 15:46:05 EDT 2011

Hi - The JMM guarantees that when a Thread A enters a block that is
synchronized on some object, it is guaranteed to see anything that had been
visible to another thread B when thread B was synchronized on the same

ReentrantLock has the same characteristic.

Is Semaphore required to have the same semantics?

Thanks, Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20110907/4a111244/attachment.html>

More information about the Concurrency-interest mailing list