|
Sorry ingle.anil but that doesn't make sense. ThreadLocal is not global variable at all. It is storage for a specificthread. Another thread cannot access that data. ThreadLocal can help you write code that is concurrency aware and needs to associate data with each execution thread. Managing DB statements can be a good example.
__________________
Daniel @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
|