as many servlet threads as are needed to handle the request. servlet specification jsr-315 clearly defines the web container behavior in the service (and doget, dopost, doput etc.
interface is currently deprecated, excerpts from the java doc:Deprecated. servlet would have to go through the same synchronized monitor.
to handle the requests, the servlet developer must make adequate provisions for concurrent processing with multiple threads in the service method. a life cycle is pointless for a counter or other servlet.
.1 note about the single thread model):"the use of the singlethreadmodel interface guarantees that only one thread at a time will execute in a given servlet instance’s service method. suppose 10 users are accessing same servlets, will it creates 10 instances or only limited instances creates.
simply implementing the singlethreadmodel, this behavior can be changed:"however, for a servlet implementing the singlethreadmodel interface, the servlet container **may instantiate multiple instances** to handle a heavy request load and serialize requests to a particular instance. and serves only to flag the servlet as wanting the.