Write a bounded buffer shared by producer and consumer threads — blocking when full or empty, without busy-waiting.
Write a bounded buffer shared by producer and consumer threads — blocking when full or empty, without busy-waiting.
Opens with the full question.