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

How do I know if java is running on linux?

1125


What are the difference between RMI and Servlets?

1563


What is string tokenizer?

1083


What are Servlets?

1117


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

1043


How will two or three servlets interact or communicate with each other?

1450


Why jsp is better than servlet?

1033


What do you mean by request dispatcher in servlet? Also explain its methods.

1149


What is difference between cookies and httpsession?

1095


Why is init() method is used in servlets?

1028


How forward () method is different from send redirect () method?

969


What is a web container and what is its responsibility?

981


How to notify an object in session when session is invalidated or timed-out?

1086


How a servlet is unloaded?

1091


What is new in ServletRequest interface ? (Servlet 2.4)

1011