Java如何实现并行流?

huangapple 未分类评论43阅读模式
英文:

How java implements the streams in parallel?

问题

我有一个问题,在互联网上寻找答案已经很久了,我对并发还很陌生,就我所理解的而言,并行与并发是不同的, 并行允许程序更快地执行并利用多核处理器的优势,经过一些研究,我发现我无法在Java中自带实现并行编程,需要获取一些第三方库来实现,我的问题是Java如何在流中实现并行,它使用了哪些包来实现呢?

英文:

I have a question been looking for an answer for a lot in the internet, I'm still new to concurrency, as far as I understand parallel is different from concurrency, parallel allow the program to execute faster and take advantage of multi core processors, after I have done some research I found that I can't do parallel programming nativly in java and I need to get some third-party library for that, my question is how java implemented parallel in streams, what packages it uses to implement that?

huangapple
  • 本文由 发表于 2020年4月4日 23:16:27
  • 转载请务必保留本文链接:https://java.coder-hub.com/61030242.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定