Of non-static ThreadLocals and memory leaks ...

Courtesy 0xCAFEFEED  Sun, 07/04/2004 - 20:18

My recent experience has made me realize that the ThreadLocal class was never really designed to be used as a non-static field.

However, the implications of making it non-static are not highlighted enough in JDK API and the many ThreadLocal tutorials you find on the net.

If you want to know more about ThreadLocals I would recommend reading Threading lightly by Brian Goetz.

Brian talks about why and how to use ThreadLocals along...

Sponsors


 

Post new comment

The content of this field is kept private and will not be shown publicly.
Popular by tags

Week

  • -- no stats yet --

computer-internet.marc8.com