What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / yuvraj singh
SingleThreadModel is a marker interface. It is used to ensure that servlet handle only one request at a time.
Servlets can implement SingleThreadModel interface to inform the container that it should make sure that only one thread is executing the servlet’s service() method at any given moment.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is the default http method in the servlet?
How we can call a jsp from the servlet?
What do you mean by request dispatcher in servlet?
Why do we need a constructor in a servlet if we use the init method?
When Servlet is unloaded?
What are all the advantages of servlet over cgi?
What are common tasks performed by Servlet Container?
What do you mean by scope object and what are its types?
What is the need of session tracking in web application?
What is servlet in simple terms?
What is http servlet? Explain with the help of an example.
What is servlet attributes and their scope?
Is it good idea to create servlet constructor?
List some life cycle methods of a servlet.