var cts=new CancellationTokenSource();
var ct=cts.Token;
var td=new Thread(_=>{
while(!ct.IsCancellationRequested)
{
//your work here
}
Console.WriteLine("thread exit");
});
td.Start();
Console.WriteLine("Press any key to stop the thread");
Console.ReadKey();
cts.Cancel();
Console.ReadLine();
3Q , 已通过这个方法解决了问题。