educative.io

I think the textbook here is wrong about the behavior of cv.wait(lock)

when the predicate is evaluated to be true, the lock should not be released.