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


Please Help Members By Posting Answers For Below Questions

What is servlet name in web xml?

553


Why servlet is faster than jsp?

563


What is http servlet in java?

560


Which method is called when reference variable is passed in system.net?

1830


What are the functions of an intercepting filter?

488






What is java servlet session?

528


What is the difference between Servlets and Applets?

547


What is servletconfig?

546


What is the use of servlet context?

530


Explain in brief the directory structure of a web application?

568


What is the dispatcher servlet?

512


What is life cycle of Servlet?

605


How do I support both get and post from the same servlet?

696


Which interface should be implemented by all servlets?

699


List some life cycle methods of a servlet.

590