Domanda di colloquio di Arm

What is the difference between a mutex and a semaphore?