What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / rajkumar
In Single Thread model multiple instances of Servlet class
is Created for every request and in MultiThread model thread
instance is created for every request.
Single thread model is used in case code safety.Performance
fo server is degraded when we use single thread as it
creates Servlet instance for every request where server
gives fast response in multi thread model.
Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is servlet name in web xml?
Why servlet is faster than jsp?
What is http servlet in java?
Which method is called when reference variable is passed in system.net?
What are the functions of an intercepting filter?
What is java servlet session?
What is the difference between Servlets and Applets?
What is servletconfig?
What is the use of servlet context?
Explain in brief the directory structure of a web application?
What is the dispatcher servlet?
What is life cycle of Servlet?
How do I support both get and post from the same servlet?
Which interface should be implemented by all servlets?
List some life cycle methods of a servlet.