What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / nishant
Single thread model is generally not used because it
increases the burden and overhead on the container because
it has to make new instance of the servlet for each and and
every new request.
Sometimes we need to achive the Single thread model in
order to secure our web-application.
Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
Can servlet have a constructor ?
Is servlet thread safe?
What are the differences between servlet context vs servlet config?
Write a servlet to upload file on server.
How do you load an image in a Servlet?
What is servlet attributes and their scope?
How we can create war file in servlet?
What are all the advantages of servlet over cgi?
Can we use threads in Servlets?
Why are servlets used?
What is new in ServletRequest interface ? (Servlet 2.4)
Which is better jsp or servlet?
What are the important functions of filters?
When servlet is loaded?
What's the use of servletcontext?