[Linux system programming] Linux thread control primitive

This is the notes of Niuke Linux C + + course. 0. About threads Note: LWP number is different from thread id. LWP number is the basis for CPU to allocate time slice, and thread id is used to distinguish threads within the process. 1. Difference between thread and process For processes, the same address (the same virtual address) is used ...

Posted by php_tom on Sat, 06 Nov 2021 16:50:17 -0700

Mybatis learning - configuration analysis

front word : \textcolor{green} {Preface:} preface: 💞 In the previous article, we learned what Mybatis is and also wrote our first Mybatis program. Next, let's take a look ...

Posted by Patioman on Sat, 06 Nov 2021 16:41:08 -0700

JavaScript simple meal -- Proxy and reflection

preface The purpose of writing this series of articles on JavaScript simple meal is to record various knowledge points when reading and learning the book JavaScript advanced programming (4th Edition). Although it is a note and summary of reading, I hope it is light, concise and sharp, will not cause reading fatigue, and can take a light ...

Posted by Jay_Seagrave on Sat, 06 Nov 2021 16:39:30 -0700

Merchant transaction result notification design

Technology stack: java+springboot+rabbitmq In this article, let's discuss the design scheme of merchant transaction result notification. Students who do payment know that some transaction types are asynchronous transactions, that is, when the transaction message is sent to the bank or a third-party payment channel, the other party does not r ...

Posted by lnt on Sat, 06 Nov 2021 16:31:38 -0700

Inclusion and dependency of class relationships

The number of classes has increased - > need to manage classes - > package (can be understood as a folder). Package and import appear at the same time. Write package first and then import. There can only be one package and multiple imports. is-a (generalized) inheritance implementation has-a (inclusive) combination aggregation Associati ...

Posted by twooton on Sat, 06 Nov 2021 16:12:02 -0700

Microservice architecture foundation

Microservice Architecture Foundation (II) To be continued Continue the previous basic project for expansion Load balancing and service invocation Ribbon Ribbon local load balancing client & nginx server load balancing difference Nginx is server load balancing. All client requests will be handed over to nginx, and then ngin ...

Posted by cassius on Sat, 06 Nov 2021 15:58:08 -0700

06 vector class and Simulation Implementation in STL

1, Introduction to vector 1. vector is a sequence container that represents a variable size array. 2. Like an array, vector also uses continuous space to store elements, which also means that the elements of vector can be accessed by subscripts. 3. The difference between vector and ordinary array is that the size of vector can be chan ...

Posted by andremta on Sat, 06 Nov 2021 15:48:17 -0700

Java Web Learning - simple educational administration system (project)

preface Our last article introduced the Servlet request and response interface. In this article, I will introduce the simulation of the educational administration system based on the current knowledge. Its functions include user registration, user logout, user information modification and user query. It will use the knowledge of JDBC, DA ...

Posted by razta on Sat, 06 Nov 2021 15:40:57 -0700

leetcode239. Maximum sliding window (difficult)

I had no idea at first... Solution 1: Violence Specifically: the outer loop traverses the left position of the window, and the inner loop traverses the elements in the window Analysis: the time complexity is O(nk) and n is the 5th power level, so it will timeout... Thinking starting point: find a data structure to maintain the elements in th ...

Posted by cnnabc on Sat, 06 Nov 2021 15:33:04 -0700

Use java to build meta path and generate adjacency matrix

Understanding of meta path: (what I do is the text direction, so I take commentator - number of comments - commentator as a meta path) A meta path is a path where multiple (more than 2) nodes are connected through another type of node. In the yelp dataset, I want to build a meta path of comments - number of comments - comments. That is to find ...

Posted by harinath on Sat, 06 Nov 2021 15:13:29 -0700