Hi Steve!

> 1. A thread enters doGet, the local variables are thread safe?

yes.

> 2. A thread in doGet calls a method passing local variables, still
> thread safe ?

yes. as long as the method does not use instance or static variables

> 3. The method called above has local variables which are used in
> processing the above, still safe ?

yes.

> 4. The method returns a result and the doGet continues through methods
> similar to above before outputting a result. As I understand it this
> should be thread safe and I do not have to concern myself with
> concurrency problems, is this correct?

right.

> 5. Only instance variables need 'protecting' against concurrency
> problems, yes or no ?

instance and static (i.e. class)  variables.

Cheers,

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.1 servletengine
  Java Server & Servlets    The German servlet book
  The WebApp Framework        http://www.webapp.de/

___________________________________________________________________________
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