• 2024-10-19ManualResetEvent&ManualResetEventSlim
    ManualResetEventManualResetEvent有三个重要的方法,分别为:waiteone(),set(),reset(),其含义如下:1.WaitOne()即等待信号发出,即可往下运行。2.set()发出信号,让线程方法继续往下运行,并允许其他线程(如有)一并往下运行。3.reset()重新初始化(即:去掉票据)变为ManualResetEvent(false)形