raja singh kumar
posted 11 months ago
I dont know why my consumer/producer program is not working. I have a producer which uses a for loop to produce 10 values and a consumer to consume the value but after the first element is produced the program keeps running forever without any output. I dont know what is the problem. What exactly am I doing wrong? How do I fix the issue?