Details on the reasons - some very subtle - why double-checked locking cannot be relied upon to be safe. Signed by a number of experts, including Sun engineers.
www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
-
Get Site Info
All programming languages have their share of idioms. Many are useful to know and use, and programmers spend valuable time creating, learning, and implementing them. The problem is that some idioms are later proven not to be all that they w...
www.ibm.com/developerworks/java/library/j-dcl.html
-
Get Site Info
Many Java programmers are familiar with the double-checked locking idiom, which allows you to perform lazy initialization with reduced synchronization overhead. Though many Java books and articles recommend double-checked locking, unfortuna...
www.javaworld.com/jw-02-2001/jw-0209-double.html
-
Get Site Info