Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: CCE no longer returns in finally clause

...

Ensure that a thread that holds locks on other objects releases them appropriately, before entering the wait state. Additional guidance on waiting and notification in available in CON22-J. Always invoke wait() and await() methods inside a loop and CON19CON23-J. Notify all waiting threads instead of a single thread.

...

Wiki Markup
\[[API 06|AA. Java References#API 06]\] Class {{Object}}
\[[Grosso 01|AA. Java References#Grosso 01]\] [Chapter 10: Serialization|http://oreilly.com/catalog/javarmi/chapter/ch10.html]
\[[JLS 05|AA. Java References#JLS 05]\] [Chapter 17, Threads and Locks|http://java.sun.com/docs/books/jls/third_edition/html/memory.html]
\[[Rotem 08|AA. Java References#Rotem 08]\] [Falacies of Distributed Computing Explained|http://www.rgoarchitects.com/Files/fallacies.pdf]

...

CON19CON23-J. Notify all waiting threads instead of a single thread      11. Concurrency (CON)      CON21-J. Use thread pools to enable graceful degradation of service during traffic bursts