embedUR systems interview question

difference between mutex and semaphore