Pergunta de entrevista da empresa Teradata

How to resolve and avoid deadlock in software program