In C# what is the difference between manual reset event, autoresetevent. Also when should one use the same. What is difference between setting autoresetevent to true or false.
In C# what is the difference between manual reset event, autoresetevent. Also when should
Share
For the
ManualResetEvent, once you’ve calledSet(), you have to deliberately callReset()to put it back in an unsignaled state such that calls toWaitOne()will block.This is not necessary for
AutoResetEvent.The documentation is pretty good on MSDN for ManualResetEvent and AutoResetEvent.