G
Guest
Hi,
I have several processes P1...Pn and every process is running the thread T1.
The proces P1 signales the named event E. I want that when the event E is
signaled, every thread T1 in processes P1..Pn will wake up and invoke a
delegate. Than this thread should wait for the next time, when event E will
be signaled by P1 again, and invoke delegate again.
If the event will be of type AutoReset, than only one thread will wake up
and after that the event will Reset. Thats bad, as other threads will not
wake up and will not invoke a delegate.
If the event will be of type Manual, than all threads T1 will wake up, but
every thread will run in a loop as the event will be still signaled.
My question is: How to wake up all threads, let them execute only once, and
than wait for the next signaled event?
Thanks for help,
Lubomir
I have several processes P1...Pn and every process is running the thread T1.
The proces P1 signales the named event E. I want that when the event E is
signaled, every thread T1 in processes P1..Pn will wake up and invoke a
delegate. Than this thread should wait for the next time, when event E will
be signaled by P1 again, and invoke delegate again.
If the event will be of type AutoReset, than only one thread will wake up
and after that the event will Reset. Thats bad, as other threads will not
wake up and will not invoke a delegate.
If the event will be of type Manual, than all threads T1 will wake up, but
every thread will run in a loop as the event will be still signaled.
My question is: How to wake up all threads, let them execute only once, and
than wait for the next signaled event?
Thanks for help,
Lubomir