That depends on how much work is done inside the synchronized block
compared to the amount of work that is done outside this block.
The more is done inside the block the more the server will slow down
when concurrent requests hit blocks that are synchronized on the same 
object.

> -----Ursprüngliche Nachricht-----
> Von: Vernon Wu [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 20. September 2002 16:42
> An: Tomcat Users List
> Betreff: Re: AW: How can I achieve thread safe for context attributes?
> 
> Thanks Ralph for the solutation. I, however, wonder whether 
> the server will be slow down a lot after the servlet context 
> is synchronized for the operation. The context is the center 
> object in the servlet.
>  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to