This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I tested LockManager by creating 60 threads that try to lock and unlock the same record concurrently. Are there any other suggestions on how to test this?
Have these 60 threads to modify the same record in a loop, -- say each thread books a flight 20 times in a row. At the end of the test, the seat count should be reduced by exactly 1200. You may also want to put an artifical sleep() in both lock() and unlock() to amplify the problem, if any. Eugene. [ January 18, 2003: Message edited by: Eugene Kononov ]