Welcome to mirror list, hosted at ThFree Co, Russian Federation.

threads.cs « wasm « sdks - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5795d8a72e4ee00b2efbce146fe37e62e36006d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Threading;
using System.Runtime.InteropServices;
 
public class HelloWorld
{
	public static void Main (String[] args) {
		var t = new Thread (delegate () {
				Console.WriteLine ("In thread.");
				Thread.Sleep (1000);
			});
		t.Start ();
		t.Join ();
 		Console.WriteLine ("Hello, World!");
 	}
 }