tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Servlet thread safety in Tomcat
Date Tue, 10 Feb 2004 13:29:52 GMT


>this has made me think a lot about threading , it is really complicated
>, I have researched about it but never found a clean solution to

Threading is complicated, yes, and difficult to do well.  Which is why
when possible you should let someone else do the work for you and use a
library like Doug Lea's util.concurrent, which is now
java.util.concurrent in JDK 1.5.  It has thread pools, executors, locks,
etc so you don't have to write any of this sync code yourself.

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message