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 / yuvraj singh

SingleThreadModel is a marker interface. It is used to ensure that servlet handle only one request at a time.

Servlets can implement SingleThreadModel interface to inform the container that it should make sure that only one thread is executing the servlet’s service() method at any given moment.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet instance?

176


If my browser does not support cookie, and my server sends a cookie instance what will happen?

218


What is the servlet?

263


Which method of the httpservletrequest object is used?

165


What is meant by servlet? What are the parameters of the service method?

216






How would you create deadlock on your servlet?

231


What is meant by Servlet? What are the parameters of service method?

231


Write a servlet to upload file on server.

233


Why the container loads server at the application startup and how?

225


What is the use of servlet wrapper classes?

269


If some new data has entered the database, explain how can a servlet refresh automatically?

237


What is the procedure for initializing a servlet?

217


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

214


How do we share data using 'getservletcontext ()?

197


Name the packages that work with servlet?

199