栀子花开

追求完美

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

2007年12月14日

摘要: ThreadPool(线程池)in .Net 在多线程的程序中,经常会出现两种情况。一种情况下,应用程序中的线程把大部分的时间花费在等待状态,等待某个事件发生,然后才能给予响应;而另外一种情况则是线程平常都处于休眠状态,只是周期性地被唤醒。这里分析及介绍.Net Framework中ThreadPool class来对付第一种情况,相应地也会谈到QueueUserWorkItem方法和WaitCa... 阅读全文
posted @ 2007-12-14 15:21 杨林 阅读(786) 评论(2) 推荐(0) 编辑

摘要: using System; 2using System.Web; 3using System.Web.Services; 4using System.Web.Services.Protocols; 5 6[WebService(Namespace = "http://tempuri.org/")] 7[WebServiceBinding(ConformsTo = WsiProfiles... 阅读全文
posted @ 2007-12-14 14:34 杨林 阅读(326) 评论(0) 推荐(0) 编辑

摘要: using System; 2using System.Web; 3using System.Web.Services; 4using System.Web.Services.Protocols; 5 6[WebService(Namespace = "http://tempuri.org/")] 7[WebServiceBinding(ConformsTo = WsiProfiles... 阅读全文
posted @ 2007-12-14 14:34 杨林 阅读(210) 评论(0) 推荐(0) 编辑