java Multithread synchronization and inter thread communication
1. Thread synchronization
What is thread synchronization? Let's first look at a piece of code of the ticket selling system, and then analyze this problem:
package com.test;
/**
* @decrition Simulated ticket selling thread
*/
public class Ticket implements Runnable
{
//Number of votes currently owned
private int num = 100;
public void ...
Posted by Stalingrad on Fri, 18 Feb 2022 13:24:40 +0100
mst358 temperature control (thermistor) debugging
reference resources: https://blog.csdn.net/kehyuanyu/article/details/103178926
Hardware circuit:
There are two thermistors on the hardware, ADC1 and ADC3 to collect temperature information respectively. ADC3 is used to measure the optical and mechanical temperature. Refer to Murata thermistor NCP15WF104F03RC.pdf for the comparison table of t ...
Posted by PyroX on Fri, 18 Feb 2022 13:20:47 +0100
[ruoyi] learning notes on open source framework 02 - Shiro permission framework
data
According to the document introductionShiro official documents
↑ the link of Shiro document is an official introduction to the quick start. In fact, it will be easier to understand ruoyi's document about the integration of the framework.
If according to the structure
1. Security Manager
The Subject body represents the ...
Posted by bk6662 on Fri, 18 Feb 2022 13:16:29 +0100
Ecarts name axis_ Build Echarts from scratch -- v1 ZRender and MVC
Build Echarts from scratch -- v1 ZRender and MVC This chapter begins to enter the main body.
Write in front Graphics, elements and graphic elements all refer to XElement, depending on the situation. ts may give a warning. I just want to use the code prompt function, no matter how hot it is. Not all codes are posted in the article, and with the ...
Posted by bmcua on Fri, 18 Feb 2022 13:15:37 +0100
[LeetCode - Java]350. Intersection of two arrays II (simple)
1. Title Description
2. Problem solving ideas
Intersection means to have a "global view" of the two arrays. One embodiment of the "global view" in the program is statistics. Therefore, I can use the hash table to count the occurrence times of each element in the two arrays, and then take the small value to build a ne ...
Posted by Rowno on Fri, 18 Feb 2022 13:13:51 +0100
0x03 basic algorithm - recursion
1.A [HNOI2003] laser bomb
Link: https://ac.nowcoder.com/acm/contest/999/A Source: niuke.com
A new type of laser bomb can destroy all targets in a square with side length R. Now there are n(N ≤ 10000) targets on the map. The integer Xi and Yi (whose value is [05000]) represent the position of the target on the map, and each target has a val ...
Posted by web_loone_08 on Fri, 18 Feb 2022 12:58:22 +0100
01 MySQL database installation (Windows+Mac)
Python wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python actual combat quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475 Catalogue* MySQL database installation + Windows - 1. Introduction to main versions - 2. Software download - 3. Introduction to document directo ...
Posted by pablocullen on Fri, 18 Feb 2022 12:54:26 +0100
CSS Learning Notes 6 (CSS positioning)
CSS Learning Notes 6 (CSS positioning)
CSS positioning
location
Relative positioning
Positioning is to move relative to your previous position in the standard flowFormat: position: relative;Sample program
<style>
*{
margin: 0;
padding: 0;
}
div{
width: 100px;
...
Posted by MP145 on Fri, 18 Feb 2022 12:53:11 +0100
Two way bfs -- dimension reduction attack on the rearrangement of the nine palaces
What is bidirectional bfs?
Ordinary bfs traverses downward from one vertex, while bidirectional bfs traverses downward and upward from the two endpoints in turn when the end point is known, until the number of layers overlaps with the previous traversal, the answer comes out. It is clear that a two-way bfs needs to meet a necessary cond ...
Posted by riversr54 on Fri, 18 Feb 2022 12:45:29 +0100
Grain College - integrated ECharts
Statistical analysis module
Demand: count the number of registrants of online education every day, and use the chart to display the number of registrants
preparation
Code generation and configuration file omission~~
Database tables: statistics_daily, which stores statistical data
CREATE TABLE `statistics_daily` (
`id` char(19) NOT NULL C ...
Posted by arbab on Fri, 18 Feb 2022 12:40:46 +0100