The Artima Developer Community
Sponsored Link

Legacy Design Forum
Thread Safety

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How to judfe if a class need thread safe?

Posted by wynne on April 10, 2000 at 10:43 PM

I've read the article and still have a question.
How to judge if a class need to be thread-safe?
For example, I'm creating a servlet class A.
And inside A, it new other common class B and call
B's method.
Shall I make them thread safe? A and B? or just A?

And in some common Application, how to judge if they
need synchronized?





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us