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...

when the several requests comes to server..how it manage
the requests

Answer Posted / goutham

When several requests comes to the server,I am assuming here
the requests coming to the same servlet,then the
webcontainer sees whether the Servlet is instantiated if it
is not the servlet is instantiated (only for the first time)
then a thread is spawned for each request and assigned to it.

*servlets does not implement singlethreadmodel , this
interface is depricated and hits the performance very
badly..instead of singlethreadmodel you can use sychronized
blocks(not methods)

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet lazy loading?

1114


Explain the methods of request dispatcher in servlet?

989


What is Client-Server Computing?

2355


Should I override the service() method?

1044


What is getservletcontext?

989


What is lazy loading and what is Generic Servlet Class?

1027


What do you mean by web applications?

1121


What is SingleThreadModel interface?

1092


How to generate the server side programming and the advantages of it over the other languages?

943


Explain the servlet context.

1067


What is servlet instance?

991


What is generic servlet class?

1013


What is the use of httpservletresponsewrapper?

914


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1029


Is tomcat a servlet container?

983