Concurrent HashMap: Java Concurrent Container for J.U.C
Table of Contents
Implementation of Concurrent HashMap
Important concepts
Important internal classes
Node
TreeNode
TreeBin
ForwardingNode
Constructor
Initialization: initTable()
put operation
get operation
size operation
Capacity expansion operation
Conversion of Red and Black Trees
H ...
Posted by fonster_mox on Thu, 26 Sep 2019 07:11:27 +0200
[java] Deadlock Principle Analysis and Detection Tool
I recently read some blogs about multithreaded deadlock analysis, especially Java multithreaded thread dump and analysis (jstack) In this article, the explanation is the clearest. I have some experience in deadlock analysis, and I will summarize and record it below.
Catalog
1. Introduction to deadl ...
Posted by Thauwa on Wed, 25 Sep 2019 08:18:27 +0200
A simple performance test for synchronized and Lock locks
For these two kinds of locks, the performance of synchronized before JDK1.6 is far inferior to that of Lock, because synchronized needs to call the functions of the operating system and operate the kernel to complete, which is time-consuming. After JDK1.6, Oracle has optimized synchronized a lot, and sy ...
Posted by medaswho on Mon, 23 Sep 2019 13:13:28 +0200
Spring source Spring AOP
AOP aspect-oriented programming, relative to OOP object-oriented programming.
Spring AOP exists to decouple. AOP allows a group of classes to share the same behavior. In OOP, code coupling can only be enhanced by inheriting classes and implementing interfaces, and class inheritance can only be a single inheritance, which prevents more behaviors ...
Posted by trillion on Mon, 23 Sep 2019 05:32:52 +0200
Deep understanding of JVM memory allocation strategies
Understanding JVM memory allocation strategies
Three Principles + Guarantee Mechanism
There are three main principles and guarantee mechanisms for JVM memory allocation mechanism
Specifically as follows:
Priority assigned to eden area
Big object, directly into the older generation
Distribution of long-term survivors to older generations
Space ...
Posted by mimilaw123 on Sat, 21 Sep 2019 18:44:34 +0200
Loading Beans for Spring Ioc Source Analysis: Instantiating Beans
Last article Loading of Beans for Spring Ioc Source Analysis (4): createBean() In this article, we will give a detailed analysis of the createBeanInstance() method for instantiating bean s, and the remaining steps will be described in other articles.
Instantiate Bean
At doCreateBean() code <2>, there is a line of code instanceWrapper = ...
Posted by grandman on Wed, 18 Sep 2019 02:48:27 +0200
Analysis of various data structures
Analysis of arrays and single linked lists?
2. Analysis of stacks and teams?
I. Linear Tables
Linear table is the most common and simplest data structure. It is a finite sequence of n data elements.
There are two ways to realize linear ...
Posted by Knifee on Tue, 17 Sep 2019 08:45:46 +0200
Are you familiar with the use and principles of RestTemplate? [Enjoy Spring MVC]
Each sentence
Happy Mid-Autumn Festival
Preface
Before reading this article, I suggest reading it first. Opening chapter The effect is better. RestTemplate is a client tool provided by Spring to access Rest services. It provides a variety of convenient methods to access remote Http services, which can greatly improve the efficiency of client wr ...
Posted by jwrightnisha on Tue, 17 Sep 2019 06:09:41 +0200
[Deep and shallow-JVM] (76): classloader
Method
public Class<?> loadClass(String name) throws ClassNotFoundException
Play Class instances of this class by class name
protected final Class<?> defineClass(byte[] b,int off,int len)
According to the given bytecode stream b, off and len parameters represent the position and length of the actual class information in the byte arr ...
Posted by ungovernable on Mon, 16 Sep 2019 13:24:26 +0200
spring Learning Records
**
Basic Introduction to spring
**1. What is Spring?
Spring is a lightweight framework for IoC and AOP containers.A framework for providing basic services for Java applications to simplify the development of enterprise applications, which allows de ...
Posted by turtleman8605 on Mon, 16 Sep 2019 05:23:04 +0200