Use constant stack space for STW under darwin.
[mono-project.git] / mono / tests / thread5.cs
blob4c9dcc133cabe9d74c203c9d4807f7a38da76d36
1 using System;
2 using System.Threading;
4 public class MultiThreadExceptionTest {
5 public static void MyThreadStart() {
6 try {
7 Console.WriteLine("{0} started",
8 Thread.CurrentThread.Name);
9 throw new Exception();
10 } catch (Exception) {
14 public static void Main() {
15 Thread t1 = new Thread(new ThreadStart
16 (MultiThreadExceptionTest.MyThreadStart));
17 t1.Name = "Thread 1";
19 Thread t2 = new Thread(new ThreadStart
20 (MultiThreadExceptionTest.MyThreadStart));
21 t2.Name = "Thread 2";
23 t1.Start();
24 t2.Start();