gjshah7254
9/14/2016 - 10:46 PM

Start a new thread in C# for a method

Start a new thread in C# for a method

Thread t = new Thread(methodName);          // Kick off a new thread
t.Start(); 
        
  private void methodName()
  {
    for (int i = 0; i < 10000; i++)
    {
        //CreateOrder();
        //Do something
    }
  }