[concurrency-interest] Does Semaphore have the same memory model visibility guarantees as synchronizing?
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest