Single-threaded mode should be used when you want to insure that no more than one request will be processed by the servlet at any one time. Using Single-threaded mode relieves you of the duty of being a good programmer and making sure your Servlet is thread-safe. I can't think of any situation that would require this type of behavior. In 99% of all cases you should take the necessary precautions and insure your servlet functions correctly in multi-threaded mode. This means not using class instance variables to store results and other such precautions.
Oh yeah, single-threaded mode also serves to significantly decrease your performance. Wushutwist
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.