A servlet that implements SingleThreadModel means that for every request, a single servlet instance is created. This is not a very scalable solution as most web servers handle multitudes of requests. A multi-threaded servlet means that one servlet is capable of handling many requests which is the way most servlets should be implemented. :SingleThreadModel means, it will create only one thread. Generally Servlets will work on multi thead base, for each request one thread will be created.
Category:Servlet Interview Questions
No comments:
Post a Comment