多线程:

线程生命周期状态图:

C#线程优先级(概率高低):


基本使用示例:
using System;
using System.Threading;
namespace month_9_10._1009
{
class Run5
{
public static void showHello()
{
for(int i = 0; i < 100; i++)
{
Console.WriteLine($"Hello\t#{Thread.CurrentThread.Name}");
}
}
public static void Main(string[] args)
{
Thread.CurrentThread.Name = "Main Thread!";
var childThreadRef = new ThreadStart(showHello);
Console.WriteLine("This is Main process!!!");
var child

Kylee Kello 于 2019-10-09 23:57:24 发布
