Pergunta de entrevista da empresa Bloomberg

Implement a mutex. Using binary semaphore, implement an n-counting semaphore.