educative.io
I think the textbook here is wrong about the behavior of cv.wait(lock)
Courses
condition-variables__multithreading-condition-variables__modern-c-concurrency-get-the-most-out-of-any-machine
,
modern-c-concurrency-get-the-most-out-of-any-machine__rainer-grimm
Zhongya_Wang
July 27, 2020, 1:56pm
#1
when the predicate is evaluated to be true, the lock should not be released.