...
Wiki Markup |
---|
\[[JLS 05|AA. Java References#JLS 05]\] [Chapter 17, Threads and Locks|http://java.sun.com/docs/books/jls/third_edition/html/memory.html] \[[Fox 01|AA. Java References#Fox 01]\] [When is a Singleton not a Singleton?|http://java.sun.com/developer/technicalArticles/Programming/singletons/] \[[Daconta 03|AA. Java References#Daconta 03]\] Item 15: Avoiding Singleton Pitfalls; \[[Darwin 04|AA. Java References#Darwin 04]\] 9.10 Enforcing the Singleton Pattern \[[Gamma 95|AA. Java References#Gamma 95]\] Singleton \[[Patterns 02|AA. Java References#Patterns 02]\] Chapter 5, Creational Patterns, Singleton \[[Bloch 08|AA. Java References#Bloch 08]\] Item 3: "Enforce the singleton property with a private constructor or an enum type" \[[MITRE 09|AA. Java References#MITRE 09]\] [CWE ID 543|http://cwe.mitre.org/data/definitions/543.html] "Use of Singleton Pattern in a Non-thread-safe Manner" |
...
CON19CON22-J. Use notifyAll() instead of notify() to resume waiting threadsthe correct form of the double-checked locking idiom 11. Concurrency (CON) CON11CON24-J. Avoid deadlock by requesting locks in the proper orderUse a unique channel to acquire locks on any file