Double-Checked Locking: Clever, but Broken
javaworld.comThough many Java books and articles recommend double-checked locking, unfortunately, it is not guaranteed to work in Java.
Though many Java books and articles recommend double-checked locking, unfortunately, it is not guaranteed to work in Java.