This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 ]