2 using System
.Collections
.Generic
;
3 using System
.Threading
;
9 public static void Main (string[] args
)
11 var _trigger
= new ManualResetEvent (false);
13 var testThreads
= new Thread
[100];
14 for (Int16 i
= 0; i
< testThreads
.Length
; ++i
)
16 testThreads
[i
] = new Thread ( () =>
19 for (Int16 index
= 0; index
< 1000; ++index
)
21 var val
= index
.ToString();
25 testThreads
[i
].Start ();
27 Console
.WriteLine ("setting event");
29 foreach (var thread
in testThreads
)