juc concurrent programming learning notes (Shang Si Valley)

1. What is JUC 1.1 introduction to JUC JUC is short for Java. Util. Concurrent toolkit. This is a toolkit for processing threads. JDK 1.5 began to appear. 1.2 processes and threads Process is a running activity of a computer program on a data set. It is the basic unit for resource allocation and scheduling of the system and the basis of the ...

Posted by infyportalgroup on Fri, 19 Nov 2021 04:43:34 -0800

The art of multiprocessor programming - 3. Spin lock and contention

This series is the reading notes of the art of multiprocessor programming. It is understood and implemented on the basis of the original book and combined with the code of OpenJDK 11 or above. And share some personal information with those who want to have a deeper understanding according to their personal data search and understanding experien ...

Posted by zypher11 on Fri, 05 Nov 2021 20:54:01 -0700

Synchronization lock for concurrent programming

Synchronization lock for concurrent programming 1 thread security The problem is that when multiple threads operate on the same data, we often can't get the expected results. What's the reason for this problem? In fact, the data is not visible to multiple threads. These threads cannot operate the public data in an orderly manner. The operatio ...

Posted by step on Sun, 24 Oct 2021 05:49:34 -0700