Question d’entretien chez Peraso

How to use lock to implement a semaphore?