C#For循环中的多线程是按for循环的顺序执行的吗?
本帖最后由 wjx515628 于 2013-10-18 14:33:11 编辑
for (int i = 0; i < 100; i++)
{
Thread th = new Thread(new ParameterizedThreadStart(method));
th.Start(i);
}
for (int i = 0; i < 100; i++)
{
int temp = i;
Thread th = new Thread(new ParameterizedThreadStart(method));
th.Start(temp);
}