ProducerConsumer Semaphore n = new Semaphore(0) Semaphore mutex = new Semaphore(1) Semaphore e = new Semaphore(sizeOfBuffer)