Oracle Interview Question

What is a deadlock? What is a locking mechanism? How does distributed databases get into deadlock?