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
Why doesn’t a servlet include main()? How does it work?
What are the different session tracking techniques?
How is an application exception handling is done using a servlet?
Differentiate between the web server and application server?
what is servlet chaining?
Which exception is thrown if the servlet is not initialized properly?
What is cookie in servlet?
What are the functions of an intercepting filter?
Is servlet a framework?
What are the supporting protocol by HttpServlet ?
What are sessions in servlets?
What is url encoding and url decoding
How to find whether a parameter exists in the request object?
Why do we use sendredirect() method?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?