作业帮 > 综合 > 作业

c#下面线程代码中Thread th_pre = new Thread(Thread_pre)是什么意思?其中Threa

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/12 07:46:25
c#下面线程代码中Thread th_pre = new Thread(Thread_pre)是什么意思?其中Thread_pre指的是什么?
staticvoid Main(string[] args)
{
Thread th_pre = new Thread(Thread_pre)
th_pre.Start();
Console.WriteLine("主线程执行完成!");
}
方法名
比如 private void Thread_pre()
{
……
}
再问: 和Thread thpre=new Thread (new StartThread(Thread_pre));的作用相同吗?
再答: 一样的