2 using System.Reflection;
3 using System.Threading;
6 // This is a test program for the thread dump support in the runtime
10 // - send it a SIGQUIT signal using pkill -QUIT mono
15 public static Object lock_object;
17 public static void run () {
22 public static void wait () {
23 Monitor.Enter (lock_object);
26 public static void Main () {
27 lock_object = new Object ();
28 Monitor.Enter (lock_object);
30 Thread.CurrentThread.Name = "Main";
32 Thread t1 = new Thread (new ThreadStart (run));
35 Thread t2 = new Thread (new ThreadStart (run));
39 Thread t3 = new Thread (new ThreadStart (wait));
40 t3.Name = "WaitThread";