Ryan Tey wrote:
>
> Hi this may sound very fundamental(or stupid) to you but please help me.
>
> I guess we all know that servlets are mutlithreaded by default unless the
> SingleThreadModel in implemented.
>
> The question is what of a servlet is multithreaded, the whole servlet or
> jsut some of the methods like doGet, doPost, service etc.
>
> Another thing is under what circumstances would a servlet run into
> concurrency problems.

The whole servlet is multithreaded. Using various techniques you can control how
many threads are running concurrently in a method or a section of code. You have
concurrency problems in any class where shared resources are being accessed
concurrently. For more information see
The servlet FAQ: http://www.purpletech.com
Java Threads, Oaks and Wong, http://www.ora.com
Concurrent Programming in Java, Lea, http://g.oswego.edu/dl/cpj/

Kevin Mukhar

___________________________________________________________________________
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