首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

线程的输出有关问题为啥不同

2011-12-25 
线程的输出问题为啥不同?usingSystemusingSystem.ThreadingnamespaceThreadExample{classBasicThread{pu

线程的输出问题为啥不同?
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);//调用委托

热点排行