NVIDIA interview question

Implement a reader-writer locking system.