In a producer-consumer scenario, also known as Bounded-Buffer problem, what would be the most appropriate synchronization primitive to ensure that the consumer waits when the buffer is empty?
64.3k questions
77.9k answers
244k comments
80.0k users