Qualcomm Interview Question

Difference between a mutex and a semaphore