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
How the typical servlet code look like ?
What is load-on-startup in servlet?
What are the kinds of http requests?
What’s the difference between genericservlet and httpservlet?
What is a servlet-to-servlet communcation?
What is the advantage of Servlets when compared with other server side technologies?
Define servlet mapping?
How servlets are deployed in java?
Why is Servlet so popular?
Explain in brief the directory structure of a web application?
How do servlets work?
What's the advantages using servlets than using cgi?
What is meant by session? Tell me something about httpsession class?
What is the life-cycle of servlets?
Why are http servlets used in programming?