Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling Multiple threading in servlet

 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

Can anybody please explain me by conceptually how to handle multiple threading in servlet...

Thanking you.

Best Regards;
Brijesh Shah
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Hibernate Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Brijesh,
Each incomming request to server in turn converted into separate executing thread for a respective single servlet instance.
What you want to do using multiple threading in servlet?
 
Adwin Lorance
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True .. As Ninad says , Container is responsible to create Threads and give each request to a new Thread. Or else pick from a pool of servlet instances and let it handle a request.

What did you want to do in a multi threaded environment ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic