摘要: 1.线程同步 ManualResetEvent Set()方法将状态设置为有信号 Reset()将其设置为无信号 WaitOne()将阻塞到其有信号为止,若调用WaitOne的时刻就是有信号的,将不会阻塞 AutoResetEvent 与ManualResetEvent的区别是,AutoResetEvent.WaitOne()会自动改变事件对象的状态,即AutoResetEvent.WaitOne... 阅读全文
posted @ 2008-01-08 09:25 ant520 阅读(191) 评论(0) 推荐(0) 编辑