thread safe code : Java Glossary One important point to notice is to notice discussion about ”volatile”. I.e. Either synchronized or volatile is requires when ”-server” is used, since server JVM will perform aggressive registry, etc. caching of values avoiding expensive shared memory access.
Read more