- Kotlin for Enterprise Applications using Java EE
- Raghavendra Rao K
- 217字
- 2021-06-10 18:49:26
Working with coroutines
A program in execution that initiates long-running operations, such as file IO, network IO, or CPU- or GPU-intensive work, requires the invoker to block until the operations complete. Programming languages handle this via concurrency.
The JVM has support for concurrency. Java has had strong support for multithreading and concurrency since its first release. Any process that is running inside the JVM can create a number of threads to execute multiple tasks in an asynchronous fashion. However, developing concurrent code in an optimal and error-free manner and debugging it is really challenging. Java provides various constructs to write concurrent code and, along with other JVM languages and third-party libraries, has tried to come up with innovative and elegant ways to achieve concurrency.
Java 5 made a lot of progress with regard to writing concurrent applications. It has higher-level constructs, such as the executor framework, which makes it easier to write concurrent code and allows us to decouple thread management code from the business logic. Java 8 has introduced parallel streams to turn the code to concurrent much more easily. RxJava brings reactive extensions to Java, allowing us to write very concise code for asynchronous functionality. Kotlin supports almost all of those approaches and offers a few of its own as well.
- Mastering Concurrency Programming with Java 8
- DB2 V9權(quán)威指南
- Learning Real-time Processing with Spark Streaming
- Computer Vision for the Web
- Photoshop智能手機(jī)APP UI設(shè)計(jì)之道
- Functional Kotlin
- Drupal 8 Configuration Management
- Java程序設(shè)計(jì)
- 小學(xué)生C++創(chuàng)意編程(視頻教學(xué)版)
- Learning Zurb Foundation
- Getting Started with Gulp
- Kubernetes進(jìn)階實(shí)戰(zhàn)
- Training Systems Using Python Statistical Modeling
- Java從入門到精通(視頻實(shí)戰(zhàn)版)
- 實(shí)驗(yàn)編程:PsychoPy從入門到精通