2007年7月20日

更轻量级的Semaphore、AutoResetEvent、ThreadPool

摘要: 内部完全使用Monitor实现,理论上比使用WaitHandler的资源消耗更少,也更快。缺点是会损失一些功能。Semaphore源码(btw:gotdotnet上面有一个ManagedThreadPool):1usingSystem;2usingSystem.Threading;34namespacenewsmth.Nineteen5{6publicclassSemaphoreLite7{8pr... 阅读全文

posted @ 2007-07-20 10:06 Nineteen@newsmth 阅读(3537) 评论(17) 推荐(1) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示