NVIDIA Interview Question

Write a multi-threaded producer and consumer.