Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / thread.cs
1
2 using System;
3 using System.Threading;
4
5 public class Test {
6         private void Thread_func() {
7                 Console.WriteLine("In a thread!");
8         }
9         
10         public static int Main () {
11                 Console.WriteLine ("Hello, World!");
12                 Test test = new Test();
13                 Thread thr=new Thread(new ThreadStart(test.Thread_func));
14                 thr.Start();
15                 Console.WriteLine("In the main line!");
16                 thr.Join ();
17                 return 0;
18         }
19 }
20