I need to suggestion on this case studies on C++.
I have taken Queue where multiple Thread 20 Producer thread is writing on it.there is single Consumer thread which will Read from the queue and process it. I am planning to use critical section and Semaphore to achieve synchronization.
AddTail-Adding message in the Queue. RemoveHead-Remove data from Queue.
I have restricted the queue length to 10.
Crtical section will protect wrting or/Reading problem. Semaphore will synchronized access to the queue.
Let me know any other POssible solution on this.