NVIDIA interview question

Mutex vs Semaphore