Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

How Servlets work?

saravanan

2004-02-16

Replies:

Hi all,

may be not the right place to ask this question. Hope somebody is kind
enough to clarify this doubt of mine.

i understand, in a servlet, if i need any code to be thread safe, then
i shud put that code inside a synhronized block
or declared the entire method as synchronized. if my understanding is
right, only instance of our serlvet class is being
created. in that case how the webserver handles more than one request at
the same time. i mean, is some queuing structure
being followed, (i am tempted to believe it is not multithreaded)?

Could anybody clarify this doubt of mine or atleast point out some ref.
material for this.

Thanks
R.Saravanan


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.