Amdocs interview question

Create program to generate deadlock and fine grained locks