Frans,
For example, the lock method should check if the record it had been waiting for has been deleted whilst it was waiting. (Hint: failing to do this is a strong candidate of the source for the infamous 44/80 locking score.)
Is that so?? - my implementation is as follows:
1.Wait for a lock on a record.
2.If the record is free, acquire the lock.
3.check for record validilty and if it still exists, do the update.
4.Release the lock?
Can you explain how would the case of not checking record validity (whether it is deleted or not) before locking, will be wrong in a real time situation?
Regards,
Muthaiah.
SCJP 1.6, SCJD, SCWCD, SCBCD.
Be nice to people on the way up cos, you'll need 'em on your way down - From somewhere I can't remember!