The use of ManualResetEvent and ManualResetEventSlim in C#

Starting with .NET Framework version 2.0, ManualResetEvent derives from the EventWaitHandle class. The ManualResetEvent is functionally equivalent to the EventWaitHandle created using EventResetMode.ManualReset. ManualResetEventSlim is used to achieve better performance of ManualResetEvent. The following introduces a summary of the use of ManualResetEvent and ManualResetEventSlim in .NET (C#). 1. ManualResetEvent and ManualResetEventSlim ManualResetEvent represents a thread […]