[concurrency-interest] UnitOfWorkLocal or RequestContextLocal utilities
unmesh_joshi at hotmail.com
Wed Oct 10 01:32:46 EDT 2007
I am starting this discussion to move discussion about ContextLocal abstraction from the issue of memory leak.
In discussion about ThreadLocal and Memory Leak, David Holmes pointed out that
"When "thread" and "context" map nicely in terms of identity and lifetime, then a ThreadLocal can be used for what is more generally a "context-local" variable. It is when "thread" and "context" don't map nicely that problems arise"
Robert Martin also blogged about this at http://blog.objectmentor.com/articles/2007/09/04/thread-local-a-convenient-abomination
Do you think it will help to have UnitOfWorkLocal or RequestContextLocal utilities supported by frameworks which can encapsulate usage of threads?
Can it be a nice candidate for J2EE concurrency utilities?
Get the new Windows Live Messenger!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest