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
How can we perform any action at the time of deploying the project?
Explain the methods of request dispatcher in servlet?
What are the differences between servlet context vs servlet config?
Explain session tracking and its importance?
What is the difference between using getSession(true) and getSession(false) methods?
What is the difference between the http servlet and generic servlet?
What are the benefits of using servlet over cgi?
Which is the methods of generated servlet?
What are the life cycle methods of a servlet?
What is preinitialization of a servlet?
Explain the difference between servletconfig and servletcontext in servlet?
What is ServletContext object?
What is a servlet engine?
Explain the war file?
What is servlet container?