Pergunta de entrevista da empresa Siemens

What is the difference between a mutex and a semaphore?