Zenith Infotech Interview Question

How to resolve a dead lock?