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

Answer Posted / sateesh.b

SingleThreadModel is a taged interface i.e. an interface
with out methods.
If any servlet is implimenting singlethreadmodel interface
that servlet is said be thread safe i.e. for each request
to that servlet one new object will be created in the server

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the type of method for sending request from http server?

594


Why is httpservlet declared abstract?

582


What is servlet container. how it works?

614


Define the life cycle of a servlets.

572


Why servlet is mostly used?

745






What is the difference in between the httpservlet and generic servlet?

606


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

610


What are the different mode that servlets can be used?

552


How is a servlet implemented in code?

566


What are the functions of an intercepting filter?

488


What is the major difference between context parameter and context attribute?

595


Name the different ways of session tracking.

567


Why is a constructor needed in a servlet even if we use the init method?

604


Are Servlets Thread Safe? How to achieve thread safety in servlets?

558


What is servlet configuration?

527