Question d’entretien chez Bloomberg

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