Pergunta de entrevista da empresa Cardinal Peak

What are the differences between mutexes and semaphores?