linux Kernel-level Synchronization Mechanism--futex

In the interview about multi-threaded synchronization, you have to think about the question, we know that glibc pthread_cond_timedwait underlying is achieved by linux futex mechanism. The ideal synchronization mechanism should be to use atomic instructions to solve the problem in user mode without lock conflicts, and to sleep and wake up with ...

Added by brownca on Mon, 29 Jul 2019 13:52:32 +0300

Pthon Learning Notes 9--A Powerful Self-reflection Analysis of python

Original Link: http://www.cnblogs.com/riasky/p/3507419.html 1. What is introspection? Self-reflection refers to self-evaluation, self-reflection, self-criticism, self-regulation and self-education. It is a method of self-moral cultivati ...

Added by -entropyman on Sat, 27 Jul 2019 20:25:52 +0300

The Basis and Exercises of KMP Algorithms

Catalog   Explanation of Algorithms NEXT Array Explanation Template Example A:HDU-1711 Number Sequence B:HDU-1686 Oulipo C:HDU-2087 cut strips D:HDU-3746 Cyclic Nacklace E:HDU-1358 Period F:POJ-2406 Power Strings G:POJ-2752 Seek the Name, Seek the Fame H:POJ-3080 Blue Jeans Explanation ...

Added by CavemanUK on Sat, 27 Jul 2019 15:36:36 +0300

Introduction, use, simple analysis and plug-ins for lombok

Learn Lombok. About POJO There are closeness and security features in Java object-oriented programming.Closure is the enclosure of domain variables in a class, that is, decorate them with private s.As a result, other classes cannot access the variable.In this way, we enclose these variables within the class, which improves the security of the ...

Added by kaitan on Sat, 27 Jul 2019 03:48:50 +0300

vue advanced: vuex (data pool)

Non-parent-child component passed values vuex 1. Value transfer by non-parent and child components Sample Key Code for Implementing Value Transfer for Non-Parent-Child Components Based on Parent-Child Component Communication and Value Transfer: 1 <template> 2 <div> 3 <!-- Student Show --> 4 ...

Added by Batosi on Fri, 26 Jul 2019 23:39:36 +0300

Reasons for Failure of MQTT Big Message

Background The MQTT protocol was used to build a chat server in the group. The connection became unavailable the day before yesterday when the big news (more than 5,000 Chinese characters) was tested. No reply was received for all the messages sent subsequently. Server environment: Netty : 4.1.32.Final Use the MqttDecoder that comes with Netty ...

Added by le007 on Thu, 25 Jul 2019 11:59:49 +0300

java high concurrent immutable objects

Once an object is published, it is a secure object, which is an immutable object. The conditions that an immutable object needs to satisfy: The state of an object cannot be modified after it is created All fields of an object are final types Objects are created correctly (this reference does not escape during object creation) final ke ...

Added by Aurasia on Thu, 25 Jul 2019 09:52:56 +0300

LeetCode 21: Merge Two Sorted Lists

Merge the two ordered lists into a new ordered list and return. The new linked list is composed of all the nodes of a given two linked list. Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Examples: Input: 1 - > 2 - > 4, 1 - > 3 - > 4 Outp ...

Added by tdeez173 on Thu, 25 Jul 2019 04:52:53 +0300

Pipeline mechanism in ASP.NET Core

Original: Pipeline mechanism in ASP.NET Core First of all, thank you very much for your last article. C# Pipeline Programming Thank you for your support and affirmation. I hope that every time I share with each other, I can get some benefits. Of course, if I have some incorrect or inappropriate narrative, please point it out. Okay, let's mo ...

Added by jminscoe on Thu, 25 Jul 2019 03:41:56 +0300

[Python] Scapy of University Data Grabbing for College Entrance Examination

1. College Entrance Examination School College Data - Write in front Finally, scrapy crawler framework is written, which can be said to be the highest rate of emergence in the python crawler framework, we will focus on its use rules next. Installation process Baidu itself, you can find more than three ...

Added by mathewvp on Wed, 24 Jul 2019 12:07:51 +0300