Hello,
I use ManualResetEvent to stop and allow a thread running by setting:
public static ManualResetEvent mre = new ManualResetEvent(false);
So if I use mre.WaitOne(); this let the thread stop
and I can use mre.Set to let the thread do it's process.
The problem is can I use this kind of mechanism to choose which thread
should run, for example I have two threads which in their inside code
there is mre.WaitOne() command.
Then in my code I would like to let the thread 1 only run, by setting
mre.Set().
But the fact is all of my thread are running just after I click mre.Set().
Thanks in advance.
--
Baby Step, One Step at a time, better and better....