Dark horse programmer full set of Java tutorials_ Java basics tutorial_ Implementation of multithreading multithreading

1.1 process: it is a running program It is an independent unit for system resource allocation and call;Each process has its own memory space and system resources. 1.2 thread: it is a single sequential control flow that is often summarized by people and you. It is an execution path Single thread: if a process has only one execution path, ...

Added by eternalprophet on Sun, 02 Jan 2022 21:30:06 +0200

ThreadLocal principle and usage scenario

ThreadLocal ThreadLocal means thread local variable, which is used to solve the problem of accessing shared variables when multiple threads are concurrent. The so-called shared variables refer to instances, static attributes and arrays in the heap; Access to shared data is controlled by Java's memory model (JMM), which is as follows: [refe ...

Added by cheekychop on Sun, 02 Jan 2022 19:01:17 +0200

2021-12-28 Spring day4 (dynamic proxy, Aop five notifications)

1, Aop Aspect Oriented Programming is a supplement to object-oriented thinking. Aspect oriented programming is to dynamically enhance the function of the method without changing the program source code when the program is running. There are many common use scenarios: journalTransaction -- common code extractionDatabase operation... The ...

Added by complex05 on Sun, 02 Jan 2022 18:28:54 +0200

The practice of Optional in Java 8

I am Xiao Hei, a programmer who "lingers" on the Internet Pay attention to the official account of the same name [Xiao Hei Java], more dry cargo content is served first, and more occasional lottery offers. Running water doesn't compete first. It's important to talk preface No matter a white programmer, CRUD BOY who has worked ...

Added by Idri on Sun, 02 Jan 2022 18:10:31 +0200

Java library management (visualization, file)

catalogue requirement design sketch Brief explanation of function realization Some methods code requirement At the end of the year, I suddenly remembered that I hadn't published an article this semester. Think about sending something. I saw the demand for a java applet in a group yesterday. I have nothing to do today. I also wrote a ...

Added by stephfox on Sun, 02 Jan 2022 15:11:25 +0200

Summary of basic process of production service GC tuning practice

preface Performance tuning of Java virtual machine is a very broad topic and a very difficult process in practice. Because it needs a systematic optimization method and clear optimization expectations. The default JVM parameters attempt to provide acceptable performance in most cases; However, depending on the behavior of the application and t ...

Added by quadlo on Sun, 02 Jan 2022 14:51:51 +0200

IoC decoupling learning and practice of Spring

Overview of Spring What is spring Spring is a lightweight open source framework for layered Java SE/EE applications, IoC (Inverse Of Control) and AOP (aspect oriented programming: Aspect Oriented Programming) as the kernel, it provides many enterprise application technologies such as presentation layer spring MVC, persistence layer Spring ...

Added by Noumes on Sun, 02 Jan 2022 13:55:52 +0200

Select statement -- select the correct one

Select the type of statement There are two kinds of selection statements in c language 1. if else statement 2. switch statement As the name suggests, we will face some choices. If the selection is correct, it will be executed, otherwise it will not be executed c language is a structured programming language There are sequential struct ...

Added by koenigsbote on Sun, 02 Jan 2022 06:58:12 +0200

Front end usage function: the front end directly requests the back-end stream to download files

Recently, the project encountered a small requirement that the file name is provided by the back end when the front end downloads a file (it turned out that the front end writes the file name dead). Our project architecture is SpringBoot+React (TypeScript). I looked at the back-end code and inserted the file name into the header of the response ...

Added by cytech on Sun, 02 Jan 2022 03:10:13 +0200

Let's introduce the common design pattern (the first factory pattern)

Factory mode Factory Pattern is one of the most commonly used design patterns in Java. This type of design pattern is a creation pattern, which provides the best way to create objects. In factory mode, when creating objects, we do not expose the creation logic to the client, and point to the newly created objects by using a common interface. i ...

Added by Hitwalker on Sun, 02 Jan 2022 03:08:53 +0200