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 are the functions of an intercepting filter?
What is the servletconfig object?
What do you mean by cgi and what are its drawbacks?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is the functionality of actionservlet and requestprocessor?
What is servlet? Explain
What are the different types of servlets?
What is servlet and its use?
Does servlet have main method?
Which java application server is the best?
What is servlet in web technology?
What do you mean by request dispatcher in servlet?
What is war file?
Difference between java beans & servlets?
What are the uses of servlets?