Simplest way to run three methods in parallel in C#

前端 未结 5 1344
一向
一向 2020-12-04 14:01

I have three methods that I call to do some number crunching that are as follows

results.LeftFront.CalcAi();  
results.RightFront.CalcAi();  
results.RearSus         


        
5条回答
  •  星月不相逢
    2020-12-04 14:32

    In .NET 4, Microsoft introduced the Task Parallel Library which was designed to handle this kind of problem, see Parallel Programming in the .NET Framework.

提交回复
热议问题