Subj : many producers/one consumer To : comp.programming.threads From : Keith O Date : Wed Feb 16 2005 11:51 pm Hi, I have a many producers(threads) that add data to a queue and one consumer(thread) that reads from the queue and writes the data to a database. What is a good algorithm to handle this sort of thing. The thing that's bugging me is when the producers finish producing data and exit, I want the consumer to know that it should stop checking for new data and exit. I'm using the C# for this. .