This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ThreadLocal  RSS feed

 
Ashish Chande
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to Know what is ThreadLocal and what is Inheritable ThreadLoacal & what does it do. I actually went through Sun's documentation but couldn't understand. is this topic included in Scjp.
Thanks in Advance
Ashish
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically ThreadLocal is like a singleton but the singleton
is one per thread. Jack Shirazi's book has a nice explanation
and this chapter is online at:
http://www.oreilly.com/catalog/javapt/chapter/ch04.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!