3 using System
.Threading
;
6 public static int Main() {
7 Environment
.ExitCode
= 2;
8 Thread thr
=new Thread(new ThreadStart(foo
.thread
));
11 Console
.WriteLine("Main thread exiting");
16 public static void thread() {
17 Console
.WriteLine("Thread running");
19 Console
.WriteLine("Thread running");
21 Console
.WriteLine("Thread running");
23 Console
.WriteLine("Thread running");
25 Console
.WriteLine("Thread running");