Cognizant interview question

producer consumer problem in os