I’m trying to implement a thread-safe, lazily initialized singleton in Java, but I want to avoid using synchronized for performance reasons. I know about stuff like the Bill Pugh Singleton pattern and double-checked locking, but are there other clean approaches?
submitted by /u/SimonPowellGDM
[link] [comments]
from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/LtQGIlX