Quantcast
Channel: How does Java manage the visibility of a volatile field? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Gonen I for How does Java manage the visibility of a volatile field?

According to this :http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html#volatileJava's new memory model does this by 1) prohibiting the compiler and runtime from allocating volatile variables...

View Article



Answer by Kastaneda for How does Java manage the visibility of a volatile field?

This is the comment from source code of OpenJDK about volatile// ----------------------------------------------------------------------------// Volatile variables demand their effects be made known to...

View Article

How does Java manage the visibility of a volatile field?

This Q is looking for specific details on how exactly Java makes a volatile field visible.The volatile keyword in Java is used for making a variable "actively" visible to the readers of that variable...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images