摘要: <?xml version="1.0" encoding="utf-8"?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2022-09-26 15:24 N伽莫夫J 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1. 作用 AutoResetEvent和ManualResetEvent可用于控制线程暂停或继续。 2. 三个重要的方法 如果把每个线程比作一辆汽车的话,AutoResetEvent和ManualResetEvent就是公路上的收费站。 其中: Reset 关闭收费站车闸禁止通行(拦截车辆才好收费 阅读全文
posted @ 2022-09-26 15:11 N伽莫夫J 阅读(438) 评论(2) 推荐(4) 编辑