Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Whether we can get deadlock situation in servlets?

1064


What do you mean by the servlet chaining?

1072


Why are http servlets used in programming?

1004


What is url encoding and url decoding

1144


Why HttpServlet class is declared abstract?

1210


What is Servlet API used for connecting database?

1094


Why is init() method is used in servlets?

1023


Is servlet synchronized?

1078


What is dispatcher servlet?

1061


Why do we have servlet filters?

1019


What is the difference between a generic servlet and http servlet?

989


What are the new features added to servlet 2.5?

1089


Who is responsible for writing a constructor?

1255


Explain the difference between a web server and a web container?

994


What is the servletconfig object?

1035