Pergunta de entrevista da empresa Handshake

What is the difference between a semaphore and a mutex?