[jdom-interest] static data needs to be thread data for multithreaded applications

bob bob at accurev.com
Sun Sep 24 08:45:09 PDT 2000


Yah, I understand the neccesity for some synchronization,
but someone suggested ThreadLocal storage, which just 
baffled me.

	-bob


On Sat, 23 Sep 2000, Alex Chaffee wrote:

> On Fri, Sep 22, 2000 at 01:16:09PM -0400, bob wrote:
> > 
> > I guess I'm just missing the point.
> > 
> 
> Yup :-)
> 
> If two threads each add a new namespace at the exact same time, then
> the *collection* object (which is static thus shared) will barf with
> ConcurrentModificationError.
> 
> See my http://www.jguru.com/faq/Threads :-)
> 
>  - Alex
> 
> 
> -- 
> Alex Chaffee                       mailto:alex at jguru.com
> jGuru - Java News and FAQs         http://www.jguru.com/alex/
> Creator of Gamelan                 http://www.gamelan.com/
> Founder of Purple Technology       http://www.purpletech.com/
> Curator of Stinky Art Collective   http://www.stinky.com/
> 




More information about the jdom-interest mailing list