Singleton
Thread Safe Singleton in C++
Filed in: C++
This article is about how to create a thread safe Singleton in C++. There are three basic patterns we will discuss, Double Checked Locking and why its bad, the Myers Singleton and the OnceFlag Singleton. Read More…
Thread safe Java Singleton
Filed in: Java
When creating a thread safe Java Singleton there are three basic patterns. Double Checked Locking, Lazy Initialization and upfront initialization. Here we will talk about all three methods. Read More…
