using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Demo
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread.CurrentThread.Name = "System Thread";
Console.WriteLine(Thread.CurrentThread.Name + " status: " + Thread.CurrentThread.ThreadState);
Console.ReadLine();
}
}
}
C#简单线程示例
最新推荐文章于 2020-02-10 22:11:08 发布