int item_to_produce, curr_buf_size; int total_items, max_buf_size, num_workers, num_masters; int *buffer; void *consume_requests_loop(void *data) { int thread_id