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
What are the different methods involved in generic servlet?
What is lazy loading and what is Generic Servlet Class?
What are the servlet events?
What is the use of servlet context?
Which are the different ways you can communicate between servlets?
How do I know if java is running on linux?
How do you get the ip address of the client in servlet?
What is load-on-startup in servlet?
What is servlet and its advantages?
What is servlet collaboration?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is the need of servlet filters?
What is context in servlet?
Can we override destroy method in servlet?
What is url encoding and url decoding