"Java Concurrent programming Combat"/Dong Yunlan translation "PDF" download

Source: Internet
Author: User
Tags closure volatile

Java concurrent Programming Combat/Dong Yunlan PDF Download Link:
https://u253469.pipipan.com/fs/253469-230062521

Content Introduction

This book introduces Java threading and concurrency in a more comprehensible way, and is a perfect Java concurrency reference manual. From the basic concepts of concurrency and thread safety, the book describes how to use the basic concurrency building blocks provided by class libraries to avoid concurrency hazards, construct thread-safe classes and validate thread-safe rules, how to combine small thread-safe classes into larger thread-safe classes, and how to leverage threads to increase throughput for concurrent applications. How to identify tasks that can be executed in parallel, how to improve the responsiveness of single-threaded subsystems, how to ensure that concurrent programs perform the expected tasks, how to improve the performance and scalability of concurrent code, and so on, and finally introduce some advanced topics such as explicit locks, atomic variables, nonblocking algorithms, and how to develop custom synchronization tool classes.

This book is intended for developers of Java programs to read.

About the author

The authors of this book are Java Community Process JSR
166 The main members of the Group of Experts (concurrent tools) and served in many other JCP expert groups. Brian Goetz has more than 20 years of experience in the software consulting industry and has at least 75 articles on Java development. Tim Peierls is a model of "modern multiprocessor," and he has studied boxpop.biz, record art and theatrical performances. Joseph
Bowbeer is a Java
Me expert, his interest in concurrent programming began in the era of the Apollo computer. David Holmes, co-author of the book "The Java Programming Language", worked for Sun. Joshua Bloch is Google's chief Java architect, effective
Java puzzlers, and participated in the book "Java." Doug Lea is the author of the book Concurrent Programming, a professor of computer science at the State University of New York at Oswego.

Directory

The praise of the book
Translator sequence
Objective
Chapter 1th Introduction 1
1.1 History of Concurrency 1
1.2 Advantages of Threading 2
1.2.1 The power of multi-processor 2
1.2.2 Simplicity of Modeling 3
1.2.3 Simplified handling of asynchronous Events 3
1.2.4 responds to a more responsive user interface 4
1.3 Thread-Risk 4
1.3.1 Security Issues 5
1.3.2 Active Question 7
1.3.3 Performance Issues 7
1.4 Threads Everywhere 7
The first part of the basic knowledge
Chapter 2nd Thread Safety 11
2.1 What is thread safety 13
2.2 Atomicity 14
2.2.1 Race Condition 15
2.2.2 Example: Race condition in deferred initialization 16
2.2.3 Compound Operation 17
2.3 Plus lock mechanism 18
2.3.1 Built-in lock 20
2.3.2 Re-entry 21
2.4 Using a lock to protect the state 22
2.5 Activity and Performance 23
Chapter 3rd sharing of Objects 27
3.1 Visibility 27
3.1.1 Failure Data 28
3.1.2 64-bit operation for non-atomic 29
3.1.3 Locking and Visibility 30
3.1.4 Volatile variable
30
3.2 Release and Escape 32
3.3 Thread Closure 35
3.3.1 Ad-hoc Thread Closure 35
3.3.2 Stack Closure 36
3.3.3 Threadlocal Class 37
3.4 Invariance 38
3.4.1 Final Domain 39
3.4.2 Example: Using volatile types to publish immutable objects 40
3.5 Security Release 41
3.5.1 Incorrect release: The correct object was destroyed 42
3.5.2
Immutable objects and initialization security 42
3.5.3 Common patterns for secure publishing 43
3.5.4 Facts Non-volatile object 44
3.5.5 Variable Object 44
3.5.6 Sharing objects Securely 44
Chapter 4th Composition of Objects 46
4.1 Designing Thread-Safe Classes 46
4.1.1 Collecting synchronization Requirements 47
4.1.2 Dependent State Operation 48
Ownership of the 4.1.3 State 48
4.2 Instance Closure 49
4.2.1 Java Monitor Mode 51
4.2.2 Example: Vehicle tracking 51
4.3 Delegate for thread safety 53
4.3.1 Example: Consignment-based vehicle tracker 54
4.3.2 Independent State Variable 55
4.3.3 when a delegate fails 56
4.3.4 Publishing the underlying state variable 57
4.3.5 Example: Release status of Vehicle tracker 58
4.4 Adding features to existing thread-safe classes 59
4.4.1 Client plus lock mechanism 60
4.4.2 Combination 62
4.5 Documenting the synchronization policy 62
5th Basic Building Module 66
5.1 Synchronizing Container Classes 66
5.1.1 problems with the synchronization container class 66
5.1.2 Iterators and concurrent-modificationexception68
5.1.3 Hidden iterators 69
5.2 Concurrent Containers 70
5.2.1 ConcurrentHashMap71
5.2.2 Additional atomic Map Operations 72
5.2.3 CopyOnWriteArrayList72
5.3 Blocking queue and producer-consumer mode 73
5.3.1 Example: Desktop Search 75
5.3.2 Serial Thread Closure 76
5.3.3 Dual-ended queue and work 77
5.4 Blocking method and interrupt method 77
5.5 Sync Tool Class 78
5.5.1 Latching 79
5.5.2 FutureTask80
5.5.3 Signal Volume 82
5.5.4 Fence 83
5.6 Building an efficient and scalable result cache 85

...

Java concurrent Programming Combat/Dong Yunlan PDF Download Link:
https://u253469.pipipan.com/fs/253469-230062521

For more books and recommended ebooks, please pay attention to:
http://zhaozhiyong.cn

"Java Concurrent programming Combat"/Dong Yunlan translation "PDF" download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.