Eric -

If you want faster single threaded access, I would suggest looking into
the Java 1.2 collection. It contains a HashMap that is *not*
synchronized by default.

A 1.1 version of the Java 1.2 collection package is available at:

  http://java.sun.com/beans/infobus/#DOWNLOAD_COLLECTIONS

Even if you are running multi-threaded, you can still use these packages
and add your own synchronization.

- Paul

Eric Knapp wrote:
> I am developing a servlet system that uses caching of data to increase
> performance. Currently, I'm using HashTables to store these cached objects.
> Since access to normal HashTables is synchronized this raises some
> interesting points. I believe that my system has now been made
> single-threaded. I know that this access should be very quick but I still
> do not like it. Is there something like a HashTable out there that is
> multi-threaded?
>
> TIA,
>
> -Eric
>
> --
> Eric J. Knapp
> Software Engineer              Email: [EMAIL PROTECTED]
> Berbee Information Networks    URL:   www.berbee.com
> 5220 Research Park Drive       Voice: (608) 288-3000 x1617
> Madison, WI 53711-5377         Fax:   (608) 288-3007
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to