About AutoResetEvent, a simple question
-
I have t1,t2,t3, 3 threads, and 1 AutoResetEvent(ar), Is ar able to synchronize the three threads?
what do you mean by "synchronize three threads"? could be many things, such as: have the starting thread wait for all of them to finish; have all of them to wait for a common event; etc. Whatever it is, the answer is: yes. The way to get it done will be different however. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
I have t1,t2,t3, 3 threads, and 1 AutoResetEvent(ar), Is ar able to synchronize the three threads?
jason_mf wrote:
Is ar able to synchronize the three threads?
Yes ar able to synchronize the three threads. :)
-
jason_mf wrote:
Is ar able to synchronize the three threads?
Yes ar able to synchronize the three threads. :)
i think synchronizing itself has a lot of meaning... like is all 3 threads running together? or is it waiting for autoresetevent set method, and which thread is waiting for which thread? at foldersync i recently create, i use 3 autoresetevent to control 3 threads.... L :doh: