| Author |
Doubt in Servlet Request
|
Pratapchandran Ramakrishnan
Greenhorn
Joined: Jan 07, 2005
Posts: 5
|
|
Thanks to Nicholas Cheung , Anusorn Swasdee for the immediate response when compared to CGI - servlet create one instance for multiple requests. But for a single server if lakhs of requests are coming to the server then it is possible for the server to manage all these requests.
|
 |
Andrew Monkhouse
author and jackaroo
Marshal Commander
Joined: Mar 28, 2003
Posts: 10815
|
|
Hi Pratapchandran, Welcome to JavaRanch. We have many forums here, and we try and keep the focus of the forums to a specific area of interest. This particular forum (SCJD) is for those candidates who are attempting to become recognised as Sun Certified Java Developers. This certification does not use any J2EE technologies (so no servlets). Although some members of this forum may very well be able to answer your question, you would be better off asking about this in the Servlets forum. I have therefore moved this post to that forum. Regards, Andrew
|
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
|
 |
Jeroen Wenting
Ranch Hand
Joined: Oct 12, 2000
Posts: 5093
|
|
In fact, due to the architecture of the Servlet specification a servlet engine with its single instance of a Servlet in a single process can handle a lot more simultaneous requests on the same hardware than can a traditional CGI engine which uses a process for each request. By using multithreading instead of multiprocessing the CPU load (and possibly memory load as well though this is not a given) is reduced, allowing more requests to be processed in any given unit of time.
|
42
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
If you read all the threads from the last two weeks in both the Servlet and JSP forums, you will find this same conversation popping up all over the place. Different people are asking it and other, different people are answering it over and over. If the answer you got in this thread didn't do it for you, take a look at some of the others. Of course the best place to find answers to questions like this is not in a user forum but in the specs themselves. http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: Doubt in Servlet Request
|
|
|