Simplest way to run three methods in parallel in C#
问题 I have three methods that I call to do some number crunching that are as follows results.LeftFront.CalcAi(); results.RightFront.CalcAi(); results.RearSuspension.CalcAi(geom, vehDef.Geometry.LTa.TaStiffness, vehDef.Geometry.RTa.TaStiffness); Each of the functions is independent of each other and can be computed in parallel with no dead locks. What is the easiest way to compute these in parallel without the containing method finishing until all three are done? 回答1: See the TPL documentation.