What is thread
When it comes to threads, we should first understand what a process is. You should be familiar with this picture.
The programs we see running separately are independent processes, and the processes are independent of each other. The 360 browser and Baidu cloud disk in the above figure are all independent processes.
So what are th ...
Added by davidlenehan on Fri, 12 Jun 2020 09:03:54 +0300
Write an infinite list using the PlaceHolderVidew Library
First, let's look at the picture. Here's what I want to do.
Overview of the objectives of this experiment:
1. Write a json file to store the students'information. The source will simulate loading json data from the Internet and then popula ...
Added by dianaqt on Thu, 11 Jun 2020 19:15:23 +0300
1, Functional interface
1. Functional interface definition
before learning lambda expressions, let's look at the functional interface:
Interface with only one abstract method
You can use @ FunctionalInterface annotation to declare and check functional interfaces
java.util.function The ...
Added by udendra on Thu, 11 Jun 2020 08:00:03 +0300
Fastdfs_5.08 + nginx_14.0 cluster deployment
1, All tracker and storage nodes should execute:
2, Configure tracker server
3, Configure storage server
4, File upload test (ip01)
5, Install fastdfs nginx module on all storage nodes
6, Verify: access files uploaded during test through ...
Added by knucklehead on Thu, 11 Jun 2020 07:13:58 +0300
Today, the project is not busy. I want to have a look at the sharding JDBC sub database and sub table. I want to achieve the following:
Discard the xml configuration and use. yml or. properties file + java to configure spring.
Use Druid as database connection pool, open monitoring interface at the same time, and support monitoring multiple dat ...
Added by htcilt on Thu, 11 Jun 2020 06:47:20 +0300
The article has been included in Github.com/niumoo/JavaNotes , and Java programmers need to master the core knowledge. Welcome to Star and advice.
Welcome to my official account , articles are updated weekly.
As one of the most commonly used collection classes, HashMap needs to be understood in a simple way. This article will go deep into the ...
Added by mediabob on Thu, 11 Jun 2020 06:09:09 +0300
1. Distributed Lock Implementation
2. Distributed Lock Using redis
Problems in the redis cluster state:
Solving distributed locks using redisson
1. Import dependent service-util
2. Configure redisson
Added by dev99 on Wed, 10 Jun 2020 19:17:31 +0300
Classification of 23 design patterns
Definition of Flyweight pattern: using sharing technology to support reuse of a large number of fine-grained objects. It can reduce the number of objects to be created and avoid the cost of a large number of similar classes by sharing the existing o ...
Added by bronzemonkey on Wed, 10 Jun 2020 07:10:32 +0300
The complete code covered in this article: GITEE
Or visit: https://gitee.com/topanda/spring-boot-security-quickly-start/tree/jpanda-spring-boot-security-api/src/main/java/cn/jpanda/demo/manager/configuration/log
It is hard to avoid bugs when you write too much code. As a programmer who has been walking all year, it is not a rare thing to talk ...
Added by deejay1111 on Wed, 10 Jun 2020 06:50:17 +0300
a:Master elections are a very common scenario in distributed systems.In distributed systems, master-slave mode is often used to avoid single point failures and improve the availability of system services.
b: Normally, Master nodes are used to coordinate other system units ...
Added by fredcool on Wed, 10 Jun 2020 04:16:55 +0300