摘要: 作者:银河使者一、Thread 类的基本用法通过System.Threading.Thread类可以开始新的线程,并在线程堆栈中运行静态或者实例方法。可以通过Thread类得构造方法传递一个无参数,并且不返回值(返回void)的委托(ThreadStart),这个委托的定义如下:[ComVisibleAttribute(true)]public delegate void ThreadStart()我们可以通过如下的方法来建立并运行一个线程。A。静态方法usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSyste 阅读全文
posted @ 2011-07-21 16:32 走路到纽约 阅读(291) 评论(0) 推荐(0) 编辑