Pergunta de entrevista da empresa WDC

Difference between semaphore and mutex.