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

Answer Posted / niranjanravi

Single Thread Model ensures that servlet handles only one
request at a time.When YOUR CLASS IMPLEMENTS THIS INTERFACE
WE ARE GUARENTEED THAT no two threads run simultaneously in
service() method.
this is a marker interface which contains no methods on its
own.

Is This Answer Correct ?    53 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can servlet have a constructor ?

595


Why is init() method is used in servlets?

556


How do servlets work?

536


What is the difference between genericservlet and httpservlet

584


What do you mean by httpservlet?

563






Which httpsession object is used to view and manipulate information about a session?

729


What is called servlet mapping?

556


What do you mean by filter in servlet?

538


Which http method is said to be non-idempotent and idempotent?

604


What is difference between jsp and servlet?

644


What are the differences between the servletconfig interface and the servletcontext interface?

582


What are the features added in Servlet 2.5?

768


What is meant by a web application

540


What's the difference between authentication and authorization?

548


What is the difference between context parameter and context attribute?

531