← Nvidia questions

Mutex vs semaphore, shared-resource issues and deadlock

Filed under Nvidia

What is the difference between a mutex and a semaphore? What problems occur when two threads access the same resource, what are the conditions for deadlock and how do you avoid it?

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Nvidia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.