Zynga Interview Question

Explain atomicity and deadlocks