tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Re: MultiThreadModel-Problem?
Date Fri, 15 Jun 2001 05:21:51 GMT
> > Sebastian Schulz wrote:
> >
> > > [...]
> > > the second question is:  data-container like HashMap or HashSet
> > > are considered to be not Thread-save. Can i use such containers
> > > in a MultiThreadModel-Servlet or must i use only slower structures
> > > like Vector?
> > >
> > > your help is realy needed, many thanks
> > > in advance!
> > >
> > > basti

Came across a very useful class developed by Doug Lea, author of
Concurrent programming in Java in version 1.3.0 of his concurrent
package.

This package contains ConcurrentHashMap which provides concurrent reads,
writes and iterations (including removal during iteration) over the Map.

See the package pages 

http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html

Doug says that a class of this sort is likely to be included in JDK1.5
and is looking for feedback on good/bad experiences with the new class.

Antony

Mime
View raw message