Operating Systems - Producer-Consumer Problem Using Semaphores
In a producer-consumer implementation using semaphores, a candidate writes code where the mutex is acquired after the 'empty' semaphore is decremented but released before the 'full' semaphore is incremented. What is the subtle bug in this approach?
