线程的输出问题为啥不同?
using System;
using System.Threading;
namespace ThreadExample
{
class BasicThread
{
public static void ChildThreadCall()
{
Console.WriteLine( "子线程开始 ");
}
public static void Main()
{
ThreadStart ChildRef=new ThreadStart(ChildThreadCall);
//声明一个委托类的实例,在此处委托的方法为子线程的启动方法
Console.WriteLine( "主--创建一个子线程 ");
Thread ChildThread=new Thread(ChildThreadCall);//调用委托
ChildThread.Start();
Console.WriteLine( "主--已经请求创建了子线程 ");
Console.ReadLine();
}
}
}
[解决办法]
你想问题什么呀?晕。。
[解决办法]
啥为啥不同。
[解决办法]
什么意思??
[解决办法]
没看懂在问什么啊
[解决办法]
Thread ChildThread=new Thread(ChildThreadCall);//调用委托
--> > Thread ChildThread=new Thread(ChildRef);//调用委托