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

How the typical servlet code look like ?

627


What is load-on-startup in servlet?

574


What are the kinds of http requests?

596


What’s the difference between genericservlet and httpservlet?

515


What is a servlet-to-servlet communcation?

633






What is the advantage of Servlets when compared with other server side technologies?

1847


Define servlet mapping?

648


How servlets are deployed in java?

534


Why is Servlet so popular?

604


Explain in brief the directory structure of a web application?

556


How do servlets work?

524


What's the advantages using servlets than using cgi?

547


What is meant by session? Tell me something about httpsession class?

590


What is the life-cycle of servlets?

624


Why are http servlets used in programming?

537