C#主线程
编程学习网为您整理以下代码实例,主要实现:C#主线程,希望可以帮到各位朋友。
using System;
using System.Threading;
namespace MultithreadingApplication {
class MainThreadProgram {
static voID Main(string[] args) {
Thread th = Thread.CurrentThread;
th.name = "MainThread";
Console.Writeline("This is {0}", th.name);
Console.ReadKey();
}
}
}