By bloid
via javaspecialists.eu
Published: Oct 01 2008 / 10:02
Prior to Java 5, ThreadLocals caused thread contention, rendering them useless for performant code. In the new design, each thread contains its own ThreadLocalMap, thus improving throughput. However, we still face the possibility of memory leaks due to values not being cleared out of the ThreadLocalMap with long running threads.



Add your comment