Smash java Concurrent 7JDK9 baffle and concurrent HashMap
1 CountDownLatch
The utility model relates to a disposable baffle. After the thread reaches the baffle, it will be blocked. Until all relevant threads reach the baffle, all threads will wake up at the same time and then execute down. The source code is very simple.
2 CyclicBarrier
A CountDownLatch that can loop is in the code. After the ...
Added by fooDigi on Tue, 08 Mar 2022 20:39:52 +0200
Seata source code analysis: a preliminary official example
Quick start
Let's start with a microservice example. The official example uses the AT mode in seata distributed transaction, that is, the example is based on:
Based on a relational database that supports local ACID transactions.Java application, accessing database through JDBC..
Use case
Business logic for users to purchase goods. T ...
Added by daiwa on Tue, 08 Mar 2022 20:26:34 +0200
springcloud distributed micro service E-commerce mall learn from me about the use of spring cloud gateway filter factory
Gateway filter factory is a filter factory provided in Spring Cloud Gateway. The routing filter of Spring Cloud Gateway allows you to modify the incoming HTTP request or output HTTP response in some way, which only works on specific routes. Spring Cloud Gateway has many built-in filter factories, which can be used directly by configuration. At ...
Added by lancia on Tue, 08 Mar 2022 19:51:30 +0200
DNS server configuration
1. Mount the CD
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
vim /etc/fstab
/dev/cdrom /mnt/cdrom iso9660 defaults 0 0
2. Create yum source
[root@centos7-1 xwk]# yum-config-manager --add-repo=file:///mnt/cdrom
Plug in loaded: fastestmirror, langpacks
adding repo from: file:///mnt/cdrom
Cannot add repo from file:///m ...
Added by hcdarkmage on Tue, 08 Mar 2022 19:49:26 +0200
After cutting the mountain, I met suddenly
After cutting the mountain, I met suddenly
The only things I can remember this week are program rehearsals, competition training and catching up with projects. However, among these things, the only thing that makes me feel is to catch up with the project. I still remember that I only logged in and registered when I was last assessed. Other thi ...
Added by pthes on Tue, 08 Mar 2022 19:45:55 +0200
2021-04-11 install and configure the Java environment on the MAC side.
Java basic disk
preface
From the following points, write a separate article in detail. (ps: write only practical content) 1. Install and configure environment variables on the Mac side. 2. Basic grammar. 3. Object oriented. 4. Collection framework. 5. Exception frame. 6. IO framework (InputStream, OutputStream). 7. Multithreading. 8. ...
Added by metrathon on Tue, 08 Mar 2022 19:41:13 +0200
c++ Learning Notes 1
c++ Learning Notes 1
I am a beginner of c++. I have made some notes for you to refer to and review. I listened to Mr. Weng Kai's class on Station B. Mr. Weng Kai's class is very good. You can listen to it if you are interested. Sometimes I compare C with c++ because I have a base in C. //
#include <iostream>
#include <stdlib.h>
us ...
Added by pastcow on Tue, 08 Mar 2022 19:32:18 +0200
Actual data backup and data restore for Elasticsearch cluster using Elasticdump tool
Wen/Zhu Jiqian
Catalog1. Introduction of Elasticdump tool2. Elasticdump Tool Installation3. Use of Elasticdump tools
Recently, some work has been done in the development of Elasticsearch mapping structure and data export and import, for fear that the process will be forgotten in the future. It is not as good as bad memory, so it is recorded a ...
Added by lachhekumar on Tue, 08 Mar 2022 19:26:57 +0200
DPLL algorithm (solve k-SAT problem) in detail (C++)
Python WeChat Subscription Applet Course Video
https://edu.csdn.net/course/detail/36074
Python Actual Quantitative Transaction Finance System
https://edu.csdn.net/course/detail/35475 By ChesiumBy Chesium\text{By}\ \mathsf{Chesium}
The DPLL algorithm, fully known as the Davis-Putnam-Logemann-Loveland (Davis-Putnam-Logemann-Loveland) algorith ...
Added by RobinTibbs on Tue, 08 Mar 2022 19:21:36 +0200
P28 Abstract Classes and Open-Close Principles
Interfaces and abstract classes are both theoretical and code difficulties.
Interfaces and abstract classes work well, so the code you write tests well.
Introduction
Software is also a branch of the industry, and well-designed software must withstand testing.
Whether the software can be tested, repaired or monitored depends on the use of ...
Added by kybaker on Tue, 08 Mar 2022 19:13:07 +0200