Magna International interview question

Difference between Mutex and semaphore.