Java Concurrency CPU must know the underlying knowledge

Along with 65 lessons thoroughly get to know the author of Java Concurrency principles column, step by step, get to know the complete Java Concurrency principle.

About the author: aspects pseudonym seaboat, specializes in engineering algorithms, artificial intelligence algorithms, natural language processing, architecture, distributed, high concurrency, big data and search engine technology, most programming languages ​​will use, but better at Java, Python and C ++. Likes reading, writing and sports, good at basketball, running, swimming, fitness and badminton and other sports. Open source advocate, advocating technological freedom, more respect for freedom of thought. Published books: "Tomcat core design analysis," "graphical data structures and algorithms", "artificial intelligence principles of science."

Foreword

Why Java complicated with so many difficulties it? Java language is not really a problem, because the problem itself is essentially concurrent operations, in addition to some of the problems are caused by the architecture of the computer triggered. In order to better understand the problem of concurrent Java process, we should have some basic understanding of the CPU.

CPU

In the information age, CPU is a concept we are familiar with, we all know that the brain is the computer's CPU. Computer in a series of complex instructions which it is responsible for the implementation, which is usually what we call the instruction program. The CPU in the end what is it? That central processor CPU, which is a circuit for controlling data manipulation computer. It mainly consists of three parts: an arithmetic / logic unit, control unit and register unit.

The control unit is a command and control center of the entire CPU, its main role is to coordinate the activities of the machine, by sending a control command to the other two units to achieve the control effect. The main duties of the arithmetic / logic unit is responsible for performing operations, comprising an arithmetic and logical operations, it is estimated that the control command sent from the execution unit corresponding to an arithmetic operation. The main role of the register unit is used to temporarily store data, or which holds processed data to be processed, it appears to reduce the number of access to the CPU to memory, the read data to enhance the performance, so as to enhance the overall efficiency of the CPU .

html>

Guess you like

Origin blog.csdn.net/wangyangzhizhou/article/details/103931324