private void button2_Click(object sender, EventArgs e)
{
Thread thread = new Thread(count);
thread.Start();
MessageBox.Show("线程");
}
void count()
{
for (int i = 0; i < 999999999; i++)
{
}
}
count() 是方法对吧?可是看Thread thread = new Thread(count);,count()又应该是一个 委托,这怎么解释呢? |
|