J.U.C|AQS Shared Source Analysis
1. Write before
In the last section, we talked about the exclusive source code, see J.U.C|AQS Exclusive Source Analysis
In this chapter, we continue to navigate the world of AQS source code to understand the acquisition and release of shared synchronization.
2. What is Shared
The only difference between shared and exclusive is that multiple t ...
Posted by milind24 on Tue, 14 May 2019 21:55:04 +0200
How to Manage z-index in Web Componentization
z-index attributes, although so much has been written, are still widely misunderstood and mishandled. Stacking problems in complex single-page web applications can become a major problem. Sticking to some principles, however, we can easily avoid these problems.
If you've ever had any complex Web UI development, you might sometimes go crazy tryi ...
Posted by immanuelx2 on Sun, 12 May 2019 12:10:21 +0200
Go module learning notes
1. Create a mudule and publish it
1.1 $GOPATH/src directory structure
1.2 Environment Variables
Need to add environment variable: GO111MODULE=on;
This variable has three optional values:
On (GoEnable this feature anywhere),
off (disable this feature),
auto (default, enabled elsewhere with GOPATH disabled)
Otherwise console will output the ne ...
Posted by nishmgopla on Sat, 11 May 2019 01:33:20 +0200
Wechat applet-introducing zanui-weapp
To introduce zanui-weapp, the following software must be installed: Node.js, Git, Bower
1:Node.Js Installation
First download Node.js, website https://nodejs.org/en/ The stable version is recommended on the left and the latest version on the right.
Node.js installation, running the downloaded. msi file, the next s ...
Posted by Syrehn on Sat, 11 May 2019 00:59:45 +0200
The Caching Principle of RecycleView
In the previous article, when we went to the layoutChunk method of the layout process of the sub-View, we used View view = layoutState.next(recycler); the method obtained the sub-View to be laid out, and then proceeded to follow up. Now let's see how this sub-View was obtained.
View next(RecyclerView.Recycler recycler) {
...
Posted by TheBurtle on Thu, 09 May 2019 10:00:03 +0200
Android clicks on the notification bar message to open the activity and determine if the app is running
android notification bar message click event if an activity is opened, we need to consider two situations:
The application is running in the foreground.
The application has exited.
If it's the first case, it's handled. Set flag to FLAG_ACTIVITY_NEW_TASK for Intent directly, and then call the context.startActivity method. Flag ...
Posted by mentor on Wed, 08 May 2019 05:10:05 +0200
Python 3 object-oriented programming, error and exception handling
Class and instance
Classes are abstract templates, and instances are concrete "objects" created according to classes.
Terminology explanation
Class: A collection of objects that describe the same properties and methods. It defines the properties and methods common to each object in the set. Objects are instances of ...
Posted by kevgais on Tue, 07 May 2019 10:40:04 +0200
Studying “ Huaxiao ” Should it be used or not?
How to use data mining "flower choke" in the end should not be used?
Based on Monte Carlo principle:
If all the expenditure in that month is paid by the flower, when the arrears of the flower in that month are greater than the expendable income in that month, it will "eat dirt".
_Budget design 120 months ...
Posted by Matt Kindig on Tue, 07 May 2019 03:45:04 +0200
kubernetes event reflector
kubernetes event reflector
kubernetes event reflector
ListWatcher interface
ListWatch Implementing ListWatcher Interface
Informer using ListWatch
Reflector
Reflector type definition
Functions to create Reflector objects
Run() method
ListAndWatch() method
controller using Reflector
Run() method
processLoop() metho ...
Posted by Neumy on Mon, 06 May 2019 23:35:04 +0200
Redis 7000w+ keys && 16G memory 100% repair experience
cause
We always use redis of Aliyun. We are not a high concurrent application. We mainly use redis as distributed locks and a small amount of caches. It hardly needs maintenance. Yesterday afternoon, we suddenly received an alarm email. On-line redis memory is used 100% and instantaneous nerve tension sensation is confirmed by console.This is a ...
Posted by jim_de_bo on Mon, 06 May 2019 15:00:04 +0200