可以一个Parallel.For后代?(Can a Parallel.For be descendant?)

编程入门 行业动态 更新时间:2024-10-27 14:29:22
可以一个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 ... Next

Thanks!

最满意答案

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.

更多推荐

本文发布于:2023-07-26 18:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1279322.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:后代   Parallel   descendant

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!