日期:2014-05-17 浏览次数:21037 次
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);
}