Pergunta de entrevista da empresa EmbedIT

What is deadlock and how to solve it ?