Java Threads and the Concurrency Utilities (Paperback)

JEFF FRIESEN

  • 出版商: Apress
  • 出版日期: 2015-11-23
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 220
  • 裝訂: Paperback
  • ISBN: 1484216997
  • ISBN-13: 9781484216996
  • 相關分類: Java 程式語言
  • 相關翻譯: Java 線程與並發編程實踐 (簡中版)
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

This concise book empowers all Java developers to master the complexity of the Java thread APIs and concurrency utilities. This knowledge aids the Java developer in writing correct and complex performing multithreaded applications.

Java's thread APIs and concurrency utilities are among its most powerful and challenging APIs and language features. Java beginners typically find it very difficult to use these features to write correct multithreaded applications. Threads and the Concurrency Utilities helps all Java developers master and use these capabilities effectively.

This book is divided into two parts of four chapters each. Part 1 focuses on the Thread APIs and Part 2 focuses on the concurrency utilities. In Part 1, you learn about Thread API basics and runnables, synchronization and volatility, waiting and notification, and the additional capabilities of thread groups, thread local variables, and the Timer Framework. In Part 2, you learn about concurrency utilities basics and executors, synchronizers, the Locking Framework, and the additional capabilities of concurrent collections, atomic variables, and the Fork/Join Framework.

Each chapter ends with select exercises designed to challenge your grasp of the chapter's content. An appendix provides the answers to these exercises. A second appendix explores how threads are used by various standard class library APIs. Specifically, you learn about threads in the contexts of Swing, JavaFX, and Java 8's Streams API.

What You Will Learn

• How to do thread runnables, synchronization, volatility, waiting and notification, thread groups, thread local variables, and the Timer Framework
• How to create multithreaded applications that work correctly.
• What are concurrency utilities basics and executors
• What are synchronizers, the Locking Framework, concurrent collections, atomic variables, and the Fork/Join Framework and how to use them
• How to leverage the concurrency utilities to write more complex multithreaded applications and achieve greater performance
• How to apply thread usage in Swing, JavaFX, and Java 8 Streams API contexts

Audience

The primary audience is Java beginners and the secondary audience is more advanced Java developers who have worked with the Thread APIs and the Concurrency Utilities.

商品描述(中文翻譯)

這本簡潔的書籍使所有Java開發人員能夠掌握Java線程API和並發工具的複雜性。這些知識有助於Java開發人員編寫正確且性能較高的多線程應用程序。

Java的線程API和並發工具是其最強大且具有挑戰性的API和語言特性之一。Java初學者通常很難使用這些功能來編寫正確的多線程應用程序。《線程和並發工具》幫助所有Java開發人員有效地掌握和使用這些功能。

本書分為兩個部分,每個部分有四章。第一部分關注線程API,第二部分關注並發工具。在第一部分中,您將學習線程API的基礎知識和可運行對象、同步和易變性、等待和通知,以及線程組、線程本地變量和計時器框架的其他功能。在第二部分中,您將學習並發工具的基礎知識和執行器、同步器、鎖定框架,以及並發集合、原子變量和分支/合併框架的其他功能。

每章結束時都有一些選擇性的練習題,旨在考驗您對該章內容的理解。附錄提供了這些練習題的答案。第二個附錄探討了線程在各種標準類庫API中的使用方式。具體而言,您將了解Swing、JavaFX和Java 8的Streams API中的線程使用情況。

您將學到什麼:

• 如何運行線程的可運行對象、同步、易變性、等待和通知、線程組、線程本地變量和計時器框架
• 如何創建正確運作的多線程應用程序
• 並發工具的基礎知識和執行器
• 同步器、鎖定框架、並發集合、原子變量和分支/合併框架的功能以及如何使用它們
• 如何利用並發工具來編寫更複雜的多線程應用程序並實現更高的性能
• 如何在Swing、JavaFX和Java 8 Streams API的上下文中應用線程使用

受眾:

主要受眾是Java初學者,次要受眾是更高級的Java開發人員,他們已經使用過線程API和並發工具。