Pergunta de entrevista da empresa Arm

What is the difference between a mutex and a semaphore?