Fundamentals of Java language (array) (recursive)
1. Array overview and definition format description
1. Why is there an array Now you need to make statistics on the salary of employees in a company, such as calculating the average salary, finding the maximum salary, etc. Assuming that the company has 80 employees, Using the knowledge learned above ...
Posted by antisback on Wed, 27 Oct 2021 20:15:01 -0700
Destroyorringbuffer multi producer write
Previous chapter This chapter mainly introduces how a single producer writes data to RingBuffer data, how not to make rings overlap, notify consumers after writing, batch processing at one end of the producer, and how multiple producers work together. This chapter mainly introduces how multiple producers write data to RingBuffer data.
1. The M ...
Posted by Beans on Wed, 27 Oct 2021 20:06:08 -0700
Analysis of agent model
1 from static agent to dynamic agent
For example, some people will be urged to marry by their parents when they reach the marriageable age. Now, under various pressures, many people choose to marry and have children later. So anxious parents began to date their children everywhere, more anxious than their children themselves. Let's look at the ...
Posted by phpbeginer on Wed, 27 Oct 2021 20:06:25 -0700
Class loader & Reflection & modularization
1. Class loader
1.1 class loading [understanding]
Description of class loading
When a program wants to use a class, if the class has not been loaded into memory, the system will initialize the class through three steps: class loading, class connection and class initialization. If there are no accidents, the JVM will complete these three st ...
Posted by GooberDLX on Wed, 27 Oct 2021 19:58:42 -0700
DisruptorRingBuffer single producer write
The previous chapter mainly introduces how consumers read data from RingBuffer. This chapter mainly introduces how a single producer writes data to RingBuffer. How to avoid overlapping rings in the process of RingBuffer data writing, notify consumers after writing, batch processing at the producer side, and how multiple producers work together. ...
Posted by The-Last-Escape on Wed, 27 Oct 2021 19:48:18 -0700
Java19 -- Collection 1 (Collection+List+ArrayList+LinkedList)
1 Collection interface
1.1 general
The English name Collection is the data structure used to store objects. The length is variable, and different types of objects can be stored in the Collection. It also provides a set of methods to operate batch objects.
Disadvantages of array: the length is fixed, the access mode is single, and the ope ...
Posted by robocop on Wed, 27 Oct 2021 19:26:22 -0700
Life cycle of HTTP request in Go service
Go language is a common and very suitable tool for writing HTTP services. This blog post discusses the routing of a typical HTTP request through a go service, involving routing, middleware and related issues such as concurrency.
In order to have specific code for reference, let's start with this simple service code (from Go by Example: ...
Posted by rajavel on Wed, 27 Oct 2021 19:02:34 -0700
Notes on ten classic sorting algorithms
Related concepts
stability
Stable: if a was in front of b and a=b, a will still be in front of b after sorting.Unstable: if a was originally in front of b and a=b, a may appear after b after sorting.
Time complexity
In general, the number of times the basic operation is repeated in the algorithm is a function of the problem scale n, which i ...
Posted by romano2717 on Wed, 27 Oct 2021 18:45:26 -0700
CSS elastic box
10-26
Elastic box (display: flex)
An elastic box consists of a flex container and a flex item.
Elastic containers are defined as elastic containers by setting the value of the display property to flex or inline flex.
The elastic container contains one or more elastic child elements.
Note: the outside of the elastic container and the inside ...
Posted by schoolmommy on Wed, 27 Oct 2021 18:13:48 -0700
js data structure and algorithm learning stack queue single linked list
Understanding data structures
Data structure is a way for computers to store and organize data. A data structure is a collection of data elements that have one or more specific relationships with each other-- Baidu Encyclopedia We understand data structures from our own perspective.
Data structure is a way for computers to store and organize ...
Posted by misterfine on Wed, 27 Oct 2021 17:39:51 -0700