Pergunta de entrevista da empresa onsemi

What is difference between mutex and semaphore?