摘要: class Program { public delegate int AsyncDelegate(int intValue, int intTime);//定义一个委托类型 static int AsyncDeleFun(int intValue, int intTime) ... 阅读全文
posted @ 2015-10-26 17:52 code、sky 阅读(906) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { int intWorkerThreas; //定义最大工作线程数 int intCompletionPortThreads; //定义最大I/O线程数 ... 阅读全文
posted @ 2015-10-26 17:00 code、sky 阅读(218) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { PriorityClass pc = new PriorityClass(); //实例化PriorityTest类 Thread threadOne = new ... 阅读全文
posted @ 2015-10-26 16:36 code、sky 阅读(1872) 评论(0) 推荐(0) 编辑
摘要: Program1 p1 = new Program1(); Thread th = new Thread(new ThreadStart(p1.ThreadRunMethord));//创建一个新的子线程 if (th.ThreadState != ThreadState.Run... 阅读全文
posted @ 2015-10-26 12:54 code、sky 阅读(853) 评论(0) 推荐(0) 编辑