Have you used threads in Servlet

Showing Answers 1 - 6 of 6 Answers

Servlets dont run in their own threads. Instead, when a request comes in, the app server removes a thread from a master thread pool and uses it to drive the servlets service method. Once the service method has returned, the thread is returned to the thread pool.

  Was this answer useful?  Yes

Prasad MN

  • Dec 28th, 2012
 

We can implements SingleThreadModel in Servlets Class.

Code
  1. import javax.servle*.;

  2. public class Simple implements SingleThreadModel

  3. {

  4.   }

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions