tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 3851] - SingleThreadModel ignored
Date Fri, 28 Sep 2001 11:11:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3851

SingleThreadModel ignored





------- Additional Comments From bojan@binarix.com  2001-09-28 04:11 -------
This is a very interesting report. Here is what the API documentation says about
SingleThreadModel interface:

-------------------------------
If a servlet implements this interface, you are guaranteed that no two threads
will execute concurrently in the servlet's service method. The servlet container
can make this guarantee by synchronizing access to a single instance of the
servlet, or by maintaining a pool of servlet instances and dispatching each new
request to a free servlet. 
-------------------------------

I think Tomcat is using the pool approach here, which means that the whole thing
is not always synchronised, since it doesn't have to be. All that needs to
happen is that no two threads are executing the same service method
concurrently.

What am I missing here?

Mime
View raw message