NVIDIA Interview Question

Discribe mutual exclusion, how to implement it