What is Single Threaded Model in Servlets? Explain this
with an example?

Answer Posted / rajesh r

Hi

The SingleThreadedModel has been deprecated from Servlet
specification due to a performace hit.

Please donot use this in future use Synchronized block if
you really need to protect your Attributes from cuncurrent
access.

Thanks
Rajesh
rajeshr1988@gmail.com

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you create a session in servlet?

596


What are different ways for servlet authentication?

563


How servlets are deployed in java?

546


Explain web container.

567


What is preinitialization of a servlet?

582






Explain jsessionid and when is it created?

597


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2234


Write a command to get actual path of a servlet to the server?

541


How can I send user authentication information while making URL Connection?

545


Is that servlet is pure java object or not?

644


What are the ways to handle multi-threading in servlets?

595


What are the advantages of Servlet over CGI?

662


What are the life-cycle methods for a servlet?

555


What is meant by a servlet?

604


What is servlet looping or chaining?

658