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

66 Views Asked by At

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.

0

There are 0 best solutions below