Forums Register Login

Hand-over-hand Locking.

+Pie Number of slices to send: Send
I am trying to decide on my record locking technique and the "hand-over-hand locking" method presented in Monkhouse's book seems to fully fulfill word for word my following assignment requirement:

"If the specified record is already locked, the current thread gives up the CPU and consumes no CPU cycles until the record is unlocked."

Do any of you know whether there would be another way to fulfill this requirement? I am just a bit worried that this technique might be considered too complex for a junior developer to understand. Anyone out there used this famous "hand-over-hand" locking method and obtained the magical 80/80 score?

Thanks for all replies.

Fred
Can you smell this for me? I think this tiny ad smells like blueberry pie!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1236 times.
Similar Threads
B&S: Passed 373/400
Locking -> No wait/notify needed?
Locking
Bodgitt & Scarper 2.2.3 (Locking & Unlocking)
Starting SCJD
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:26:38.