Follow the compilation principle and the main process to realize "printing 1 + 1 results"

Demo prototype project that follows the compilation principle and main process to print 1 + 1 Results Project introduction Printing 1 + 1 results is so complicated that it is not a dazzling skill, but only for simple display: 1. Lexical analyzer; 2. Parser; 3. Script compiler; 4. There are four processes for compiling executors, because the ...

Posted by Big_Ad on Thu, 10 Mar 2022 20:14:59 +0100

Deadlock and deadlock detection

1, What is a deadlock For example, if thread a occupies resource 1, thread b occupies resource 2, thread b needs resource 1 and thread a needs resource 2, a deadlock will occur In the deadlock solution, log and gdb debugging can be used when the number of threads is small log and gdb cannot be used to solve the problem of too many thre ...

Posted by pentinat on Thu, 10 Mar 2022 17:25:19 +0100

Builder Pattern [4 / 23]

4. Builder Pattern catalogue Builder pattern Model motivationPattern definitionPattern structureSequence diagramcode analysispattern analysisexampleadvantageshortcomingApplicable environmentMode applicationMode extensionsummary 4.1. Model motivation There are many components in the real world, such as the wheel, the steering wheel and ...

Posted by newb110508 on Thu, 10 Mar 2022 02:23:24 +0100

Basic data types and variables of java series

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it Basic data types and variables of java series preface In ancient times, great events must be established not only by extraordinary talents, but also by perseverance! 1. Literal consta ...

Posted by Daisy Cutter on Wed, 09 Mar 2022 16:55:59 +0100

Implementation of io stream serialization in express e stack

Express e stack (Io serialization) MVC mode (three-tier architecture mode) Concept: MVC (model view controller) is a framework mode. In the classic MVC mode, M refers to the business model, V refers to the user interface, and C refers to the controller. M: Namely model A model is a model that represents business rules. V: Namely View Vi ...

Posted by CantonWeb on Wed, 09 Mar 2022 16:25:17 +0100

ThreadPoolExecutor task submission and stop process and underlying implementation

ThreadPoolExecutor task submission executor task submission process It can be seen from the source code that the Excutor interface under JUC only provides an executable method executor public interface Executor { /** * Executes the given command at some time in the future. The command * may execute in a new thread, in a poole ...

Posted by jmaker on Wed, 09 Mar 2022 13:50:35 +0100

Spring from entry to soil (easy to understand version)

1, Basic overview 1.1 what is spring? ​ Spring is a lightweight java development framework rising in 2003. It is created to solve the complexity of enterprise application development. The core of spring is inversion of control (IoC) and aspect oriented programming (AOP). Spring is a lightweight open source framework that can be used in Java ...

Posted by rossmurphy on Wed, 09 Mar 2022 12:56:44 +0100

The finishBeanFactoryInitialization method in the eighth part of Spring source code analysis is to initialize the singleton bean

The finishBeanFactoryInitialization method in the eighth part of Spring source code analysis is to initialize the singleton beanA profound interpretation of the seven thousand word long article, how to initialize the singleton bean in Spirng, and how does Spring solve the circular dependency most often asked in the interview?Today, the most imp ...

Posted by khendar on Wed, 09 Mar 2022 04:25:29 +0100

[common Spring error cases] exception of calling Bean object method and throwing null pointer in constructor

preface Sometimes, when you don't understand the way Spring manages Bean, you may encounter various problems, such as calling a method of Bean object in the container, such as: @Service public class MyServiceImpl { @Resource private UserServiceImpl userService; public MyServiceImpl() { userService.method(); } ...

Posted by beselabios on Wed, 09 Mar 2022 01:49:35 +0100

JAVA operator summary

catalogue Arithmetic operators (+,, *, /) Modulo / remainder operator (mod) Self increasing and self decreasing operators (Num + +, Num --, + num, -- Num) Logical operators (& &, ||,!) Bit operation (&, |, ^) < < > > and > > > Comparison operators (<, >, < =, > =, = =,! =) Operator typeSym ...

Posted by Jose Arce on Tue, 08 Mar 2022 23:37:51 +0100