3 using System
.Threading
;
6 public static void Main() {
7 Thread thr
=new Thread(new ThreadStart(foo
.thread
));
9 Console
.WriteLine("Main thread returns");
12 public static void thread() {
13 Console
.WriteLine("Thread running");
15 Console
.WriteLine("Thread running");
17 Thread
.CurrentThread
.IsBackground
= true;
18 Console
.WriteLine("Thread running");
20 Console
.WriteLine("Thread running");
22 Console
.WriteLine("Thread running");