Description of Exploiting ThreadLocal to enhance scalability :
This gives an overview of the ThreadLocal class that appeared in the version 1.2 of the Java platform. It may be difficult to write thread-safe classes and it needs a thorough analysis of the conditions under which variables will be read or written. It also requires a careful scrutiny of how the class might be used by other classes. It may at times be very difficult to make a class thread-safe without concession on its functionality, performance or ease of use. It is difficult to make those classes thread-safe in any practical way, which retain state information from one method invocation to the next.