Play with Java concurrent tools, proficient in JUC, become a concurrent generalist
December 8, 2023
by 陳志豪
No Comments
Learn how to play Java Concurrency tools, master JUC, and become concurrent Generalists in chapter 3, chapter 5, Chapter 8, Chapter 11, Chapter 13, chapter 14.
Chapter 3 thread pools
3-1 Introduction to thread pools
3-2 Timing of adding or subtracting threads
3-3 keepAliveTime and thread factory
3-4 Shows the overflow of memory
3-5 Thread pool usage demo
3-6 Compare the characteristics of thread pools
3-7 Admiral Five Tigers accept thread pool
3-8 Hook: Feed the thread pool
3-9 Analysis of the Executor family
3-10 Thread pool status and usage considerations
Chapter 5 Scattered knowledge points
5-1 Overview of this chapter
5-2 The capacity of the built-in lock is insufficient to meet the requirements
5-3 tryLock attempts to obtain the lock
5-4 code demonstration: lock acquisition is interrupted
5-5 Lock visibility guarantee
5 to 6 Mutually exclusive synchronization lock
5-7 Non-mutex synchronization lock
5-8 Usage of reentrant locks
5-9 Reentrant properties and source code parsing
Should some People be allowed to “Get rich first”?
5-11 code demonstration: first case, pros and cons, source code analysis
5-12 Usage of shared and exclusive locks
5-13 Deep understanding of interaction ideas
5-14 Seems to read lock step by step
5-15 Tips for Excelling Other Interviewers Part 1
5-16 Tips for Exceeding 95% of Interviewees Part 2
5-17 “Easy” of reading and writing lock from luxury to thrift
5-18 Cycle try without releasing CPU
5-19 Interruptible lock
5-20 How can we make locks work better?
5-21 Homework Section (File)
5-22 Summary of “Lock”
5-23 Homework Section (File)
Chapter 8: The Easiest Way to Concurrency Security
8-1 What is “invariance”?
8-2 Final variable assignment timing
8-3 Final points to note
8-4 Stack closure technique
8-5 Interview questions: True or false Monkey King
8-6 Homework Section (File)
Chapter 11 AQS
11-1 How to learn AQS?
11-2 Relationship between Semaphore and AQS
11-3 Metaphor: The responsibilities of HR and AQS are unified
11-4 The three elements of AQS
11-5 AQS source code analysis
11-6 AQS license issue
11-7 Use AQS to achieve exclusive locks
11-8 DIY disposable door latch
11-9 Core ideas of AQS
11-10 AQS Supplementary materials
Chapter 13 builds high-performance caching from 0 to 1
13-1 the cache
13-2 Performance and reusability issues exposed
13-3 decoupled with decorator pattern
13-4 Use ConcurrentHashMap to ensure concurrency security
13-5 Solve the double calculation problem with Future
The 13-6 atom combination operation fills the hole
13-7 What can I do if the calculation error occurs?