0
Reply

WaitOne method

George George

George George

Apr 22 2008 8:42 AM
2.8k

Hello everyone,


When we signal an event (say, invoking set method of ManualResetEvent instance), then two basic questions,

1. no matter how many threads are waiting on the event, all of them will be awoken and executed at the same time, right?

2. If some other threads execute to statement WaitOne, after the ManualResetEvent is signalled -- say, in step (1), but not reset back into non-signalled status, the thread's execution will not be blocked, right?


thanks in advance,
George


Upload Source Code  Select only zip and rar file.