예제 #1
0
 /// <summary>
 /// 多个线程并行执行
 /// </summary>
 /// <param name="maxThreads">最大线程数</param>
 /// <param name="tasks">多任务</param>
 public static void InParallel(int maxThreads, params ThreadStart[] tasks)
 {
     IListExtensions.InParallel(new List <ThreadStart>(tasks), maxThreads);
 }
예제 #2
0
 /// <summary>
 /// 多个线程并行执行
 /// </summary>
 /// <param name="tasks">多任务</param>
 public static void InParallel(params ThreadStart[] tasks)
 {
     IListExtensions.InParallel(new List <ThreadStart>(tasks));
 }