Suppose you call wait instead ofawait on a condition object in theBoundedQueue class that uses aReentrantLock. Will the call compile?What will it do?
Expert Answer
Answer to Suppose you call wait instead of await on a condition object in the BoundedQueue class that uses a ReentrantLock. Will t…