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
Explain the difference between generic servlet and http servlet?
How can we upload the file to the server using servlet?
What is servlet instance?
Tell us something about servletcontext interface.
What is java servlet?
Write a program to show the functionality of servlets.
What is a web application and what is it’s directory structure?
How to get the current httpsession object?
Describe servlet?
Can we use threads in Servlets?
How the servlet is loaded?
Explain the concept of ssi ?
How to create war file?
What are the phases of servlet life cycle?
How many objects of a servlet is created?