Java language discussions
Wednesday, February 21, 2007
Double Checked Locking for Singleton
This turns out to be an anti-pattern unless used properly with volatile or full method getInstance() synchronization.
http://en.wikipedia.org/wiki/Double-checked_locking
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment