标签: c# multithreading .net-4.5
这是我的代码:
foreach (string s in ls) { Thread thread = new Thread(delegate() { thread_inside(s, k); }); thread.Start(); } timer_between_freuqently_1.Enabled = true;
在运行foreach之外的代码之前,我怎么能确定所有thread_inside()方法都已完成?