我刚刚在网上学习新的翻新和平行图书馆。
过去,我要像现在这样创造新的通道(例如):
DataInThread = new Thread(new ThreadStart(ThreadProcedure));
DataInThread.IsBackground = true;
DataInThread.Start();
Now I can do:
Task t = Task.Factory.StartNew(() =>
{
ThreadProcedure();
});
有什么区别?
Thanks