View Single Post
  #4 (permalink)  
Old 04-23-2008, 07:50 PM
danielstoner's Avatar
danielstoner danielstoner is offline
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
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
Reply With Quote