tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vernon Wu <vern...@gatewaytech.com>
Subject Re: AW: AW: How can I achieve thread safe for context attributes?
Date Mon, 23 Sep 2002 11:46:46 GMT
Ralph,

Thanks again for your information.

Before I posted this question, I was thinking about how to make the object thread safe, but
not the other object that it is 
contained thread safe. The approach works. I just help it would drag the performance since
the application can have a 
very large number of users.

Vernon

9/22/2002 11:24:09 PM, "Ralph Einfeldt" <ralph.einfeldt@uptime-isc.de> wrote:

>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:vernonw@gatewaytech.com]
>> 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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message