Operating system on November 22, 2021 (semaphore solving some problems + deadlock)
1. Producer consumer issues
1.1 summary
2. Multi producer multi consumer problem
2.1 summary
3. Smokers
3.1 summary
4. Reader writer questions
5. Dining problem of philosophers
Deadlock may occur
Prevent deadlock
Disadvan ...
Posted by cavemaneca on Mon, 22 Nov 2021 12:17:51 -0800
MySQL master-slave replication - based on binlog
1, Overview
MySQL performs real-time data synchronization and does not play back the executed import database script. Therefore, before synchronization, the data at both ends should be consistent.
Data synchronization:
Master slave replication (if the master database hangs up, the slave database will not automatically become the maste ...
Posted by n5tkn on Mon, 22 Nov 2021 12:16:53 -0800
Digital logic practice 2->Verilog writing specification
Source: explanation of digital logic and Verilog design experiment course, personal notes and sorting.
00 importance of specifications
Good programming style is conducive to reduce the consumption of hardware resources and improve the working frequency of the design.
Improve the portability and maintainability of the system.
The format of ...
Posted by bizerk on Mon, 22 Nov 2021 11:47:34 -0800
Notes on upgrade of kubernetes version
Write before
Learning K8s, involving this section, here I'll sort it outThe blog content refers to the k8s version upgrade (kubeadm upgrade), the environment is installed through kubeadm, so whether the upgrade is available or not is unknown to the production environmentOfficial website has more detailed and authoritative upgrade documents, ...
Posted by bulldorc on Mon, 22 Nov 2021 11:37:58 -0800
spark - the source of all things WordCount
N methods of implementing WordCount in Spark
Hello, everyone. I won't introduce myself here. Let's talk about WordCount, that is, word frequency. You may learn from various channels that data processing will bear the brunt of WordCount. Why? Because WordCount is simple. But it can well describe data processing and data stati ...
Posted by mash on Mon, 22 Nov 2021 11:21:45 -0800
ES6 added API: Array
New static functionArray.ofFunction type://Receive any number and type of parameters, and return an array of these parameters in the order they are passed in
(...args?:any[])=>any[];Array.of is used to create a new Array instance with a variable number of parameters. The difference between it and creating arrays through the array constructor ...
Posted by fishdishdesign on Mon, 22 Nov 2021 11:12:25 -0800
Naive Bayes
1, Bayes theorem
1. Introduction
Bayesian theory is named after Thomas Bayes, A theologian in the 18th century. Generally, the probability of event A under the condition of event B (occurrence) is different from that of event B under the condition of event A (occurrence); However, there i ...
Posted by Chronos on Mon, 22 Nov 2021 11:12:19 -0800
ROS learning IX. image processing package in ROS RGBD image to PCL
preface
Recently, I'm doing simulation again. I need to turn the RGBD camera into a point cloud.
Image processing package provided by ROS_ pipeline
ROS provides tools for monocular, binocular, depth image processing, camera calibration and visualization, which are included in the integration module image_ In pipeline. There are mainly th ...
Posted by akrocks_extreme on Mon, 22 Nov 2021 11:09:27 -0800
Hystrix component analysis
Having finished Feign and Ribbon, today we will study another class library developed by Netflix team - Hystrix.
At an abstract level, Hystrix is a protector. It can protect our application from down due to a dependent failure.
At present, the official has stopped iterating with Hystrix. On the one hand, it is considered that Hystrix is stable ...
Posted by shiranwas on Mon, 22 Nov 2021 11:04:58 -0800
Notes on basic Java learning
1, Array
1. Declaration array
// Two ways to declare arrays
int array[];
int[] array2;// This is recommended
// Open up space
array = new int[3]; // Open up 3 spaces (array with length of 3)
// Note: after opening up a space, the default value of this type is saved
double[] array3 = new double[5];// Declare a double array of length 5
// Tw ...
Posted by k0z on Mon, 22 Nov 2021 10:51:35 -0800