Day20 multi thread creation, life cycle, lock

Program, process, thread Program: static concept, a collection of instructions written in a language, a piece of static code Process: the execution process of a program or the program being executed. It is a dynamic process with a life cycle Thread: a process is refined into a thread, which is the internal execution path of a program Concurren ...

Added by MidOhioIT on Fri, 04 Mar 2022 20:37:40 +0200

Java data structure and algorithm -- in situ hash algorithm

In situ hash algorithm The in-situ hash algorithm is used to solve the problem with spatial complexity of O(1), and the result range is between [0, len (Num)], and num is the solution array provided by the problem. The in-situ hash algorithm is mainly used in the array solution with the result range of [0, len (Num)]. The space complexity is ...

Added by wisewood on Fri, 04 Mar 2022 20:30:33 +0200

Basic Lecture Notes

Basic chapter Key points of basic part: algorithm, data structure and basic design mode 1. Binary search requirement Be able to describe the binary search algorithm in your own languageAble to write binary search codeBe able to answer some changed test methods Algorithm description Premise: there is A sorted array A (assuming it is ...

Added by davidlenehan on Fri, 04 Mar 2022 20:05:05 +0200

Java heap & priority queue

catalogue 1. Priority queue 1.1 concept 1.2 internal principle 1.3 operation - queue entry 3.4 operation - out of queue (highest priority) 3.5 borrow heap to realize priority queue 1. Implement an interface 2. See the previous section for the complete code of the heap 3. Priority queue 3.6 testing 1. Priority queue 1.1 concept ...

Added by fris on Fri, 04 Mar 2022 19:51:43 +0200

@SentinelResource annotation details

stay SpringCloudAlibaba-Sentinel In this document, we have introduced the general knowledge of Sentinel. However, the @ SentinelResource annotation did not mention its details in that document, that is, it was simply mentioned. The annotation of that document is introduced at: https://www.yuque.com/shmily-kbnvv/xxbj/ci2gs5#9lIy9 //todo to be mo ...

Added by p.utsav on Fri, 04 Mar 2022 18:56:17 +0200

Three hundred rows per day (13 days: linked list)

Three hundred rows per day (13 days: linked list) Note: here are the synchronous notes and records of JAVA self-study and understanding. If you have any questions, please correct them 1, About linked list The logical structure and physical structure of the linked list are not as close as the sequential list. The physical storage of the ...

Added by davidlenehan on Fri, 04 Mar 2022 16:56:57 +0200

Test questions and detailed explanation of the 10th Lanqiao cup provincial competition in 2019 (Java undergraduate group C)

[Blue Bridge Cup] summary of real questions and solutions over the years Results fill in the blanks (full score 5 points)Results fill in the blanks (full score 5 points)Results fill in the blanks (full score 10 points)Results fill in the blanks (full score 10 points)Results fill in the blanks (Full Score: 15 points)Programming (Full Score: 15 ...

Added by Wien on Fri, 04 Mar 2022 16:23:21 +0200

Weekly leetcode - 02 linked list topic 237/83/234/138/92/142/Offer 22/148/23/24/147/86/61/328/2/Offer06

leetcode - 237. Delete node in linked list Please write a function to delete a specific node in the single linked list. When designing the function, you should pay attention to that you cannot access the head node of the linked list. You can only directly access the node to be deleted. The topic data ensures that the node to be deleted is ...

Added by tress on Fri, 04 Mar 2022 16:20:49 +0200

mysql learning notes illustrate transaction propagation behavior

introduction In this blog post, the ape is mainly aimed at the application of transactions, and there are seven types of communication behaviors of transactions. These seven communication behaviors have different application scenarios. The following ape will discuss the respective characteristics of the seven communication behaviors Functiona ...

Added by Salkcin on Fri, 04 Mar 2022 16:13:05 +0200

Discussion on jdk dynamic agent at the bottom of spring AOP

1, What is a dynamic agent What is dynamic proxy and why it is used? Where is dynamic proxy used in normal programming? To understand what a dynamic agent is, you first need to know what an agent is. In fact, it is very simple. Just as literally, an agent: taking care of affairs instead of others. In programming, agent is an implementation of ...

Added by stopblackholes on Fri, 04 Mar 2022 15:56:33 +0200