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.
For the ManualResetEvent
, once you've called Set()
, you have to deliberately call Reset()
to put it back in an unsignaled state such that calls to WaitOne()
will block.
This is not necessary for AutoResetEvent
.
The documentation is pretty good on MSDN for ManualResetEvent and AutoResetEvent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With