Should I use the SingleThreadModel interface or provide explicit synchronization to make my JSP pages and servlets thread safe?
<%@ page isThreadSafe="false" %>
Although the SingleThreadModel technique is easy to use, and works well for low volume sites, it does not scale well. If you anticipate your users to increase in the future, you may be better off implementing synchronization for your variables. The key however, is to effectively minimize the amount of code that is synchronzied so that you take maximum advantage of multithreading.