|
Helping ordinary people create extraordinary websites! |
Eye on performance: Wait leaksBy Jack Shirazi & Kirk Pepperdine2005-04-28
The Final Word Interestingly, we don't believe there is a way of spotting wait leaks automatically, unless only wait leak threads are left (as in our simulation, but an unlikely situation in a real application). In practice, it would be very difficult in most cases to determine that the code which is supposed to call notify() will definitely never execute again for the monitors that are locked. So manual inspection may be the best we can do -- and that is our aim with this article, adding another tool to your performance-tuning arsenal. If you come across a wait leak, we're sure you will spot it sooner or later, and we hope that with the help of this article it will be sooner. Tutorial Pages: » Gain a Better Understanding of this Curious Race Condition » Wait Leaks » Simulating a Wait Leak » Spotting a Wait Leak » The Final Word » Resources First published by IBM developerWorks |
|