[concurrency-interest] concurrency puzzle

Brian Goetz brian at quiotix.com
Tue Sep 12 16:15:50 EDT 2006


We should update that document to not foster such confusion.

Peter Veentjer wrote:
> I you look at the following documentation:
> 
> http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html#volatile
> 
> They talk about cache invalidation:
> if a lock is obtained, the cache is invalidated.
> 
> So occording to this documentation, the write x=20 could get lost if
> it isn't flushed to main memory and this makes 0 a possible output
> value.
> 
> So what should I believe?
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest


More information about the Concurrency-interest mailing list