Domanda di colloquio di Accenture

Write a program for deadlock &how to resolve that