- Mastering Concurrency Programming with Java 8
- Javier Fernández González
- 253字
- 2021-07-16 12:55:02
Summary
Concurrent programming includes all the necessary tools and techniques to have multiple tasks or process running at the same time in a computer, communicating and synchronizing between them without data loss or inconsistency.
We started this chapter by introducing the basic concepts of concurrency. You must know and understand terms such as concurrency, parallelism, and synchronization to fully understand the examples of this book. However, concurrency can generate some problems, such as data race conditions, deadlocks, livelocks, and others. You must also know the potential problems of a concurrent application. It will help you identify and solve these problems.
We also explained a simple methodology of five steps introduced by Intel to convert a sequential algorithm into a concurrent one and showed you some concurrency design patterns implemented in the Java language and some tips to take into account when you implement a concurrent application.
Finally, we explained briefly the components of the Java concurrency API. It's a very rich API with low- and very high-level mechanisms that allow you to implement powerful concurrency applications easily. We also described the Java memory model, which determines how concurrent applications manage the memory and the execution order of the instructions internally.
In the next chapter, you will learn how to implement applications that use a lot of threads using the executor framework. This allows you to execute a big number of threads by controlling the resources you use and reducing the overhead introduced by thread creation (it reuses Thread
objects to execute different tasks).
- Android應(yīng)用程序開(kāi)發(fā)與典型案例
- Learning Docker
- Python入門(mén)很簡(jiǎn)單
- 程序員面試筆試寶典
- jQuery從入門(mén)到精通 (軟件開(kāi)發(fā)視頻大講堂)
- Java程序設(shè)計(jì)與實(shí)踐教程(第2版)
- PhoneGap Mobile Application Development Cookbook
- Linux操作系統(tǒng)基礎(chǔ)案例教程
- R大數(shù)據(jù)分析實(shí)用指南
- Visual Foxpro 9.0數(shù)據(jù)庫(kù)程序設(shè)計(jì)教程
- Programming with CodeIgniterMVC
- FFmpeg開(kāi)發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到短視頻上線
- Learning Android Application Testing
- HTML5移動(dòng)前端開(kāi)發(fā)基礎(chǔ)與實(shí)戰(zhàn)(微課版)
- C語(yǔ)言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)教程