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
Whether thread can be used in servlets?
What is the purpose of dispatcherservlet properties?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is war file?
What exception should be thrown when servlet is not properly initialized?
What are common tasks performed by Servlet Container?
Which method is called when reference variable is passed in system.net?
how the HTML data stored in web server?
What is ServletConfig object?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What do you mean by session tracking?
How do I know if java is running on linux?
How the servlet is loaded?
What is a web application and what is it’s directory structure?
What are some disadvantages of storing session state in cookies?