[Go advanced concurrent programming] Mutex

Mutex is the most basic means of access control to critical resources in concurrent programs. Mutex is the native implementation of mutex in Go language.data structureSource package Src / sync / Mutex The data structure of Mutex is defined in go:type Mutex struct { state int32 sema uint32 }The state field indicates the status of the mu ...

Added by ganesh on Sun, 27 Feb 2022 11:06:26 +0200

CSS start of front end

CSS html corresponds to the structure of the web page, while CSS corresponds to the style and layout of the web page - for example, changing the font, color, size and spacing of the content, splitting it into multiple columns, or adding animation and other decorative functions. CSS syntax Selector{ Attribute: value; } selector { property ...

Added by neveriwas on Sun, 27 Feb 2022 11:04:11 +0200

Summary of MyBatis learning notes [1]

Official learning documents Introduction to MyBatis mybatis is a persistence layer framework written in Java. He encapsulates many details of jdbc operation, so that developers only need to care about the sql statement itself, without paying attention to the complex processes such as registering drivers and creating connections. It uses t ...

Added by purpleshadez on Sun, 27 Feb 2022 10:56:40 +0200

leetcode: Week 1

Catalogue of series articles leetcode: Week 1 preface . The blogger has just finished the study of RHCE. Next, he decides to brush the algorithm problem of leetcode, 2-3 times a day, and consolidate the review at the weekend. first day 1. Binary search Given an n-element ordered (ascending) integer array nums and a target value ...

Added by Northern Flame on Sun, 27 Feb 2022 10:53:56 +0200

Python basic syntax

1, Variables and data types    Python data types are not declared, and the compiler automatically recognizes them. The common data types are as follows; There is no need to add a semicolon at the end of each line of Python code; Python code blocks need to follow strict indentation rules; Python 3 habitually adds parentheses when ...

Added by Theramore on Sun, 27 Feb 2022 10:45:49 +0200

Small program cloud development likes case implementation and environment vant plug-in configuration

Recently, I was engaged in a small program competition. What's more, I briefly recorded the pit I stepped on during the development of learning small programs and the problem of high blood pressure. In addition, this document was recorded by me when I learned the new vision course at station b. If you need it, you can go to station b to have a ...

Added by tobykw13 on Sun, 27 Feb 2022 10:32:03 +0200

Database review: SQL statement sorting

SQL Statement Review 1.Data Definition Construct 1.1 Create table Construct 1.1.1 table creation statement create table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ); ----------------------------------- create table r ( A1 D1, A2 D2, ... An,Dn, (integrity-constraint_k) ); 1 ...

Added by mark_18 on Sun, 27 Feb 2022 10:19:59 +0200

Java web core knowledge

Introduction to Java Web Web: global wide area network, also known as the world wide web (www), a website that can be accessed through a browser. JavaWeb: use Java technology to solve the technology stack in the field of web and Internet. B/S architecture: Browser/Server architecture mode. Its feature is that the client only needs a browser ...

Added by running_out_of_imagination on Sun, 27 Feb 2022 10:18:05 +0200

Teach you to write a simple micro front-end frame

Recently, I saw the source code of several micro front-end frameworks( single-spa,qiankun,micro-app ), I feel I have gained a lot. So I plan to build a mini wheel to deepen my understanding of what I have learned. This wheel will be divided into five versions to gradually realize a minimum available micro front-end frame: Support sub applicat ...

Added by electronish on Sun, 27 Feb 2022 10:13:19 +0200

Source code analysis of Wait Notify NotifyAll of Object

The source code of Wait Notify NotifyAll in the Object class in Java is as follows: /** * Thread waiting * @param var1 millisecond * @param var3 nanosecond */ public final void wait(long var1, int var3) throws InterruptedException { if (var1 < 0L) { throw new IllegalArgumentException("timeout valu ...

Added by anon_login_001 on Sun, 27 Feb 2022 09:30:30 +0200