yah you are right if there are no instance variables and all are local variables then 
you
need not worry about synchronization issues.

Jeetandra Mahtani wrote:

> Hello,
> Can someone please confirm the following and maybe provide some insight to make my
> concepts thorough.
> If there are no instance variables and only local variables, one does not need to 
>worry
> about different threads accessing the same variable, right?
> If only local variables are being used in all classes, does one need to worry about
> synchronization/thread issues?
> When does one need to use the SingleThread Model ?

Normally one does not use SingleThread Model because if restricts the usage to only one
client at a given time. But if you have some critical resource which has to be shared
across multiple clients and you want only one client can acces it then you go for it.

Regards
Nitin.

___________________________________________________________________________
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