2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / tests / thread.cs
blobdb2f11f569be7cab3f2e10bc4300c438d1d90aa3
2 using System;
3 using System.Threading;
5 public class Test {
6 private void Thread_func() {
7 Console.WriteLine("In a thread!");
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;