
//ParameterizedThreadStart
//Thread thread = new Thread(a =>
//{
// while (true)
// {
// //Thread.CurrentThread.ManagedThreadId :是CLR帮我们分配
// Console.WriteLine("这是子线程在干活呢..参数值:{0}.@{1}", a, Thread.CurrentThread.ManagedThreadId);
// Thread.Sleep(1000);
// }
//});
////设置后台线程
//thread.IsBackground = true;
////启动带参数的线程
////传递多个参数的话,可以使用List来传递数据
//thread.Start(2);


