Wednesday, March 24, 2004 08:56 PM
what is single thread model
Re: what is single thread model
Thursday, March 25, 2004 04:41 PM
The SingleThreadModel is an interface that was initially designed to try and make Thread synchronization available in servlets. The idea was that servlets that implemented SingleThreadModel could have one thread executing an instance of the servlet at any given time. The problem arises in the way that servlet containers are given the freedom to instantiate more than one instance of a servlet in order to handle load. This in and of itself made SingleThreadModel useless. There were other reasons not to use this interface. But that's a simple 10000 foot view of the issue with this interface and what it is.
Thursday, March 25, 2004 05:50 AM
Forget about it. It was a mistake, so they have now marked it "deprecated", and it will be removed in some future version of the API.