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


Please Help Members By Posting Answers For Below Questions

Can servlet have a constructor ?

585


Is servlet thread safe?

509


What are the differences between servlet context vs servlet config?

570


Write a servlet to upload file on server.

588


How do you load an image in a Servlet?

645






What is servlet attributes and their scope?

588


How we can create war file in servlet?

649


What are all the advantages of servlet over cgi?

595


Can we use threads in Servlets?

636


Why are servlets used?

519


What is new in ServletRequest interface ? (Servlet 2.4)

564


Which is better jsp or servlet?

543


What are the important functions of filters?

584


When servlet is loaded?

581


What's the use of servletcontext?

669