I have a C # .NET application that needs to report 4,000 to 40,000 connected devices to complete a task right away (or as close as possible to a simultaneous one).
The app works well; however, I am not satisfied with the results. In an ideal world, as soon as I send a command, I would like all devices to respond simultaneously. However, it seems that there is a delay, since all the threads that I created, unwind and complete the task.
I used ThreadPool.NET 4.0, created my own solution using custom threads, and I even tweaked the existing ThreadPool to allow multiple threads to run at the same time.
I still need better performance, which is why I am here. Any ideas? Comments? Sentence? Thank.
-Shaun
I add that the application notifies these "connected devices" of the need to listen to audio in a multicast address.
source
share