Java Memory Model for Java Concurrent Programming
1. Java Memory Model
JMM is the Java Memory Model, which defines the abstract concepts of main memory and working memory from the Java level. The bottom layer corresponds to CPU register, cache, hardware memory, CPU instruction optimization, etc. JMM is reflected in the following aspects:
Atomicity - ensures that instructions are not affe ...
Added by Alkimuz on Mon, 14 Feb 2022 16:59:16 +0200
Handwritten common interview questions
Handwritten common interview questions
Anti shake
Principle of anti shake function: the callback is executed n seconds after the event is triggered. If it is triggered again within this n seconds, it will be timed again.
There are two situations:
Execute immediately after clickingNon immediate execution after clicking
// Non immediate exec ...
Added by Scorptique on Mon, 14 Feb 2022 16:41:42 +0200
Linux system programming - process concept, process management, signal processing
1. Process knowledge points
The process in the operating system is the process of one-time execution of the program and the basic unit of dynamic execution of the operating system; Whenever a new process is created, the operating system will assign a unique identifier to the new process to facilitate subsequent management of the process.
The ...
Added by Steffen on Mon, 14 Feb 2022 16:35:04 +0200
Python+selenium to realize automatic hospital registration
Python+selenium to realize automatic hospital registration
In some hospitals, some experts Daniel's number is always "No. 1 is difficult to find", and the ticket is basically empty for seconds. In view of this situation, small partners who master certain technology can register using automatic methods
First, declare that the script ...
Added by matanoosh on Mon, 14 Feb 2022 16:27:58 +0200
node.js introduction notes
A lot about node has been introduced earlier JS theoretical knowledge, but lack of practical combat. Actual combat is still more important. Therefore, I hope to record these basic knowledge and key points of actual combat of the project like thinkPHP before, which can be easily read by myself and shared with you. If there is anything wrong, ...
Added by Wesf90 on Mon, 14 Feb 2022 16:08:37 +0200
Non interactive operation of Shell script
1, Here Document interaction free
1.1 definition of interaction free
Provides a list of commands to interactive programs using I/O redirection As an alternative to standard input, it can help script developers not use temporary files to build input information, but directly produce a file in place and use it as standard input for commands. ...
Added by maexus on Mon, 14 Feb 2022 16:06:00 +0200
Node.js data Stream (Stream interface)
1 Overview
Data reading and writing can be regarded as a special case of Event mode. The continuously sent data blocks are like events. Reading data is a read Event, writing data is a write Event, and data block is the information attached to the Event. Node provides a special interface Stream for such situations.
stream is a way of handl ...
Added by leon_zilber on Mon, 14 Feb 2022 16:03:28 +0200
jQuery learning notes
1. Introduction to jQuery
JavaScript+Query (query), which is a js class library to assist JavaScript development. Its core idea is write less, do more, so it realizes many browser compatibility problems.
jQuery is free and open source. Its syntax design can make development more convenient, such as operating document objects, selecting DOM el ...
Added by phpSensei on Mon, 14 Feb 2022 15:56:18 +0200
The production of sensitive word detection tool of PyQt5 is the gospel of the operator
Design idea: filter according to the sensitive thesaurus file to check whether the input text contains sensitive words. So as to filter out the relevant sensitive words.[read the full text]Import application related modules.import os
import logging
import sysImport modules related to UI interface.from PyQt5.QtWidgets import QApplication,QWidget ...
Added by emrys404 on Mon, 14 Feb 2022 15:47:59 +0200
Implementation principle of Vue router
1, Front end routing concept
By changing the URL, the page view is updated without re requesting the page.
2, Vue router two modes
Updating the view without re requesting the page is one of the cores of the front-end routing principle. At present, there are two main ways to realize this function in the browser environment:
Hash - de ...
Added by yaatra on Mon, 14 Feb 2022 15:43:42 +0200