Pergunta de entrevista da empresa Walmart Global Tech

Difference between mutex and semaphores, deadlock, starvation.