Netcracker Technology Interview Question

Write a Thread implementing producer-consumer scenario.