摘要: 其实这也是面试中被问倒的问题:(贴在这里纪念一下,注:只是简单的罗列,详细原理及分析,请参阅《CLR Via c#》第三版相关章节)1、利用线程池发起异步操作using System;using System.Threading;namespace Asynchronous{ class Program { static void Main(string[] args) { Console.WriteLine("主线程:准备发起一系列异步操作..."); ThreadPool.QueueUserWorkItem(ComputeBoundOp, 5); ThreadPool. 阅读全文
posted @ 2011-03-07 21:16 菩提树下的杨过 阅读(1119) 评论(0) 推荐(2) 编辑