snipt

Ctrl+h for KB shortcuts

Markdown

Double-Checked Locking is Broken

https://snipt.net/embed/f3f819ba97330a13ba731bea50b83620/
/raw/f3f819ba97330a13ba731bea50b83620/
f3f819ba97330a13ba731bea50b83620
markdown
Markdown
4
2016-12-30T02:50:45
True
False
True
Nov 27, 2014 at 02:54 AM
/api/public/snipt/137392/
double-checked-locking-is-broken-62ff4ec9
<p><a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html">The "Double-Checked Locking is Broken" Declaration</a></p> <p><a href="http://regrecall.blogspot.ch/2012/05/java-singleton-pattern-thread-safe.html">Java Singleton Pattern Threadsafe</a></p>
java, multithreading, threadsafe