![img](http://www.javamex.com/RightArrowBlue.gif) [Synchronized vs volatile](http://www.javamex.com/tutorials/synchronization_volatile.shtml#synchronized_volatile ...
If you need to control access to certain pieces of data in a class when writing multithreaded applications, see how you can use the volatile keyword to get a similar effect as using the synchronized ...
// Every read of a volatile variable will be read from RAM, not from cache (usually variables are cached for performance reasons) // Caches are faster -> do not use volatile kw if not necessary. // If ...