How do servlets handle multiple simultaneous requests?


The server has multiple threads that are available to handle requests. When a request comes in, it  is assigned to a thread, which calls a service method (for example: doGet(), doPost( ) and service( ) ) of  the servlet. For this reason, a single servlet object can have its service methods called by many threads at 
once.


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email