Walmart Global Tech interview question

Difference between mutex and semaphores, deadlock, starvation.