摘要: MSDN里面说到:一旦启动线程,便不必保留对 Thread 对象的引用。 线程将继续执行,直到该线程过程完成。下面代码可作为例子,各个线程都有在运行: ThreadStart th; Thread t5; //虽然用了同一个名称,但是在运行的时候用了不同的线程 for (int i = 0; i < 4; i++) { th = new ThreadStart(abc.Output); t5 = new Thread(th);... 阅读全文
posted @ 2012-08-24 17:41 果壳中的宇宙 阅读(204) 评论(0) 推荐(0) 编辑