Question d’entretien chez Qualcomm

What is the difference between mutex and semaphore?