Pergunta de entrevista da empresa UBS

What Are Locks & what is Deadlock condition?