官术网_书友最值得收藏!

Summary

By providing high-level concurrency abstractions, Scala makes writing parallel code intuitive and straightforward. Parallel collections and futures form an invaluable part of a data scientist's toolbox, allowing them to parallelize their code with minimal effort. However, while these high-level abstractions obviate the need to deal directly with threads, an understanding of the internals of Scala's concurrency model is necessary to avoid race conditions.

In the next chapter, we will put concurrency on hold and study how to interact with SQL databases. However, this is only temporary: futures will play an important role in many of the remaining chapters in this book.

主站蜘蛛池模板: 衢州市| 中西区| 南汇区| 新河县| 赫章县| 融水| 郎溪县| 东兴市| 横山县| 历史| 盘锦市| 德惠市| 铜鼓县| 大田县| 莲花县| 舒城县| 长岭县| 昂仁县| 九寨沟县| 涪陵区| 安福县| 望都县| 衡阳市| 中牟县| 溧阳市| 库尔勒市| 恩施市| 彩票| 电白县| 遂昌县| 乌鲁木齐县| 凉山| 长海县| 隆德县| 浦东新区| 秭归县| 临泽县| 会同县| 星座| 潮安县| 大宁县|