Hi,
I have used conventional Synchronization technique for my locking in my assignment. I used Roberto's tool for verifying my locking and it is running normally but with
RecordNotFoundException . I think this behaviour is normal and expected
Does it mean my locking strategy work fine? My requirement says
Any attempt to lock a resource that is already locked should cause the current thread to give up the CPU, consuming no CPU cycles until the desired resource becomes available.
To meet this requirement, I use
wait() in lock method and also use
notifyAll in unlock method. Does it sound good ? or Am I doing something different? Is there any solution to verify the above requirement?
PS: Thanks to Roberto's for his tool. It's
sat