/// <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); }
/// <summary> /// 多个线程并行执行 /// </summary> /// <param name="tasks">多任务</param> public static void InParallel(params ThreadStart[] tasks) { IListExtensions.InParallel(new List <ThreadStart>(tasks)); }