... BlockingThread's are started, one for each record. The LockManager who tries to lock the database then joins all these threads, and then the LockManager has locked the whole database.
I think it's a nice solution - what do you think?!
[ December 11, 2002: Message edited by: Detlev Beutner ][/QB]
Hi Detlev,
Congratualations, great achievement!
Nice that you describe your solution in detail. But with regard with the total lock, I can think of one drawback: you start up 1 thread for every record in the database. A thread takes several Megabyte RAM initially, and also consumes other system resources like file pointers. So, if the database has enough records, the system will slow down or crash...
/Hugo.