I am revising an old thread .
I want to start a bunch of threads, each of which performs the same task, and I know in main () when everyone finishes, and if it was successful or unsuccessful.
The proposed solution was to use ConcurrentQueue, but other posts recommended using the BackgroundWorker Class or thread pool.
Is there a definitive answer?
Again, all threads execute the same code and have a pass / fail result. I want to start more than there are threads available, and as soon as one thread ends, I started another option - I want tehm to maximize the strength of remote systems (instead of stressing my local PC with too many threads, I will need experiment to determine the optimal number of threads).
VB.NET is for a specific answer, but general thread advice is also welcome.
source share