What does synchronized lock as a pessimistic lock?
Continue with synchronized, last article What's the difference between having synchronized or not? We have learned that synchronized is used when multiple threads compete for the same resource concurrently. In this article, we will learn what is locked by synchronized as a pessimistic lock?
Lock instance object
In the last article, we have cod ...
Posted by webent on Sun, 26 Apr 2020 19:29:15 -0700
A summary of three methods of grey level publishing implemented by Nginx
A summary of three methods of grey level publishing implemented by Nginx
The main principle of gray-scale publishing is access routing control, and the key point is to ensure that each access is the same node.
Mode 1: adjust the load balance weight
Load balancing is based on the existing network structure, which provides a ...
Posted by lalabored on Sun, 26 Apr 2020 10:52:42 -0700
[from getting started to giving up - Kubernetes] getting started with Kubernetes - expanding and shrinking stateful applications
Preface
Preceding text [from getting started to giving up - Kubernetes] getting started with Kubernetes - expanding and shrinking stateless applications In, we learned how to deploy a stateless application through yaml file and expand and shrink it.
For stateless applications, in case of failure or pod deletion, relevant resources will be relea ...
Posted by jobe1 on Sun, 26 Apr 2020 03:35:12 -0700
PostgreSQL database architecture storage structure
Logical Structure of Database Cluster
Database Cluster -- database cluster, which is a collection of a group of databases rather than multiple database servers
Database -- database, a collection of database objects
Database object -- database object, a data structure used to store query data
Database cluster > Database > database ...
Posted by forums on Sun, 26 Apr 2020 01:56:33 -0700
AAC trial packaging
The full name of aac is Android architecture components. Google recently released an official version and was immediately attracted by it. Isn't that the magic medicine to improve the traditional MVP?
To add dependency, we will not repeat it. For many examples on the Internet, this article just encapsulates ViewModel and LiveData!
1. Creat ...
Posted by greepit on Sat, 25 Apr 2020 08:08:56 -0700
Java--Socket Programming TCP communication
Java--Socket Programming TCP communication
Blog description
The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you!
Explain
TCP communication can realize data interaction between two ...
Posted by jiggens on Fri, 24 Apr 2020 21:06:00 -0700
The third stage of Java learning (8: network communication protocol, UDP and TCP protocol)
1, Network communication protocol
1. Concept:
Through computer network, multiple computers can be connected. Computers in the same network need to abide by certain rules when connecting and communicating. In computer network, these rules of connection and communication are called network communicati ...
Posted by Eal on Fri, 24 Apr 2020 10:17:39 -0700
tensorflow building neural network
Last time we added an add? Layer function, this time we will create a neural network to predict / fit the corresponding data.
Let's create the following virtual data, which is conic data, but at the same time, some noise is added, and the image is:
The corresponding code to create these forged data is:
import numpy as np
# Create a column (equi ...
Posted by stuckwithcode on Fri, 24 Apr 2020 10:01:58 -0700
Summary -- several methods of generating unique id in JS
Occasionally in development, when it is necessary to generate a unique id, such as adding, deleting or modifying any item of the array many times, it is necessary to add a unique identifier to each item to distinguish. The following are various methods of generating unique identification collected from the network, which are summarized here for ...
Posted by fesan on Fri, 24 Apr 2020 07:13:11 -0700
Discovery and automatic update of docker container service based on consumer (principle + deployment)
Preface
In the previous article, I have described some contents of docker's entry level. This article begins to explain other contents of docker in depth. First, it will talk about the principle and practical operation of the discovery and automatic update part of docker container service.
Talk about the concept and advantages (just look at t ...
Posted by php_gromnie on Fri, 24 Apr 2020 04:41:02 -0700