This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Hand-over-hand Locking. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Hand-over-hand Locking." Watch "Hand-over-hand Locking." New topic
Author

Hand-over-hand Locking.

Frederic Thierry
Greenhorn

Joined: Apr 16, 2006
Posts: 22
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
 
wood burning stoves
 
subject: Hand-over-hand Locking.
 
Similar Threads
Locking -> No wait/notify needed?
Bodgitt & Scarper 2.2.3 (Locking & Unlocking)
Starting SCJD
B&S: Passed 373/400
Locking