Pergunta de entrevista da empresa MakeMyTrip

producer and consumer problem without using blocking queue. 1) if producer and consumer are single. 2) if both are multiple write program for the same.