Pregunta de entrevista de UBS

What Are Locks & what is Deadlock condition?