SRV.2.2.1 Note About The Single Thread Model
The use of the SingleThreadModel
interface guarantees that only one
thread at a time will execute in a
given servlet instance’s service
method. It is important to note that
this guarantee only applies to each
servlet instance, since the container
may choose to pool such objects.
Objects that are accessible to more
than one servlet instance at a time,
such as instances of HttpSession, may
be available at any particular time to
multiple servlets, including those
that implement SingleThreadModel.
It is recommended that a developer take other means to resolve those issues instead of implementing this interface, such as avoiding the usage of an instance variable or synchronizing the block of the code accessing those resources. The SingleThreadModel Interface is deprecated in this version of the specification.