I'm currently developping something where I need to use threads.
Here's the basic scenario. I have a WebService requests which need to
launch a few threads and wait for them to complete before returning a
responses. Bascically, each thread will make a request to our old C++
server and wait for the answer before completing. Also, the WebService
request thread will wait until all the server requests thread are
completed ( or timed-out) before returning a response.
>From what I've gathered, I could either use the Thread class or theThreadPool class to realize this. To me, it seems the ThreadPool would
be easier since I could simply tell it to start all my request and
wait for them to complete. Still, is there anything that I'm missing
here and that might make it not a good idea to use threadpool. I'm new
to C# threads and want to make sure I'm not overlooking something.
Thank you
Simon
P.S. I know that threadpool is limited to 25 threads by default and I
don't think this will create problems with what I want to do.