string a = "2222"; Action<object> ac = (object obj) => { Debug.WriteLine("睡眠开始:" + DateTime.Now); Thread.Sleep(7000); Debug.WriteLine("睡眠结束:" + DateTime.Now); Debug.WriteLine(obj.ToString()); }; Task.Factory.StartNew(ac, a); Response.Write("执行完毕"); Response.End();