Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2008, 01:20 PM
Administrator
 
Join Date: Dec 2006
Posts: 651
Rep Power: 10
JavaForums has disabled reputation
Default ThreadLocal - II
Continuing from the previous example, do note that each thread will hold an implicit reference to its copy of a thread-local variable. It will keep holding as long as the thread is alive and the ThreadLocal instance is accessible; When a thread is killed, all of its copies of thread-local instances are subject to garbage collection.
(more…)
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
When to use ThreadLocal Ashish Threads and Synchronization 3 04-23-2008 07:50 PM


All times are GMT +2. The time now is 02:31 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org