It's Multiple Threads pushed through a single instance. It's is parallel not serial. 
Any synchronization code is probably going to do more harm than good. You might want 
to rethink your architecture. See Flyweight Pattern [GoF].



--- saravanan <[EMAIL PROTECTED]> wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_____________________________________________________________
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to