Domanda di colloquio di Cardinal Peak

What are the differences between mutexes and semaphores?