Classic of operating system | producer and consumer problems

1, Overview of producer consumer issues Description: two or more threads share the same buffer. One or more threads as a "producer" will constantly add data to the buffer, and the other or more threads as a "consumer" will take data from the buffer. Note the following: Producers and consumers must use buffers that ar ...

Posted on Sun, 05 Dec 2021 13:33:42 -0500 by gingerboy101

SpringBoot -- Conditional annotation for detailed explanation and application of automatic assembly principle

         As the mainstream framework of today's development, SpringBoot is impossible as a java developer. It is typical and easy to use, but when you understand the principle, you will unconsciously sigh, really TMNB!         This paper mainly explains the principle of its automatic ...

Posted on Sun, 05 Dec 2021 12:59:37 -0500 by jeff_valken

intern method learning of String class

The intern() method in the String class belongs to the native methodBecause of the changes in the implementation of the method area in different versions of JDK, especially the movement of the string constant pool, the intern() method also changes 1. Change of intern method 1.1 String.intern() method in JDK 1.6 In JDK 1.6, the string constan ...

Posted on Sun, 05 Dec 2021 09:06:18 -0500 by Xurion

JUC learning - deep analysis of thread pool executor

1, Understanding of ThreadPoolExecutor The core implementation class of thread pool in Java is ThreadPoolExecutor. This chapter analyzes the core design and implementation of java thread pool based on the source code of JDK 1.8. Let's first look at the UML class diagram of ThreadPoolExecutor to understand the inheritance relationship of Thread ...

Posted on Sun, 05 Dec 2021 08:11:02 -0500 by dagee

[Spring AOP] term analysis + AspectJ annotation usage

AOP (terminology) 1. Connection point: the method that can be enhanced is called connection point 2. Pointcuts: the methods that are actually enhanced are called pointcuts 3. Notification (enhanced): the logical part that is actually enhanced. There are several types of notifications: l pre notification: notification before method executio ...

Posted on Sun, 05 Dec 2021 08:00:03 -0500 by seanmayhew

Deep parsing: understand how MyBatis is initialized in the Spring container

The initialization process of MyBatis is to generate some necessary objects and put them into the Spring container. The question is what objects are generated by this process? When MyBatis initialization fails, how to correctly find the entry point to analyze the problem? This paper will introduce these problems. Based on MyBatis 3 and Spr ...

Posted on Sun, 05 Dec 2021 07:13:01 -0500 by sxiix

Java object oriented

Note: this section is used to review abstractions and interfaces. 1, abstract ① A method modified by the abstract keyword is called an abstract method, which has no method body; ② The class modified by the abstract keyword is an abstract class. If a class contains abstract methods, the class must be an abstract class; ③ When a subclass inhe ...

Posted on Sun, 05 Dec 2021 04:39:54 -0500 by ClyssaN

If you want to know about mybatis, just look at mine

1, What is mybatis         Many IT xiaomengxin will learn mybatis in the process of learning programming, but when they first come into contact, they may have these questions. What is mybatis, what are its characteristics, and what is the use of learning. With your questions, let's see Xiaochen's next!      ...

Posted on Sun, 05 Dec 2021 04:09:03 -0500 by sspoke

Java files read and write multiple objects

Before sorting out file read and write objects, review the contents of file read and write: Character stream and byte stream 1. Character stream In the process of transmission, the most basic unit of transmitted data is the stream of characters Read file contents through BufferedReader: public static void readFile() throws IOException { ...

Posted on Sun, 05 Dec 2021 03:27:04 -0500 by RockRunner

Deep parsing: understand how MyBatis is initialized in the Spring container

The initialization process of MyBatis is to generate some necessary objects and put them into the Spring container. The question is what objects are generated by this process? When MyBatis initialization fails, how to correctly find the entry point to analyze the problem? This paper will introduce these problems. Based on MyBatis 3 and Spr ...

Posted on Sun, 05 Dec 2021 02:38:20 -0500 by capslock118