Does anyone have any good resources that show creating an unlimited number of threads in C # without using ThreadPool?
I understand that you can ask the architecture of a system with hundreds or thousands of threads, so let me explain the task in case the CPU / OS makes this effort controversial.
I have about 2500 URLs that I need to check. Some of them are very slow: more than 10 seconds to answer. In any case, network latency is about 99.99% of each operation.
I would like to test all 2500 URLs as quickly as possible.
I hooked up a test that checks each of them in its thread.
The problem is that I'm using ThreadPool, and I think the default limit is 25, so no good. I need to manage them manually. Am I here to have lunch here?
I understand that CPU / OS is also likely to limit the number of parallel threads per processor, but I am sure this limit will be WAY above 25.
As for the architecture, I understand that I can block the entire cell if I need to connect 2 thousand HTTP streams, but this is an administrator task that runs in isolation and can take as many resources as available.
Thanks for your ideas.
Scott source
share