I have two methods below. Can you please tell me what each method do in brief and how does the two methods differ from each other ?
public void Method1() { foreach (string symbol in arrList) { Task.Factory.StartNew(() => DoWork(symbol)); } } public void Method2() { Task.Factory.StartNew(() => { foreach (string symbol in arrList) { DoWork(symbol); } }); }
StartNew?