不积跬步,无以至千里;不积小流,无以成江海

Our practice

不积跬步,无以至千里;不积小流,无以成江海

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2008年8月26日

摘要: Threadpool线程池和泛型List,实现同样功能的多线程的例子。 下载原代码 Code: using System; using System.Threading; using System.Collections.Generic; public class OprateClass { public OprateClass( ManualResetEvent doneEvent) { _doneEvent = doneEvent; } // Wrapper method for use with thread pool. public void ThreadPoolCallback(Object threadContext) { int threadIndex = (int)threadContext; Console.WriteLine("Thread parameter:{0}", threadIndex) 阅读全文
posted @ 2008-08-26 23:31 英怀 阅读(898) 评论(0) 推荐(0) 编辑