UBS Interview Question

What Are Locks & what is Deadlock condition?