I have a given list of URL's, and i make an HTTP web request object, and try to connect with it, i have an 'array' of url's, and i try to connect with each one. the objective is seeing which ones are out.
It already works, but one request only starts as soon as the last one ends, so it's quite a slow working, about two requests per second.
I was wondering if i should make about 5 threads working alongside in the background, that would make it 5 times faster, which is the desired speed (whithout overloading the shared internet band). But i have two problems:
1 - i don't even know IF it is the best solution for my problem. 2 - i've tried some times, but i'm new to .NET framework, and have never used multi-thread. so i don't know how i would do it easily.
I have a function start(), and it has a For that goes through all the url's checking existence.
data: VS 08, .NET 3.5, C#.
--[edit]--
Can anyone tell me (with code sample if possible) how to use five (not as many as possible) threads in backgroundworker ? what about starting right after the last processing ends ?