在.net4.0的时候推出的Task
using System;using System.Threading;using System.Threading.Tasks;namespace TaskDemo{ class Program { static void Main(string[] args) { Console.WriteLine("Main Thread = {0}", Thread.CurrentThread.ManagedThreadId); Console.WriteLine(); Action
执行结果