Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how many servlet instances will be created

 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi
please help me in understanding:
if there are 10 clients (10 threads) do request
over some servlet , than how many instances of servlet
will be created .
whether it is 1 or 10

please tell also in comparison to single thread model
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There will be one servlet instance which will handle each request in a new and separate thread.

Read section SRV.2.2 of the details.Servlet Spec for more details.
[ September 25, 2005: Message edited by: Ben Souther ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic