Java 7 Concurrency Cookbook (Quick Answers to Common Problems)
暫譯: Java 7 並發食譜(常見問題的快速解答)
Fernandez Javier
- 出版商: Packt Publishing
- 出版日期: 2012-10-15
- 售價: $2,050
- 貴賓價: 9.5 折 $1,948
- 語言: 英文
- 頁數: 364
- 裝訂: Paperback
- ISBN: 1849687889
- ISBN-13: 9781849687881
-
相關分類:
Java 程式語言
已過版
商品描述
Master multithreaded program development with this Java 7 concurrency cookbook. Packed with real-world solutions, it takes you from basic to more sophisticated aspects of concurrency. For intermediate to advanced Java developers.
- Master all that Java 7 has to offer for concurrent programming
- Get to grips with thread management, the Fork/Join framework, concurrency classes and much more in this book and e-book
- A practical Cookbook packed with recipes for achieving the most important Java Concurrency tasks
In Detail
Java remains the global standard for developing various applications and enterprise software, and the launch of Java 7 brings with it exciting new capabilities for concurrent programming by way of the concurrency utilities enhancement. This allows developers to make the most of their applications with parallel task performance. "Java 7 Concurrency Cookbook" covers all elements of the Java concurrency API, providing essential recipes for taking advantage of the exciting new capabilities.
On your computer, you can listen to music while you edit a Word document and read your emails, all at once! This is because your operating system allows the concurrency of tasks, much like the Java platform which offers various classes to execute concurrent tasks inside a Java program. "Java 7 Concurrency Cookbook" covers the most important features of the Java concurrency API, with special emphasis on the new capabilities of version 7.
With each version, Java increases the available functionality to facilitate development of concurrent programs. This book covers the most important and useful mechanisms included in version 7 of the Java concurrency API, so you will be able to use them directly in your applications.
"Java 7 Concurrency Cookbook" includes recipes to enable you to achieve everything from the basic management of threads and tasks, to the new Fork /Join framework, through synchronization mechanisms between tasks, different types of concurrent tasks that Java can execute, data structures that must be used in concurrent applications and the classes of the library that can be customized.
With the step-by-step examples in this book you’ll be able to apply the most important and useful features of the Java 7 concurrency API.
What will you learn from this book
- Master the basics of thread management and synchronization before diving into higher level concurrency tasks
- Get to grips with exciting new concurrency features of Java 7, including the Phaser Class and the Fork/Join Framework
- Successfully delegate thread management to executors
- Customize some of the most useful classes of the Java concurrency API with real-world examples
- Learn to use high-level Java utilities to manage synchronization between threads
- Get a sneak peek at using Eclipse and NetBeans for debugging concurrency code
- Avoid problems with data inconsistency by learning the data structures you have to use in concurrent applications
- Take advantage of a bonus appendix packed with tips that every programmer should consider when developing a concurrent application
Approach
"Java 7 Concurrency Cookbook" is a practical Cookbook packed with real-world solutions. Intermediate–advanced level Java developers will learn from task-based recipes to use Java’s concurrent API to program thread safe solutions.
商品描述(中文翻譯)
掌握多執行緒程式開發,透過這本 Java 7 並發食譜。這本書充滿了實際的解決方案,帶你從基本概念進入更複雜的並發主題。適合中級到高級的 Java 開發者。
- 掌握 Java 7 在並發程式設計方面所提供的所有功能
- 理解執行緒管理、Fork/Join 框架、並發類別等內容,這本書和電子書將為你提供幫助
- 一本實用的食譜,包含了實現最重要的 Java 並發任務的配方
**詳細內容**
Java 仍然是開發各種應用程式和企業軟體的全球標準,而 Java 7 的推出帶來了令人興奮的並發程式設計新功能,透過並發工具的增強,使開發者能夠充分利用其應用程式的平行任務執行能力。《Java 7 並發食譜》涵蓋了 Java 並發 API 的所有元素,提供了利用這些令人興奮的新功能的基本配方。
在你的電腦上,你可以在編輯 Word 文件、閱讀電子郵件的同時聽音樂!這是因為你的作業系統允許任務的並發執行,就像 Java 平台提供各種類別來執行 Java 程式中的並發任務。《Java 7 並發食譜》涵蓋了 Java 並發 API 中最重要的特性,特別強調了第 7 版的新功能。
隨著每個版本的推出,Java 增加了可用的功能,以促進並發程式的開發。這本書涵蓋了 Java 並發 API 第 7 版中最重要和最有用的機制,因此你將能夠直接在應用程式中使用它們。
《Java 7 並發食譜》包含了配方,讓你能夠從基本的執行緒和任務管理,到新的 Fork/Join 框架,通過任務之間的同步機制、Java 可以執行的不同類型的並發任務、在並發應用程式中必須使用的資料結構,以及可以自訂的庫類別。
透過這本書中的逐步範例,你將能夠應用 Java 7 並發 API 中最重要和最有用的功能。
**你將從這本書中學到什麼**
- 在深入更高層次的並發任務之前,掌握執行緒管理和同步的基本知識
- 理解 Java 7 的令人興奮的新並發功能,包括 Phaser 類和 Fork/Join 框架
- 成功將執行緒管理委派給執行器
- 透過實際範例自訂 Java 並發 API 中一些最有用的類別
- 學會使用高階 Java 工具來管理執行緒之間的同步
- 瞭解如何使用 Eclipse 和 NetBeans 來除錯並發程式碼
- 通過學習在並發應用程式中必須使用的資料結構,避免資料不一致的問題
- 利用附錄中的額外提示,這些是每位程式設計師在開發並發應用程式時應考慮的事項
**方法**
《Java 7 並發食譜》是一本實用的食譜,充滿了實際的解決方案。中級到高級的 Java 開發者將從基於任務的配方中學習,使用 Java 的並發 API 來編寫執行緒安全的解決方案。