Linux storage IO stack -- an overview of SCSI subsystem

Summary Hierarchical architecture of Linux SCSI subsystem: Low level: it represents the actual driver of the physical interface with SCSI, such as the driver developed by each manufacturer for its spe ...

Posted by networkguy on Sun, 09 Feb 2020 20:20:54 -0800

Data structure - graph storage

Some of the algorithms in the figure are relatively complex, which is summarized in multiple blogs Related concepts of Graphs In fact, the previous data structures are relatively simple, and the previous memory is still relatively clear. However, some concepts are a little fuzzy when it comes to the f ...

Posted by cwls1184 on Sun, 09 Feb 2020 05:22:17 -0800

Talk about QuorumManager of artemis

order This paper focuses on the quorum manager of artemis ClusterTopologyListener activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ClusterTopologyListener.java public interface ClusterTopologyListener { /** * Triggered when a node joins the cluster. * * @param member * @pa ...

Posted by csimms on Sat, 08 Feb 2020 09:16:12 -0800

Device driver model of linux kernel

Device driver model of linux kernel Preface 1, The cornerstone of equipment model -- kobject subsystem Two. General framework of device model -- bus, device and driver model 3, About the drive's virtual memory file system -- Sysfs system Preface At the end of the day, LDD3 was basically finish ...

Posted by rocklv on Sat, 08 Feb 2020 05:35:17 -0800

java programming foundation chapter five summary and exercises

(1) . summary 1, Classification of loop statements 1. while loop The while cycle first checks the cycle continuation condition. If the condition is true, the loop body is executed; if the condition is false, the loop ends   2. do - while loop Similar to the while loop, only the do ...

Posted by ryankentp on Sat, 08 Feb 2020 02:49:57 -0800

Simple use of C++ STL heap correlation function

Simple use of C++ STL heap correlation function A brief introduction to the use of heap related functions Heap is not a container, but a special way to organize container elements. Only the scope of the heap can be determined, that is, the scope specified by the start and end iterators. This means th ...

Posted by TechGnome on Fri, 07 Feb 2020 01:46:47 -0800

Including source code analysis, in-depth Java thread pool principle

From the pool technology to the bottom layer implementation, an article takes you through the thread pool technology. 1. Introduction to pool technology In the process of system development, we often use pooling technology to reduce system consumption and improve system performance. In the field of prog ...

Posted by adren on Thu, 06 Feb 2020 23:46:43 -0800

Leftovers algorithm note-BFPRT algorithm

Solve the problem: Find the k th smallest number in an unordered array Fast Solution: Randomly select a number and use the Dutch flag problem to divide the data into less than or equal to more than three pieces Calculate the length with a well-differentiated array to see if it hit or not, or in whi ...

Posted by imtaqi on Thu, 06 Feb 2020 20:56:49 -0800

Brush Title: skills learned by a new JAVA player

Recently, I was brushing some questions of PAT with algorithm notes, and I was going to take a CSP test with JAVA. I found that there are not many JAVA players in algorithm questions, and there are few online guides for JAVA players, so I sorted out some skills I found and learned these days If you have ...

Posted by mrfruits on Thu, 06 Feb 2020 04:58:28 -0800

Take a look at the read-write lock ReentantReadWriteLock

We saw ReentrantLock earlier. In fact, this lock is only applicable to write more and read less, that is, when multiple threads modify a data, it is suitable to use this lock. However, if multiple threads read a data and use this lock, it will reduce efficiency, because only one thread can read at the same time! This time, let's look at the Ree ...

Posted by young_coder on Thu, 06 Feb 2020 04:15:57 -0800