Java 9 Concurrency Cookbook Second Edition

Javier Fernandez Gonzalez

買這商品的人也買了...

商品描述

Key Features

  • Get detailed coverage of important recipes on multi-threading and parallel programming
  • This book takes a close look at the Java 9 APIs and their impact on concurrency
  • See practical examples on thread safety, high-performance classes, safe sharing, and a whole lot more

Book Description

Writing concurrent and parallel programming applications is an integral skill for any Java programmer. Java 9 comes with a host of fantastic features, including significant performance improvements and new APIs.

This book will take you through all the new APIs, showing you how to build parallel and multi-threaded applications. The book covers all the elements of the Java Concurrency API, with essential recipes that will help you take advantage of the exciting new capabilities.

You will learn how to use parallel and reactive streams to process massive data sets. Next, you will move on to create streams and use all their intermediate and terminal operations to process big collections of data in a parallel and functional way.

Further, you'll discover a whole range of recipes for almost everything, such as thread management, synchronization, executors, parallel and reactive streams, and many more. At the end of the book, you will learn how to obtain information about the status of some of the most useful components of the Java Concurrency API and how to test concurrent applications using different tools.

What you will learn

  • Find out to manage the basic components of the Java Concurrency API
  • Use synchronization mechanisms to avoid data race conditions and other problems of concurrent applications
  • Separate the thread management from the rest of the

商品描述(中文翻譯)

《重點特色》
- 詳細介紹多執行緒和平行程式設計的重要範例
- 本書深入探討Java 9的API及其對並行性的影響
- 提供實用的範例,包括執行緒安全、高效能類別、安全共享等等

《書籍描述》
撰寫並行和平行程式設計應用是任何Java程式設計師必備的技能。Java 9帶來了許多令人驚豔的功能,包括顯著的效能改進和新的API。

本書將帶領您深入了解所有新的API,並展示如何建立並行和多執行緒的應用程式。本書涵蓋了Java Concurrency API的所有元素,並提供了必要的範例,幫助您充分利用這些令人興奮的新功能。

您將學習如何使用平行和反應式串流來處理大型資料集。接下來,您將學習建立串流並使用所有中介和終端操作來以並行和函數式的方式處理大型資料集。

此外,您還將發現各種各樣的範例,涵蓋了執行緒管理、同步、執行者、平行和反應式串流等等。在本書的最後,您將學習如何獲取有關Java Concurrency API中一些最有用元件狀態的資訊,以及如何使用不同工具測試並行應用程式。

《您將學到什麼》
- 瞭解如何管理Java Concurrency API的基本元件
- 使用同步機制避免資料競爭和其他並行應用程式問題
- 將執行緒管理與其他部分分離