Blue Byte interview question

Explain a deadlock and race condition.