Learning notes on the practice of building high concurrency system with JUC
JUC concurrent programming - Dachang
Course description
Thread basics review
Why is multithreading so important
Hardware: Moore's law failure
Software: production requirements for asynchronous callback
start a thread
Java multithreading related concepts
User thread and daemon thread
Even the simplest HelloWord progra ...
Posted by andynick on Mon, 10 Jan 2022 13:36:46 +0100
The difference between synchronized and lock
Comparison between the two
synchronized is a keyword belonging to the jvm level, and the bottom layer is implemented through the monitorenter and monitorexit instructions; lock belongs to a class.synchronized: when the code is executed abnormally or after the normal execution, the jvm will automatically release the lock; However, lock cannot b ...
Posted by peDey on Mon, 10 Jan 2022 13:12:55 +0100
Matrix decomposition notes sorting
catalogue
preface
1, Examples
2, Steps
1. Construct Loss function
2. Partial derivative
3. Matrix multiplication
4. Gradient descent
5. Regularization
6. The code is as follows:
preface
Matrix decomposition can be used to calculate the predicted value and so on, which is very important, so next I will sort out ...
Posted by JD^ on Mon, 10 Jan 2022 12:30:23 +0100
Spring Boot uses Swagger3 to generate API interface documents
preface
In the previous article, we talked about how to use Spring Boot to integrate Swagger2. The details can be summarized as follows: Spring Boot integrates Swagger2 to build powerful API documents . But in fact, the mainstream 2.9.2 of Swagger2 has not been updated for a long time since it was released in 2018, and Swagger3 was finally re ...
Posted by Kaizard on Mon, 10 Jan 2022 11:53:07 +0100
Detailed explanation of JSP page foundation of Java
JSP details
brief introduction
JSP (full name Java Server Pages) is a technical standard that enables software developers to dynamically generate Web pages with HTML, XML or other format documents in response to client requests. Is the language running on the server.
JSP file suffix is jsp .
The WEB application developed by JSP can be used ...
Posted by tbobker on Mon, 10 Jan 2022 11:13:18 +0100
Zero basic Java self-study process - Java language advanced 394
There are so many BB S above. It should be understood by taking a producer consumer chestnut as an example:
package com.thr;
/**
* @author Administrator
* @date 2020-04-02
* @desc synchronized+wait+notify Thread communication example (producer consumer model)
*/
public class ProducerConsumerWaitNotify {
public static void main(String[ ...
Posted by lemist on Mon, 10 Jan 2022 09:45:28 +0100
C language learning 10: array
catalogue
1. Basic concept of array 1.1 array 1.2 subscript 1.3 memory continuity of array elements 1.4 array initialization 2. Precautions for array use
1. Basic concept of array
1.1
array
A set of data of the same type stored in memory in turn is called an array. Each data it contains is called array element, and the ...
Posted by lewisstevens1 on Mon, 10 Jan 2022 07:39:42 +0100
Spring boot implements interface equal power verification
Generally speaking, interface equipower means that only one request is successful when multiple requests are initiated at the same time; Its purpose is to prevent multiple submission, repeated data warehousing, form verification, network delay, repeated submission and other problems.
The mainstream implementation scheme is as follows:
1. Uniq ...
Posted by rpieszak on Mon, 10 Jan 2022 06:23:10 +0100
Evolution and thinking of hard core Java random number related API
This series describes the random number API before Java 17 and the unified API after Java 17 in detail, and makes some simple analysis on the characteristics and implementation ideas of random numbers to help you understand why there are so many random number algorithms and their design ideas.
This series will be divided into two parts. T ...
Posted by koray on Mon, 10 Jan 2022 02:52:26 +0100
Spring cloud-day08 single sign on system
Single sign on system
1. SCA system project
The purpose of this project is to check the permissions in the database according to the Id and whether there are users in the database according to the usename. This part is very similar to the third stage.
(1) The most important POM files are database connection dependency and mybatis plus depend ...
Posted by MrAlaska on Mon, 10 Jan 2022 02:37:27 +0100