Singleton; synchronized vs. AtomicReference.compareAndSet()
807580Jan 14 2010 — edited Jan 14 2010I stumbled on this link; [http://www.rockstarprogrammer.org/post/2006/oct/19/java-singletons-without-locks/]
which suggests the merits of AtomicReference.compareAndSet() are greatly exaggerated
at least in the context of singleton initialization.