3 using System
.Threading
;
6 public static void Main() {
7 Thread thr
=new Thread(new ThreadStart(foo
.thread
));
11 Console
.WriteLine("Aborting child thread");
14 Console
.WriteLine("Main thread returns");
17 public static void thread() {
19 Console
.WriteLine("Thread running");
21 } catch(ThreadAbortException
) {
23 Console
.WriteLine("Abort reset!");
25 Console
.WriteLine("ThreadAbortException finally");
28 Console
.WriteLine("Thread running");
30 } catch(ThreadAbortException
) {
32 Console
.WriteLine("Abort reset!");
34 Console
.WriteLine("ThreadAbortException finally");
37 Console
.WriteLine("Thread running");
39 } catch(ThreadAbortException
) {
41 Console
.WriteLine("Abort reset!");
43 Console
.WriteLine("ThreadAbortException finally");
46 Console
.WriteLine("Thread running");
48 } catch(ThreadAbortException
) {
50 Console
.WriteLine("Abort reset!");
52 Console
.WriteLine("ThreadAbortException finally");
55 Console
.WriteLine("Thread running");
56 } catch(ThreadAbortException
) {
58 Console
.WriteLine("Abort reset!");
60 Console
.WriteLine("ThreadAbortException finally");