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 differences between the servletconfig interface and the servletcontext interface?
Describe servlet?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
Explain the jar and war files in servlet?
What is the process to implement doget and dopost methods?
What do you mean by a filter and how does it work?
What is servlet api used for conneting database?
What is cookie? Why is cookie used?
What is url encoding and url decoding
What is new in ServletRequest interface ? (Servlet 2.4)
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is a servlet?
How can I send user authentication information while making URL Connection?
How do I support both get and post from the same servlet?
What is meant by session? Tell me something about httpsession class?