Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
376 B
C#

using System;
using System.Threading;
public class Test {
private void Thread_func() {
Console.WriteLine("In a thread!");
}
public static int Main () {
Console.WriteLine ("Hello, World!");
Test test = new Test();
Thread thr=new Thread(new ThreadStart(test.Thread_func));
thr.Start();
Console.WriteLine("In the main line!");
thr.Join ();
return 0;
}
}