java Programming Glossary: inheritablethreadlocal
Java thread creation overhead http://stackoverflow.com/questions/2117072/java-thread-creation-overhead example which I am currently wrestling with is the use of InheritableThreadLocal which allows ThreadLocal variables to be passed down to any.. solution is to spawn new worker threads on demand and let InheritableThreadLocal do its job. This brings us back to the question if I have a..
Using InheritableThreadLocal with ThreadPoolExecutor — or — a ThreadPoolExecutor that doesn't reuse threads http://stackoverflow.com/questions/9012371/using-inheritablethreadlocal-with-threadpoolexecutor-or-a-threadpoolexecut InheritableThreadLocal with ThreadPoolExecutor &mdash or &mdash a ThreadPoolExecutor.. that doesn't reuse threads I am trying to use both InheritableThreadLocal and a ThreadPoolExecutor . This breaks down because ThreadPoolExecutor.. threads for each pool it is a pool after all meaning the InheritableThreadLocal doesn't work as expected. Now the problem seems obvious to me..
|