Learning Concurrent Programming in Scala
暫譯: 在 Scala 中學習並發程式設計
Aleksandar Prokopec
- 出版商: Packt Publishing
- 出版日期: 2014-11-29
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 366
- 裝訂: Paperback
- ISBN: 1783281413
- ISBN-13: 9781783281411
-
相關分類:
JVM 語言
海外代購書籍(需單獨結帳)
商品描述
About This Book
- Design and implement scalable and easy-to-understand concurrent applications
- Make the most of Scala by understanding its philosophy and harnessing the power of multicores
- Get acquainted with cutting-edge technologies in the field of concurrency, with a particular emphasis on practical, real-world applications
- Step-by-step tutorial guide, which is full of pragmatic examples
Who This Book Is For
This book is a must-have tutorial for software developers aiming to write concurrent programs in Scala, or broaden their existing knowledge of concurrency.
This book is intended for Scala programmers that have no prior knowledge about concurrent programming, as well as those seeking to broaden their existing knowledge about concurrency. Basic knowledge of the Scala programming language will be helpful. Readers with a solid knowledge in another programming language, such as Java, should find this book easily accessible.
What You Will Learn
- Get to grips with the fundamentals of concurrent programming on modern multiprocessor systems, with a particular focus on the JVM concurrency model
- Build high-performance concurrent systems from simple, low-level concurrency primitives
- Express asynchrony in concurrent computations with futures and promises
- Seamlessly accelerate sequential programs by using data-parallel collections
- Implement reactive and event-based programs declaratively with Rx-style event streams
- Design safe, scalable, and easy-to-comprehend in-memory transactional data models
- Transparently create distributed applications that scale across multiple machines
- Choose the correct concurrency abstraction and integrate different concurrency frameworks together in large applications
In Detail
This book will give you an insight into the best practices necessary to build concurrent programs in Scala using modern, high-level concurrency libraries. It starts by introducing you to the foundations of concurrent programming on the JVM, outlining the basics of the Java Memory Model, and then shows some of the classic building blocks of concurrency, such as the atomic variables, thread pools, and concurrent data structures, along with the caveats of traditional concurrency. It then walks you through different high-level concurrency abstractions, each tailored toward a specific class of programming tasks. Finally, the book presents an overview of when to use which concurrency library and demonstrates how they all work together.
商品描述(中文翻譯)
學習使用 Scala 建立複雜、現代、可擴展的並發應用程式的藝術
本書介紹
- 設計和實現可擴展且易於理解的並發應用程式
- 通過理解 Scala 的哲學和利用多核心的力量,充分發揮 Scala 的潛力
- 熟悉並發領域的尖端技術,特別強調實用的現實應用
- 逐步的教學指南,充滿實用的範例
本書適合誰
本書是軟體開發人員必備的教程,旨在幫助他們使用 Scala 編寫並發程式,或擴展他們對並發的現有知識。
本書適合對並發程式設計沒有先前知識的 Scala 程式設計師,以及那些希望擴展他們對並發的現有知識的人。對 Scala 程式語言的基本知識將會有所幫助。對其他程式語言(如 Java)有扎實知識的讀者,應該能輕鬆理解本書。
您將學到什麼
- 掌握現代多處理器系統上並發程式設計的基本原則,特別關注 JVM 的並發模型
- 從簡單的低階並發原語構建高效能的並發系統
- 使用 futures 和 promises 在並發計算中表達非同步性
- 通過使用資料並行集合無縫加速順序程式
- 使用 Rx 風格的事件流以聲明式方式實現反應式和基於事件的程式
- 設計安全、可擴展且易於理解的記憶體內事務資料模型
- 透明地創建可在多台機器上擴展的分散式應用程式
- 選擇正確的並發抽象,並在大型應用程式中整合不同的並發框架
詳細內容
本書將為您提供必要的最佳實踐,以使用現代高階並發函式庫在 Scala 中構建並發程式。它首先介紹 JVM 上並發程式設計的基礎,概述 Java 記憶體模型的基本概念,然後展示一些並發的經典構建塊,如原子變數、執行緒池和並發資料結構,以及傳統並發的注意事項。接著,它將引導您了解不同的高階並發抽象,每個抽象都針對特定類別的程式任務。最後,本書概述了何時使用哪個並發函式庫,並演示它們如何協同工作。