AdtG
AdtG

Reputation: 27

Will BlockingCollection or TPL will be suitable for multiple producer-consumer scenario

Will only BlockingCollection or TPL with BlockingCollection will be suitable for this case: program will gather data from multiple socket streams (will act as client). Get Packet from socket, forward it to the central processor. Central processor will do calculations, reply back to socket threads and will tell GUI thread to update the GUI. Central processor, socket threads and GUI thread all will need queue. The Data flow is from socket threads to GUI through central processor. I am not sure of using TPL here. So need some guidance.

Upvotes: 0

Views: 57

Answers (0)

Related Questions