This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test LockManager more

 
Aruna Raghavan
Ranch Hand
Posts: 194
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
Thanks very much,
Aruna.
 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A touger test is to modify random records with random values - flund me some bugs
I also strated multiple programms on multiole computers just to be sure...
Bern
 
Juan Ec
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i created an small multithreaded app to launch clients with requests and then i used jprofiler (ej-technologies) and optimizeit (borland) to monitorize and test the server behaviour and performance
 
John Smith
Ranch Hand
Posts: 2937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic