This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server thread question

 
Vasantha Prabha
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai, when a servlet gets loaded into the server, the server creates an instance of the servlet.
My Question is,
Will the server provide one thread for each client or it initiates a thread for each client's single request?
regards
Sangeetha
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A server uses one thread for each request, regardless of which client it comes from or which servlet or JSP it goes to.
 
Pallavi Sikdar
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What the container does internally differs from one vendor's implementation to other , be it servlet, jsps or EJB's. For eg. in EJB's the container may or may not create instance pools for say entity beans(though most of them do). Ultimately all is transparent to the user.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic