码迷,mamicode.com
首页 > 其他好文 > 详细

TASK

时间:2016-08-23 16:20:28      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

Task[] tasks = new Task[]
                   {
                     Task.Factory.StartNew(DoLeft),
                     Task.Factory.StartNew(DoRight),
                     Task.Factory.StartNew(DoCenter)
                   };
  Task[] allTasks = tasks;
Task.WaitAll Method (tasks, TimeSpan)


Task.WaitAll(t1, t2);
Task.WaitAll Method (Task[], TimeSpan)

 

 

TaskFactory.StartNew Method (Action<Object>, Object)

https://msdn.microsoft.com/en-us/library/ff963553.aspx

https://msdn.microsoft.com/en-us/library/dd321562(v=vs.110).aspx

TASK

标签:

原文地址:http://www.cnblogs.com/WCFGROUP/p/5799625.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!