Java Threads, 3/e (Paperback)
暫譯: Java 執行緒,第三版 (平裝本)

Scott Oaks, Henry Wong

  • 出版商: O'Reilly
  • 出版日期: 2004-10-19
  • 定價: $1,320
  • 售價: 8.8$1,162
  • 語言: 英文
  • 頁數: 362
  • 裝訂: Paperback
  • ISBN: 0596007825
  • ISBN-13: 9780596007829
  • 相關分類: Java 程式語言
  • 立即出貨 (庫存=1)

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

相關主題

商品描述

Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition of the classic Java Threads shows you how to take full advantage of Java's threading facilities and brings you up-to-date with the watershed changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming.Java's threading system is simple relative to other threading systems. In earlier versions of Java, this simplicity came with tradeoffs: some of the advanced features in other threading systems were not available in Java. J2SE 5.0 changes all that: it provides a large number of new thread-related classes that make the task of writing multithreaded programs that much easier.You'll learn where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes. This book discusses problems like deadlock, race conditions, and starvation in detail, helping you to write code without hidden bugs.Java Threads, Third Edition, has been thoroughly expanded and revised. It incorporates the concurrency utilities from java.util.concurrent throughout. New chapters cover thread performance, using threads with Swing, threads and Collection classes, thread pools, and threads and I/O (traditional, new, and interrupted). Developers who cannot yet deploy J2SE 5.0 can use thread utilities provided in the Appendix to achieve similar functionality with earlier versions of Java.Topics include:

  • Lock starvation and deadlock detection
  • Atomic classes and minimal synchronization (J2SE 5.0)
  • Interaction of Java threads with Swing, I/O, and Collection classes
  • Programmatically controlled locks and condition variables (J2SE 5.0)
  • Thread performance and security
  • Thread pools (J2SE 5.0)
  • Thread groups
  • Platform-specific thread scheduling
  • Task schedulers (J2SE 5.0)
  • Parallelizing loops for multiprocessor machines
In short, this new edition of Java Threads covers everything you need to know about threads, from the simplest animation program to the most complex applications. If you plan to do any serious work in Java, you will find this book invaluable.Scott Oaks is a senior software engineer for the Java Performance Engineering group at Sun Microsystems and the author of four books in the O'Reilly Java series.Formerly a senior systems engineer at Sun Microsystems, Henry Wong is an independent consultant working on various Java related projects.

商品描述(中文翻譯)

執行緒是 Java 程式設計中不可或缺的部分,但有效地學習如何使用它們並不是一件簡單的任務。這本經典書籍《Java Threads》的新版本將教你如何充分利用 Java 的執行緒功能,並讓你了解 Java 2 標準版 5.0 (J2SE 5.0) 的重大變化。它提供了一個徹底的、逐步的執行緒程式設計方法。相較於其他執行緒系統,Java 的執行緒系統相對簡單。在早期版本的 Java 中,這種簡單性伴隨著一些妥協:其他執行緒系統中的一些高級功能在 Java 中並不可用。J2SE 5.0 改變了這一切:它提供了大量新的與執行緒相關的類別,使得編寫多執行緒程式的任務變得更加容易。你將學會在何處使用執行緒以提高效率,如何有效地使用它們,以及如何避免常見的錯誤。本書詳細討論了死鎖、競爭條件和飢餓等問題,幫助你編寫沒有隱藏錯誤的程式碼。《Java Threads》第三版已經徹底擴充和修訂。它整合了 java.util.concurrent 中的並發工具。新章節涵蓋了執行緒性能、如何與 Swing 一起使用執行緒、執行緒與集合類別、執行緒池以及執行緒與 I/O(傳統、新型和中斷)。尚未能部署 J2SE 5.0 的開發者可以使用附錄中提供的執行緒工具,以在早期版本的 Java 中實現類似的功能。主題包括:

- 鎖飢餓和死鎖檢測
- 原子類別和最小同步 (J2SE 5.0)
- Java 執行緒與 Swing、I/O 和集合類別的互動
- 程式控制的鎖和條件變數 (J2SE 5.0)
- 執行緒性能和安全性
- 執行緒池 (J2SE 5.0)
- 執行緒組
- 平台特定的執行緒排程
- 任務排程器 (J2SE 5.0)
- 為多處理器機器平行化迴圈

簡而言之,這本新版的《Java Threads》涵蓋了你需要了解的所有執行緒知識,從最簡單的動畫程式到最複雜的應用程式。如果你計劃在 Java 中進行任何認真的工作,你會發現這本書是無價的。Scott Oaks 是 Sun Microsystems Java 性能工程小組的高級軟體工程師,也是 O'Reilly Java 系列的四本書的作者。Henry Wong 曾是 Sun Microsystems 的高級系統工程師,現在是一名獨立顧問,從事各種與 Java 相關的專案。