Archive for April, 2011

Atomic array classes and volatile arrays in the JVM

Tags: , , , ,

Declaring an array volatile does not do what many think it does! The common, simplistic understanding of the volatile keyword in Java is that if a variable is being modified by multiple threads, it should be marked volatile so that changes can be seen by other threads. (There is more to it that I’ll leave [...]

Continue reading » No comments