RSS feed
[root]
/
concurrency
/
java
/
weblog
login:
password:
title search:
Search this site
Enter your search terms
Web
www.carfield.com.hk
Submit search form
Prev
Next
Wed Mar 08 12:44:43 GMT 2023
threadlocal
There is a little bit performance cost for threadlocal variable -
http://software.intel.com[..]ost-of-accessing-thread-local-variables/
Look like a useful but less known API -
http://crazybob.org/2006/07/hard-core-java-threadlocal.html
Forward up discussion -
http://www.theserverside.com[..]d_id=41473&asrc=EM_NNL_406677&uid=703565
pointing out some problems of using this technique, include similar effect of GLOBLE , possible memory leak
Another discussion in higher level -
http://blog.objectmentor.com[..]04/thread-local-a-convenient-abomination
, Key is "An object is an abstraction of function. A thread is an abstraction of schedule" , you can read further conclusion at
http://www.infoq.com/news/2007/09/confusing_uow_with_threads
Protential issue of using threadlocal, one is memory leak and the other is it is that local -
http://blog.maxant.co.uk/pebble/2008/09/23/1222200780000.html
http://www.javacodegeeks.com[..]hreading-stories-threadlocal-in-web.html
http://plumbr.eu[..]shoot-yourself-in-foot-with-threadlocals
The beauty of the design of threadlocal, how it prevent locking and memory leaking -
http://plumbr.eu/blog/how-is-threadlocal-implemented
JEP 429: Extent-Local Variables to Promote Immutability in Java -
https://www.infoq.com/news/2022/09/extent-local-variables-java/
An Introduction to Scoped Values in Java -
https://foojay.io/today/an-introduction-to-scoped-values-in-java/
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next