tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Schoett <oliver.scho...@capgemini-sdm.com>
Subject Re: jvm cowardly refuses to print a thread dump
Date Fri, 05 Dec 2008 14:45:46 GMT
Leon Rosenberg wrote:
>
> You should consider using synchronized lists :-) (for example Vector).
>    

Does not help :-)  If you do not put sync. brackets around

    Check some property (e. g., size());
    Do something according to the property value

you lose, because the property may have changed already when the second 
line is executed.

You need the sync. brackets to preserve the state between checking some 
property and acting on the result.

Regards,

Oliver Schoett


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message