Synechron Interview Question

How multiple requests will be handled by single servlet instance

Interview Answer

Anonymous

Nov 15, 2017

Web app container creates separate thread for each request coming in. Then each thread calls service() method of servlet with different request and each thread returns corresponding response to container which in turn reaches client. This is how multiple requests are handled by a servlet.

1