Start multiple threads simultaneously RRS feed

  • Question

  • Hello,

    I need to start all threads simultaneously or I want to start all threads in 1 second. I cant use a loop and start threads one by one. Is there any way to do this in C# 2.0?

    Basically I want to send multiple concurrent requests to web server. So I want to start off all threads simultaneously to check the load of web server.




    Friday, January 25, 2013 4:29 AM


  • Then you might use another set of threads to start your threads. You can use Parallel.For or Parallel.ForEach.

    I hope this helps.

    Please mark this post as answer if it solved your problem. Happy Programming!

    Friday, January 25, 2013 5:59 AM