3 using System
.Threading
;
7 public static void Main ()
10 AutoResetEvent start_gc
= new AutoResetEvent (false);
12 Thread t1
= Thread
.CurrentThread
;
14 Thread t2
= new Thread (() => {
16 if (start_gc
.WaitOne (0))
21 } catch (ThreadStateException
) {
32 for (int i
= 0; i
< 50 * 40 * 5; ++i
) {
34 Thread
.CurrentThread
.Suspend ();
35 if ((i
+ 1) % (50) == 0)
37 if ((i
+ 1) % (50 * 40) == 0)