Domanda di colloquio di JIIT

what is the difference between mutex and semaphores