Zenith Infotech interview question

How to resolve a dead lock?