posted 22 years ago
Reading the servlet spec will clear up a lot of your questions.
Specifically, I've copied some of it here
SECTION SRV 2.2 So that describes how many instances of your servlet are hanging around. In most cases, just the one. So concurrent requests must be handled by one servlet, and this is were multiple threads comes in.
From SECTION SRV.2.3.3.1That was the long answer. The short answer is: The container is doing the threading, not you. You simply need to write your servlet so that it can handle these multiple threads.