I have a question about java and concurrency.
Let say I have a ThreadLocal variable called \'a\'. And I use a CachedThreadPool to obtain new threads. When a thread i
If the thread is returned to the pool, the ThreadLocal variable will still be attached to it. When using ThreadLocals with pools, you have to be careful to be able to set when the thread is pulled from the pool and unset before it is returned.