Implementation principle and source code analysis of Golang map

The source code version involved in this article is Go SDK 1.16.1 1. Basic structure of map Map is a common data structure in Golang. It is essentially a hash table, similar to HashMap in java and dict in Python. It is a data structure that stores key value pairs. A general map contains two main structures: Array: the values in the arra ...

Added by fasmy98 on Tue, 18 Jan 2022 04:52:16 +0200

SpringBoot source code analysis II (startup process principle)

Spring Boot source code analysis II (startup process principle) entrance @SpringBootApplication public class MyApplication { public static void main(String[] args) { SpringApplication.run(MyApplication.class, args); } } **SpringApplication.run(MyApplication.class, args);** Follow in public static ConfigurableApplica ...

Added by GBahle on Mon, 17 Jan 2022 21:59:40 +0200

Interpretation of HashMap HashTable HashSet source code

A HashMap HashTable HashSet HashMap is a hash table that stores key value mappings. It inherits from AbstractMap and implements Map, Cloneable and Serializable interfaces. The implementation of HashMap is not synchronous, which means that it is not thread safe. Its key and value can be null. The mappings in HashMap are not ordered.  &nbs ...

Added by fred_belanger on Sat, 15 Jan 2022 20:50:55 +0200

Detailed explanation of the startup process of Android interview Activity

Startup process of root Activity The overall process of starting the root Activity is as follows: It is mainly divided into four parts The Launcher requests ATMS to create a root ActivityATMS will request zygote to create the application processzygote to create application processATMS requests ApplicationThread to create a root Activity I ...

Added by mATOK on Thu, 13 Jan 2022 12:59:14 +0200

java collection [13] - a wave of Stack source code analysis

prefaceCollection source code analysis series: Java collection source code analysisThe vector, ArrayList and LinkedList have been analyzed. I wanted to start Map, but I looked at the following interface design framework diagram: the whole interface framework relationship is as follows (from Baidu Encyclopedia):It turns out that there is another ...

Added by masalastican on Mon, 10 Jan 2022 02:44:46 +0200

The difference between execute and submit in Java thread pool series

This is an interview question a few years ago. The answers on the Internet are generally 1. execute can only submit tasks of Runnable type with no return value. Submit can submit both Runnable and Callable tasks and return Future type. 2. The task exception submitted by the execute method is thrown directly, while the submit method captures ...

Added by zhopa on Sat, 08 Jan 2022 06:01:41 +0200

C#:List source code, attention to use, optimization

The inside of List is implemented by array instead of linked List, and when the specified capacity is not given, the initial capacity is 0 Add // Adds the given object to the end of this list. The size of the list is // increased by one. If required, the capacity of the list is doubled // before adding the new element. // public void Add(T it ...

Added by Hikari on Fri, 07 Jan 2022 17:04:30 +0200

Write a Spring framework with 300 lines of code. Although the sparrow is small, it has five dirty parts

This article is excerpted from Spring 5 core principles1 custom configuration1.1 configure application Properties fileFor the convenience of parsing, we use application Properties instead of application XML file. The specific configuration contents are as follows: scanPackage=com.tom.demo 1.2 configuring web XML fileAs we all know, all projects ...

Added by roach on Wed, 05 Jan 2022 16:01:49 +0200

win10 Idea builds spring 5.3 10-snapshot source code environment

Tools used idea2020.3 gradle6.8.3 openJDK1.8.0_302 spring5.3.10-SNAPSHOT Download path of gradle and openJDK (1 point): https://download.csdn.net/download/qq_22843051/20619765 Java installation steps openJDK1.8.0_302 download address (there is a point here. It's not easy to find this version) https://download.csdn.net/download/qq_228 ...

Added by llama on Wed, 05 Jan 2022 07:11:06 +0200

Lin Sanxin drew 8 pictures, the most easy to understand analysis of Vue3 responsive core principle

prefaceHello, I'm Lin Sanxin. As you know, this rookie usually writes more basic articles. I always believe in two sentencesSpeak the most difficult knowledge in the most easy to understand wordsFoundation is the premise of advancedIn fact, Vue3 has been out for a long time and may be used by most companies. However, what is better about Vue3 t ...

Added by webzyne on Wed, 05 Jan 2022 05:48:10 +0200