Read more about java.util.concurrent.locks.Lock at http://docs.oracle.com/ (Everything there is in Javadocs!) Write the implementation of the someMethod() method: 1. try to acquire the lock; 1.1. if the lock is busy, then call the actionIfLockIsBusy() method; 1.2. if the lock is free, then.
The whole world is a comedy
You must be signed in to leave a comment
20 February 2022, 14:26
Directions will trip you up here. A point of clarification to avoid losing a 1-try success on this just from misreading the directions, as I did: Look carefully at the numbering of the conditions. When it says "no matter what" it doesn't really mean that, it means it only within the context of step 1.2.