> > 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