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

Explain the difference between generic servlet and http servlet?

541


How can we upload the file to the server using servlet?

544


What is servlet instance?

544


Tell us something about servletcontext interface.

628


What is java servlet?

612






Write a program to show the functionality of servlets.

555


What is a web application and what is it’s directory structure?

584


How to get the current httpsession object?

653


Describe servlet?

578


Can we use threads in Servlets?

654


How the servlet is loaded?

599


Explain the concept of ssi ?

593


How to create war file?

617


What are the phases of servlet life cycle?

610


How many objects of a servlet is created?

792