This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
If we dont implement SingleThreadModel, then there will be only one instance of the servlet which will serve all the request.
If we implement SingleThreadModel, and we have to server 5 request simultaneously, only then we can do the configuration of creation of more than one instance of the servlet.
essentially if the Servlet does not implement SingleThreadModel then the server considers it to be thread safe, and thus all requests the go to the same instance of the servlet in different threads. This means, that at any one point in time, there may be more than one thread executing through the same servlet.
HTH
Mat
Latha Kota
Ranch Hand
Joined: Mar 13, 2003
Posts: 35
posted
0
Thanks Kapil and Mat. I now understood it better. Latha SCJP 1.4