A good understanding of multi-threading in the traditional unix memory model is required for the following tutorial.read more- http://tech.xtremelabs.com/java-threads-an-inconvenient-truth/