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

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.

主站蜘蛛池模板: 金华市| 基隆市| 嘉祥县| 肃北| 常德市| 斗六市| 寿光市| 新丰县| 六安市| 侯马市| 专栏| 大洼县| 闽清县| 宾川县| 滨州市| 临西县| 安多县| 如皋市| 嘉峪关市| 乐安县| 年辖:市辖区| 永昌县| 霞浦县| 嘉兴市| 竹山县| 百色市| 新河县| 元朗区| 永济市| 玛纳斯县| 民丰县| 谢通门县| 佛冈县| 五华县| 太康县| 喀喇沁旗| 正定县| 乳源| 保靖县| 浦东新区| 大田县|