Good day!

c # .net 3.5

There are several streams that find errors independently of each other, I need to implement such a thing - so that these streams put the data somewhere and then with another stream I retrieved it from there and how it was processed. What do you advise?

1 answer 1

Two streams add the errors found to some ConcurrentCollections, and one-third the thread retrieves their output.

Your task is the task of the postovshik and consumer BlockingCollection , but it appeared only in 4.0, and you need 3.5.

For net 3.5 I can advise using Task Parallel Library for .NET 3.5