2011年4月28日

在C#中ParameterizedThreadStart和ThreadStart区别

摘要: 我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下:ThreadStart threadStart=new ThreadStart(Calculate);Thread thread=new Thread(threadStart); thread.Start();public void Calculate() { double Diameter=0.5; Console.Write("The Area Of Circle with a Diameter of {0} is {1}"Diameter,Diameter*Math.PI);} 上面我们用定义了一个T 阅读全文

posted @ 2011-04-28 14:20 kingmoon 阅读(1951) 评论(0) 推荐(0) 编辑

导航