Thursday, August 02, 2007

A Literary Gem on How to Lock in Multi-Threaded Programs

Thread-safe programming, especially when we want to make our application optimized and scalable, is very hard. Michael Suess, in his blog named "Thinking Parallel",
He refers to the book "Java Concurrency in Practice" for some of these tips, but basically the list is his original.

One feasible and well-known solution is to never write them by ourselves but to let libraries handle it. Doug Lea's book on design patterns in Java thread programming covers most of important techniques for the problem domain and they are now available as the standard java.util.concurrent package in Java.

However, as you know, it may not solve all you need. Then let's get back to the principals Michael has just extracted for us.