简体   繁体   English

Java和隐式并发?

[英]Java and Implicit Concurrency?

I am looking into various features where concurrency is performed Implicitly in Java and how the JVM handles these, So far I have found streams and how they use the fork/join frame work Implicitly, I am curios on other implicit features in Java, Although the Thread pools are implicitly created is this still a Implicit concurrency feature for Java as the programmer can define certain things?Also my other question is what other Implicit concurrency features are there that I can research into. 我正在研究在Java中隐式执行并发的各种功能,以及JVM如何处理这些功能。到目前为止,我已经发现了流以及它们如何使用fork / join框架。隐式地,我对Java中的其他隐式功能感兴趣,尽管线程池是隐式创建的,这仍然是Java的隐式并发功能,因为程序员可以定义某些事物?我的另一个问题是,还有哪些其他隐式并发功能可供研究。

Thanks 谢谢

In the JDK, thankfully probably nowhere. 幸运的是,在JDK中,可能什么也没有。 As a core library, it would be shameful to spawn thread without the consent of the application. 作为核心库,未经应用程序同意而生成线程将是可耻的。

However, when you chose to use a feature that offers concurrency, like parallel streams, ForkJoinPool and ThreadPoolExecutor, then it's quite normal. 但是,当您选择使用提供并发性的功能(例如并行流,ForkJoinPool和ThreadPoolExecutor)时,这是很正常的。

It seems you want to know something more precise though. 看来您想知道更精确的内容。 Digging through code to learn isn't always the best way... 挖掘代码学习并非总是最好的方法...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM