The most complete RabbitMq in history

RabbitMq data 1.win installation Step 1: Download and install erlang RabbitMQ server code is written in parallel language Erlang. The premise of installing RabbitMQ is to install Erlang. The download address is: http://www.erlang.org/downloadsConfigure environment variables this computer – > right click "properties" &ndash ...

Posted by deived on Wed, 09 Feb 2022 04:26:45 +0100

Novice queue (example)

Queue learning can be compared to stack learning. Queue is an important data structure to realize breadth first search.   queue<int> aa; //Define a queue -Basic operation of queue—— aa.front() //Returns the first element of the queue aa.back() //Returns the last element of the queue aa.empty() //Returns true if the qu ...

Posted by BlaineSch on Wed, 02 Feb 2022 22:29:50 +0100

Review the old and know the new - > data structure - > sorting - > program implementation 1_ Using C language

Review the old and know the new - > data structure - > sorting - > program implementation 1_ Using C language This blog is based on Review the old and know the new - > data structure - > sorting Part of the theoretical knowledge of sorting in the program! Among them, three kinds of quick sorting in exchange sorting, recursive a ...

Posted by Karlos2394 on Wed, 02 Feb 2022 03:59:01 +0100

Binary Heap - A. Base Priority Queue

Definition: Binary heap is a special kind of heap. Binary heap is either a complete binary tree (binary tree) or a nearly complete binary tree (binary tree). There are two kinds of binary heaps: the maximum heap and the minimum heap. Maximum heap: The parent node's key value is always greater than or equal to the key value of any child node; M ...

Posted by kate_rose on Wed, 02 Feb 2022 01:39:44 +0100

Golang high concurrency processing model

Original link: https://mp.weixin.qq.com/s/ZqfN8UlWRpoGhznGH-L1mw introduce I came across an article written in 15 years. To be honest, the title really attracted me. I won't translate this article directly. I put the original address at the end of the article. The requirement of the project is very simple. The client sends the request and t ...

Posted by Anyaer on Tue, 01 Feb 2022 13:41:31 +0100

Introduction to JUC programming

preface: In Java, the thread part is a key point. The JUC mentioned in this article is also about threads. JUC is Java util . Short for concurrent toolkit. This is a toolkit for processing threads. JDK 1.5 began to appear. Let's see how it works. 1, volatile keyword and memory visibility 1. Memory visibility: Let's take a look at the followi ...

Posted by RaheimSG on Tue, 01 Feb 2022 09:33:03 +0100

The java thread pool ThreadPoolExecutor class is the most practical

In Alibaba java development manual, it is pointed out that thread resources must be provided through thread pool, and it is not allowed to create threads displayed in the application. On the one hand, the creation of threads is more standardized, which can reasonably control the number of threads; On the other hand, the detail management of thr ...

Posted by dkode on Tue, 01 Feb 2022 05:31:52 +0100

Comparison of priority queue (heap) and java objects

1, Sequential storage of binary tree Storage mode Use the array to save the binary tree structure, that is, put the binary tree into the array by sequence traversal. Generally, it is only suitable for representing complete binary trees, because incomplete binary trees will waste space. The main use of this method is the representation of the ...

Posted by ChibiGuy on Tue, 01 Feb 2022 03:08:31 +0100

Practical series - thread safe collection class in Java

Introduction    in java development, we often encounter the problem of thread safety of set classes. In the development process of Java language, from the initial thread unsafe set classes to the thread safe set classes that basically support many thread safe set classes, we don't need to pay attention to thread safety in some scenes ...

Posted by tmayder on Mon, 31 Jan 2022 23:31:42 +0100

RocketMQ concept and usage

Summary of JAVA back-end development knowledge (continuous update...) RocketMQ concept and usage 1, Overview    MetaQ is a distributed message middleware with Queue model. Based on publish and subscribe mode, it supports two modes: Topic and Queue. There are two consumption modes: Push and Pull. It supports strict message ...

Posted by Sir Mildred Pierce on Mon, 31 Jan 2022 20:27:06 +0100