/// <summary>/// /// </summary>class Program{static void Main(string[] args){simultaneous();Console.ReadKey();}static void simultaneous(){//尽可能并行执行提供的每个操作 Parallel.Invoke(() => ComplexMethod("1"),() => ComplexMethod("2"),() => ComplexMethod("3"));}static void ComplexMethod(string a){Console.WriteLine(a);}}