When a thread pool thread is done, does stuff like Name or thread local data get reset?
So when the thread comes out of the pool next time, it’s like brand new?
Is there an “official” documentation on this aspect of the ThreadPool threads?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It does NOT clear thread local storage when it’s released, which is the most important aspect to note.
http://msdn.microsoft.com/en-us/library/system.threading.threadpool.aspx
This is something to be very careful about…