[Linux Programming] Five IO models of Linux: blocking IO, non-blocking IO, IO multiplexing, signal-driven IO and asynchronous IO

The Linux IO model refers to the way in which user processes and the kernel perform input and output operations in a Linux system. Input and output operations usually involve the transmission and copying of data. These operations consume system resources and time. Therefore, choosing an appropriate IO model is very important to improve the […]

10-Asynchronous programming (concurrent, parallel, synchronous, asynchronous, blocking, non-blocking), synchronous blocking, asynchronous blocking, synchronous non-blocking, asynchronous non-blocking

1 concurrent 2 parallel 3 sync 4 asynchronous 5 blocking 6 non-blocking 6.1 Synchronous blocking, asynchronous blocking, synchronous non-blocking, asynchronous non-blocking 7 Asynchronous Programming 1 concurrent 1 Concurrency describes the organizational structure of the program. It means that the program should be designed into multiple subtasks that can be executed independently. 2 The purpose is […]

[Algorithm Challenge] The maximum number of blocks that can be sorted II (including analysis and source code)

768. Maximum number of blocks that can be sorted II https://leetcode-cn.com/problems/max-chunks-to-make-sorted-ii/ 768. Maximum number of blocks that can be sorted II Question description Method 1: Sliding window Ideas Complexity analysis Code (JS/C++) Method 2: Monotone Stack Ideas Illustration Complexity analysis Code (JS/C++) Title description This question is similar to “The maximum number of blocks that […]

final static modifier, package, anonymous object and code block concepts in java

Knowledge module 1.final modifier 2.static modifier 3. package 4. Permission modifiers 5. Anonymous objects 6. Code blocks 1.final modifier a.Modification class Classes modified by final cannot be inherited. If you define a class later and do not want it to be inherited by others, you can add final modification. b. Modify variables final modified variable […]

Java Lecture 6: Package import access modifiers final and static, static code blocks and image loading methods

Table of Contents 1. Package 2. import (import) keyword 3. Access modifiers 3. final keyword 4. static keyword 5. How to load images 1. Package If there is no package, a large project may need to create many, many class files. If the class name is a unique identifier, file name conflicts are likely to […]

Application of Go language in blockchain development

Introduction Blockchain is a technology field that has attracted much attention in recent years. It not only changes the traditional data exchange and storage methods, but also provides new solutions for various application scenarios. As a simple and efficient programming language, Go language (Golang) is gradually becoming the first choice language for developing blockchain applications. […]

Terraform Series – Iterate on Blocks with Dynamic Blocks

series of articles Terraform series of articles Grafana series of articles Overview The Terraform series of articles introduces the use of Grafana Terraform Provider, based on Terraform’s IaC methodology, to automatically create various Grafana resources in batches, including Dashboard/Datasource, etc. Now there is such a practical need: Due to the need for permission control, Folder […]

Class variables/methods, main syntax, code blocks

1. Class variables and methods Mind map overview: 1.1 Class variables (static variables) 1.What are class variables/methods? –Add the static keyword to modify the member properties or member methods in the class. Class variables/methods are also called static variables/methods. Static variables/methods are shared by all objects of the class itself. 2. A small case to […]

Blockchain development using Golang Web3 library

Introduction Blockchain, as a distributed ledger technology, has achieved tremendous development in recent years. Golang, as an efficient and highly concurrency programming language, is widely used in blockchain development. In Golang, we can use the Web3 library to interact with Ethereum or other blockchain networks. The Web3 library is a library of tools for interacting […]

github, git, google: clang-front-end plug-in-add curly braces to various “blocks” without curly braces-based on llvm15–clang-plugin-add-brace—–google mirror

Processed statements case Terminology conventions or memos The starting and ending range of case: from the colon to the beginning of the next ‘case’, the abbreviation is: case inside, case content Ast: Abstract syntax tree: abstract syntax tree Case without curly braces If any of the following conditions are true in a case, the case […]