Frage im Vorstellungsgespräch bei NVIDIA

How to avoid deadlocks? Difference between thread and process?