Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 the life-cycle of servlets?

220


How can we achieve transport layer security for our web application?

214


What are advantages of servlets over cgi?

208


What’s the difference between forward() and sendredirect() methods?

225


Write a simple servlet program to print the contents of html.

202






What is the element?

257


Explain web application directory arrangement?

211


How do cookies work in servlets?

201


Explain url encoding in servlet?

219


Which exception is thrown if the servlet is not initialized properly?

184


What's the use of servletcontext?

198


Define the lifecycle for executing a jsp page.

229


How are filters?

205


How can the session in servlet can be destroyed?

238


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

246