Concurrent Programming in Java: Design Principles and Patterns, 2/e
Doug Lea
- 出版商: Addison Wesley
- 出版日期: 1999-10-25
- 售價: $2,850
- 貴賓價: 9.5 折 $2,708
- 語言: 英文
- 頁數: 432
- 裝訂: Paperback
- ISBN: 0201310090
- ISBN-13: 9780201310092
-
相關分類:
Java 程式語言
已過版
買這商品的人也買了...
-
$680$537 -
$650$553 -
$970Introduction to Algorithms, 2/e
-
$880$695 -
$690$587 -
$620$558 -
$780$741 -
$780CMMI: Guidelines for Process Integration and Product Improvement (Harcover)
-
$760$600 -
$760$600 -
$590$466 -
$750$675 -
$560$504 -
$490$417 -
$850$723 -
$480$379 -
$750$593 -
$780$616 -
$780$663 -
$490$382 -
$990$782 -
$490$441 -
$650$507 -
$460$363 -
$780$616
相關主題
商品描述
Description
One of Java's most powerful capabilities is its built-in support for concurrent programming, a design technique in which multiple concurrent activities-threads take place inside a single Java program. Thread programming enables developers to design applications that are more responsive to user demands, faster, and more easily controlled.
This book offers comprehensive coverage of this vital aspect of the Java language. The book is completely up-to-date with the new thread model that is now incorporated into the most recent version of the Java Virtual Machine. All Java programmers interested in doing concurrent programming must understand these new concepts. The book approaches the topic from a design pattern point of view. It introduces and summarizes Java's concurrency support, shows readers how to initiate, control, and coordinate concurrent activities, and offers numerous recipe-like techniques for designing and implementing Java structures that solve common concurrent programming challenges. Specifically, the book presents important strategies for avoiding the inconsistencies that can crop up in multi-threaded programs, addresses the concept of "liveness"-how to ensure that all threads in use are kept active simultaneously, examines state-dependent action, and demonstrates effective methods for handling user requests in a multi-threaded environment.
Table Of Contents
1. Concurrent Object-Oriented Programming.Thread Mechanics.
Further Readings.
Objects and Concurrency.
Concurrent Execution Constructs.
Concurrency and OO Programming.
Object Models and Mappings.
Further Readings.
Design Forces.
Liveness.
Performance.
Reusability.
Further Readings.
Before/After Patterns.
Adapters.
Subclassing.
Method Adapters.
Further Readings.
2. Exclusion.
Construction.
Synchronization.
Fully Synchronized Objects.
Traversal.
Statics and Singletons.
Deadlock.
Resource Ordering.
The Java Memory Model.
Further Readings.
Confinement.
Confinement Within Threads.
Confinement Within Objects.
Confinement Within Groups.
Further Readings.
Structuring and Refactoring Classes.
Splitting Synchronization.
Read-Only Adapters.
Copy-on-Write.
Open Containers.
Further Readings.
Using Lock Utilities.
Read-Write Locks.
Further Readings.
3. State Dependence.
Cancellation.
Further Readings.
Guarded Methods.
Monitor Mechanics.
Guarded Waits.
Notifications.
Timed Waits.
Busy Waits.
Structuring and Refactoring Classes.
Conflict Sets.
Subclassing.
Confinement and Nested Monitors.
Further Readings.
Using Concurrency Control Utilities.
Latches.
Exchangers.
Condition Variables.
Further Readings.
Joint Actions.
Decoupling Observers.
Further Readings.
Transactions.
Transaction Participants.
Creating Transactions.
Vetoable Changes.
Further Readings.
Implementing Utilities.
Delegated Actions.
Specific Notifications.
Further Readings.
4. Creating Threads.
Open Calls.
Thread-Per-Message.
Worker Threads.
Polling and Event-Driven IO.
Further Readings.
Composing Oneway Messages.
Assembly Line.
Further Readings.
Services in Threads.
Joining Threads.
Futures.
Scheduling Services.
Further Readings.
Parallel Decomposition.
Computation Trees.
Barriers.
Further Readings.
Active Objects.
Further Readings.
Index. 0201310090T04062001