tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Schoett <>
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.


Oliver Schoett

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message