Concurrency provides a way to structure a solution to solve a problem that may (but not necessarily) be parallelizable.
并发提供了一种方式让我们能够设计一种方案将问题(非必须的)并行的解决。
In the best case for this graph, the brown line shows a problem that's 10% sequential and, therefore, 90% parallelizable.
在此图中,最佳的情况是棕色的线,它展示了一个10%顺序性(因此90%可并行化)的问题。
Mark any test [parallelizable] and it will be permitted to run in parallel with other parallelizable tests in the same fixture.
只要给测试用例(test)加上[parallelizable]属性,这个测试用例就可以和同一个测试套件(fixture)中其他拥有该属性的测试用例并行运行。
应用推荐