Pergunta de entrevista da empresa ERNI

[Tech] What is a deadlock and how do you create one?