Some Understanding of ConcurrentHashMap under JDK1.8

In JDK1.8, ConcurrentHashMap has removed the segmented lock from the put method, instead CAS lock and synchronized ConcurrentHashMapyes Java There is a set of key-value pairs that take into account both performance and thread security, as well as a set of key-value pairs.HashTableas well asHashMap,HashTableIs a thread-safe class because it has ...

Added by tcr480 on Sat, 25 May 2019 19:11:21 +0300

LESS Mini Trial Knife

Why Choose less CSS code development and maintenance are more difficult, especially in CSS of various sizes and colors, see more absolute vomiting. So there are CSS preprocessing languages which are easy to develop and maintain and manage, and they can be compiled to generate CSS. As a back-end Javer, there are roughly three CSS preprocessin ...

Added by kee2ka4 on Sat, 25 May 2019 02:48:50 +0300

SGIS TL Source Exploration - Red and Black Trees in STL (Part I)

Preface This section will enter the red and black tree section of SGIS TL. As for red-black tree, it is a complex data structure, but it is not particularly difficult. If you don't know much about the red-black tree, you can go online to consult the relevant information, because the main purpose of this paper is to analyze the source code of ...

Added by dsds1121 on Sat, 25 May 2019 01:38:34 +0300

Oracle execution plan explanation (2)

Now let's talk about the meaning of each parameter in the oracle execution plan Let's illustrate with an example below To add this, there are several types of trace s Sequence Number command explain 1 SET AUTOTRACE OFF This is the default value, which turns off Autotrace 2 SET AUTOTRACE ON EXPLAIN Show only execution plans 3 ...

Added by Peredy on Fri, 24 May 2019 20:12:45 +0300

Touch module reading Zepto source code

As we all know, for historical reasons, click events on the mobile end will have a delay of about 300 ms. Zepto's touch module solves the problem of click delay on the mobile end, and also provides sliding swipe events. Read the Zepto source series on github. Welcome star: reading-zepto Source version The source code for this article is zepto1. ...

Added by xiao on Thu, 23 May 2019 20:50:18 +0300

Art of concurrent programming in java (4) - - thread pool

The Background of Thread Pool Technology In the application server side, a large number of tasks from users need to be processed. If a new thread is adopted to process each task received by the server side, and then it is closed when the thread ends, it will cause a large number of context switching, and the resource occupied by the creation ...

Added by jonniejoejonson on Thu, 23 May 2019 02:11:03 +0300

On the pits trampled by sliding conflicts and Solutions

This blog talks a lot about content, because there are many pits in learning customized View. Customized View also customizes ViewGroup, and stepped on sliding conflicts. So it's a simple one-time talk about customization, of course, focusing on conflict resolution. First give Demo address My Blog 1,View 2,ViewGroup 3. Custom View a ...

Added by matthewd on Thu, 23 May 2019 01:52:41 +0300

Local Storage for Android Webview H5 Interaction

Preface In the development of native app, we will more or less access H5 pages in the project, especially in e-commerce projects, because of frequent UI updates, so we will use H5 pages a lot. Some H5 pages display different pages according to different users and login conditions. This requires us Android app developers to tell H5 developers ...

Added by speckledapple on Wed, 22 May 2019 22:07:45 +0300

okhttp source code analysis (1) - basic process (super-detailed)

Preface Recently, it is a pit in the source code. What always wants to hold down the ctrl to see the source code. During this period of time, we studied the source code of okhttp, and found that the source code of okhttp is not easy to gnaw down in a few days, so let's go step by step. This blog mainly analyses the execution process of the s ...

Added by Bryan Ando on Tue, 21 May 2019 02:35:13 +0300

Paging display of echarts legend

Using pie chart to display data is a very common method of data display. We can see the proportion of data intuitively through it. It is very convenient for comparison and analysis of some data. Recently, when using echarts plug-in to make pie charts, we have encountered some problems, that is, when there are many kinds of data, the legend wil ...

Added by DChiuch on Mon, 20 May 2019 21:07:35 +0300