Haskell中的平行编程

发布于 2025-02-10 09:02:09 字数 528 浏览 0 评论 0原文

我最近正在Haskell学习并行编程。我已经将并行库导入到我的代码中。我的数据量足够大(多达5亿)。我指定在GHC平台上运行的不同线程。但是,线程越多,运行时间越长,问题是什么,数据量不够大?还是我自己的并行环境未正确配置? [1]: https://i.sstatic.net/gs3s3s2.png [2]: https://i.sstatic.net/ah0rq.png [3]: https://i.sstatic.net/ngy40.png

I am learning parallel programming in Haskell recently. I have imported the parallel library into my code. My data volume is large enough (up to 500 million). I specify different threads to run on the GHC platform. However, the more threads, the more The running time is longer, what is the problem, is the amount of data not large enough? Or is my own parallel environment not configured correctly?
[1]: https://i.sstatic.net/gs3s2.png
[2]: https://i.sstatic.net/aH0Rq.png
[3]: https://i.sstatic.net/ngY40.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文