Domanda di colloquio di Garmin

What is the difference between a mutex and a semaphore?