Nov 20

ManualResetEvent and AutoResetEvent

Threads that call one of the wait methods of a synchronization event must wait until another thread signals the event by calling the Set method. There are two synchronization event classes. Threads set the status of ManualResetEvent instances to signaled using the Set method. Threads set the status of ManualResetEvent instances to nonsignaled using the Reset method or when control returns to a waiting WaitOne call. Instances of the AutoResetEvent class can also be set to signaled using Set, but they automatically return to nonsignaled as soon as a waiting thread is notified that the event became signaled

Permanent link to this article: http://zappmania.in/2012/11/20/manualresetevent-and-autoresetevent.htm

Leave a Reply

Your email address will not be published.