可以一个Parallel.For后代?(Can a Parallel.For be descendant?)
可以为Parallel.For写一个回归循环吗?
不考虑使用变量来提供(N - 索引),我可以写一个parallel.for来做这个吗?
For X as integer = 2000 to 0 step -1 ... Next谢谢!
Could a Parallel.For be written for a regressive loop?
Not considering the usage of a variable to provide (N - index), could I write a parallel.for to do this?
For X as integer = 2000 to 0 step -1 ... NextThanks!
最满意答案
Parallel类不提供这样的方法。
此外,在使用Parallel.For时,不应依赖代码的迭代以任何特定顺序运行。 无法保证它将从最低到最高,或反之亦然。
Such a method is not provided by the Parallel class.
In addition, you should not rely on iterations of your code to be run in any particular order when using Parallel.For. There is no guarantee that it will be run from lowest to highest, or vice verse.
更多推荐
发布评论