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

How are filters?

1039


What is servlet and its advantages?

1048


What are life cycle methods of a servlet?

1055


What is the directory structure of a war file?

1168


Why don't we write a constructor in a servlet?

1050


What are the kinds of http requests?

1037


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

1001


What are the functions of an intercepting filter?

946


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

969


What do you mean by chaining in servlet?

1037


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1062


What is the process to implement doget and dopost methods?

992


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1099


How do you communicate in between Applets and Servlets?

1063


What is the use of servlet wrapper classes?

1182