gotchacsharpCritical
What is the difference between ManualResetEvent and AutoResetEvent?
Viewed 0 times
manualreseteventandbetweenthedifferenceautoreseteventwhat
Problem
I have read the documentation on this and I think I understand. An
Is this correct?
AutoResetEvent resets when the code passes through event.WaitOne(), but a ManualResetEvent does not.Is this correct?
Solution
Yes. It's like the difference between a tollbooth and a door. The
ManualResetEvent is the door, which needs to be closed (reset) manually. The AutoResetEvent is a tollbooth, allowing one car to go by and automatically closing before the next one can get through.Context
Stack Overflow Q#153877, score: 999
Revisions (0)
No revisions yet.