A test program solving the bounded buffer problem using posix mutexes/semaphores