Have you used threads in Servelet

Showing Answers 1 - 7 of 7 Answers

veeru

  • Nov 12th, 2005
 

no

  Was this answer useful?  Yes

ramesh

  • Nov 14th, 2005
 

Yes ,single thread module

  Was this answer useful?  Yes

ramesh

  • Nov 14th, 2005
 

Yes ,single thread module

  Was this answer useful?  Yes

If we use HttpServlet, ByDefault It is multithreaded means multiple users can access the same instance of servlet.But if we implement SingleThreadModel interface it can be used by only one user and everytime when a new user access the servlet a new instance of servlet is created.This way a pool of servlet instances is maintained in web container.

  Was this answer useful?  Yes

avi

  • May 19th, 2006
 

that third fellow is totally wrong.we can implement by SingleThreadedModle interface

  Was this answer useful?  Yes

sridhar

  • Jul 19th, 2007
 

Web container automatically creates a thread for each request. We are not using explicitly but internally it uses multi threading
 

plz give me the response

  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