Talk:Multiton pattern
From Wikipedia, the free encyclopedia
[edit] NOT double-checked locking
The example code is not vulnerable to the double-checked locking anti-pattern. I have updated the double-checked locking page to make the problem more clear.
- Right: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html, example 2. Pavel Vozenilek 22:16, 19 December 2005 (UTC)
-
- That's correct; the example code bears the full cost of synchronization - what the double-checked locking [anti-]pattern set out to avoid. 71.253.235.250 01:44, 6 April 2006 (UTC)
[edit] Please discuss changes here first
For the second time I have had to remove incorrect commentary on this subject. Please add discussion here if you have questions.
Dubwai 15:52, 19 June 2006 (UTC)