I\'m currently writing a multi-threaded C program that uses a variable number of producer/consumer threads to retrieve/consume matrices from a bounded buffer. I\'ve used a condi