Ciena interview question

What is deadlock? How do you prevent it