Netty Source Code Analysis--Client Access Acept Process
Read through this article, you will understand1. How netty accepts new requests2. How netty assigns reactor threads to new requests3. How netty adds ChannelHandler to each new connection
reactor thread in netty
There are two types of reactor threads at the core of netty. They can be regarded as two types of engines in netty, which drive the w ...
Added by Monshery on Wed, 11 Sep 2019 07:08:29 +0300
ThreadLocal parsing of Java concurrent programming
Links to the original text: https://juejin.im/post/5d7771c9f265da03c34c25da
This article discusses ThreadLocal in JDK 1.8
(If you want to learn programming by yourself, please search Circle T community More industry-related information and ...
Added by Braet on Wed, 11 Sep 2019 06:09:57 +0300
Several Common Ways to Create Multithreading
Multithreading
Four ways to create multithreading:
1.1 Inheritance of Thread Class
Advantages: Simple code
Disadvantage: Can't inherit other classes (Java single inheritance multiple implementations)
//Inheriting the Thread class
public class ...
Added by Pointybeard on Wed, 11 Sep 2019 05:41:56 +0300
Analysis of ArrayList Expansion Mechanisms from the Source Code Perspective (Multi-shore College)
Let's start with the constructor of ArrayList.
ArrayList can be initialized in three ways. The source code of the construction method is as follows:
/**
* Default initial capacity size
*/
private static final int DEFAULT_CAPACITY = ...
Added by gojiita on Tue, 10 Sep 2019 08:31:25 +0300
Super Interface for Java Collection Source Analysis: Collection_1 Classroom (Multi-shore College)
Collection
Collection is a superset of List, Queue and Set, which is directly inherited from Iterable, that is, all Collection collection classes support for-each loop. In addition, Collection is also a model of Interface-oriented programming, through which it can transform between classes, which is also one of the charms of object-oriented pro ...
Added by FillePille on Tue, 10 Sep 2019 07:49:23 +0300
Java - Collection, Generics
Articles Catalogue
[Collection, Generics]
primary coverage
Teaching objectives
Chapter 1 Collection Sets
Overview of 1.1 Collections
1.2 Collection Framework
1.3 Collection Common Functions
Chapter 2 Iterator Iterator Iterator Iterator
2.1 Iter ...
Added by gsv2com on Mon, 09 Sep 2019 10:19:52 +0300
java Wechat Public Development (Original Page - Web Page Authorization)
In the previous chapter: java Wechat Public Development (Original Text - Message Management)
Since it is the development of public numbers, of course, it will involve our web side. After learning the previous chapters, the little friends will find th ...
Added by fishown on Sat, 07 Sep 2019 15:00:41 +0300
Java uses COM components to convert Excel into HTML or PDF documents
Business requirements are as follows:
1. Convert Excel uploaded by users to HTML for page display (Excel document format is optional)
2. Convert Excel uploaded by users to PDF for download (no page change, only on one PDF)
In response to the a ...
Added by webbnino on Sat, 07 Sep 2019 11:32:07 +0300
How do I get the Thread return value? (FutureTask Interpretation)
Fallen life...
How do I get the Thread return value?
Occasionally see this question, for the standard jdk1.8, do we take the answer in minutes?Answer: Simple, Callable, perfect solution, next question...
But what do the predecessors of jdk1.4 (and even earlier) do to get the thread return value? Or, disable the Callable skill, how to get the th ...
Added by vichiq on Thu, 29 Aug 2019 11:15:22 +0300
Class Loading Mechanism, Parent Delegation Model
Generally speaking, we divide the class loading process of java into three main steps: loading, linking and initialization.
The first stage is the loading stage. It is java that reads bytecode data from different data sources into JVM and maps it to JVM-approved data structures, and maps it to JVM-approved data structures (Class objects). The d ...
Added by tharagleb on Tue, 27 Aug 2019 15:51:40 +0300