Pergunta de entrevista da empresa embedUR systems

What is the difference between mutex and semaphore?