Domanda di colloquio di NVIDIA

How to avoid deadlocks? Difference between thread and process?