Zynga interview question

Explain atomicity and deadlocks