I read that the web server instantiates servlet once and then calls its doGet() and doPost() methods for each requests to this servlet.Now if there are 100 simultaneous requests to this servlet and the web server has called doGet() for one such request, will it block other 99 requests until the called doGet() method returns?
I read that the web server instantiates servlet once and then calls its doGet()
Share
No, it won’t, it would just call doGet() on the same servlet instance in 100 different threads. The incoming requests would be blocked if there are no idle threads to process the requests.