aspose file tools*
The moose likes Java in General and the fly likes ThreadLocal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ThreadLocal" Watch "ThreadLocal" New topic
Author

ThreadLocal

Dhaval Shah
Ranch Hand

Joined: Jun 10, 2005
Posts: 56
Can anyone please tell me the significance of ThreadLocal class ? i.e. as per the application point of view


Thanks and Regards,<br />Dhaval Shah<br />SCJP 1.4<br />SCWCD 1.4
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

Have a look at:

http://www-128.ibm.com/developerworks/java/library/j-threads3.html


[My Blog] [JavaRanch Journal]
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
Some people find it helpful to conceptualise a thread local as being an associative type that is keyed by the type Thread. Simply, a Map<Thread, T>. The analogy is quite useful and not dangerous (i.e. there is little opportunity to be misled).


Tony Morris
Java Q&A (FAQ, Trivia)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ThreadLocal