在看他们的区别之前,先看看AutoResetEvent和ManualResetEvent的用法
【转载】浅谈AutoResetEvent的用法
我下边列出一段小程序:
1
using System;
2
using System.Threading;
3
4
namespace AutoResetEvent_Examples
5
2
3
4
5
分别注销第10行和第11行代码,看看运行的结果就清楚了。他们运行的结果差别还是很大的。
在看他们的区别之前,先看看AutoResetEvent和ManualResetEvent的用法
【转载】浅谈AutoResetEvent的用法
我下边列出一段小程序:
相关文章: