Double-checked locking and the Singleton pattern
Peter Haggar examines the roots of the double-checked locking idiom, why it was developed, and why it doesn't work.
: 1 | singleton - java - - patternAre singletons overused? Veteran programmer J. B. Rainsberger suggests they might be, explains why, and offers tips for knowing when to use singletons and when to seek more flexible alternatives.
: 1 | singleton - java - - pattern