Advanced multithreading -- on Semaphore source code of JUC concurrent programming

1. Learning entry point Baidu translates as follows: Count semaphores. Conceptually, semaphores maintain a set of licenses. If necessary, each acquire () will block until a license is available, and then acquire it. Each release () adds a license that may release a blocked acquirer. However, the actual permission object is not used; the ...

Posted on Thu, 27 Feb 2020 04:38:48 -0500 by Gambler

Translation Toolkit: end of word+txt

Catalog origin Preface Software as a whole Project structure Code main.py baidu_tra.py error.py  txt_tra.py  word_tra.py Detailed steps Epilogue origin Translation Toolkit: txt file session (1) Preface This is an article full of bug s, full of the author's inner incompetence and rage ...

Posted on Thu, 27 Feb 2020 04:18:56 -0500 by mattdarnold

Basic JavaScript (ECMAScript) learning

Article directory 1.JavaScript concept 2. Functions of JavaScript 3.JavaScript development history 4.JavaScript = ECMAScript + BOM+DOM 5.ECMAScript: the standard of client script language 5.1 basic grammar 5.1.1 combination with HTML 5.1.2 notes 5.1.3 data type 5.1.4 variable 5.1.5 operators 5.1.6 au ...

Posted on Thu, 27 Feb 2020 04:08:11 -0500 by j7n5u

Data structure - addition, deletion and traversal of balanced binary tree AVL

1. Concept: The Balanced Binary Tree has the following properties: it is an empty tree or the absolute value of the height difference between its left and right subtrees is not more than 1, and the left and right subtrees are both a Balanced Binary Tree. 1.1 balance factor: The height of the left ...

Posted on Thu, 27 Feb 2020 04:06:54 -0500 by msmith29063

Chapter 4 array

1. Create one-dimensional array of basic types public class Test { public static void main(String args[]) { int[] s = null; // Declaration array; s = new int[10]; // Allocate space to an array; for (int i = 0; i < 10; i++) { s[i] = 2 * i + 1;//Assign values to ...

Posted on Thu, 27 Feb 2020 04:02:43 -0500 by slevytam

Directory processing commands in linux

Catalog mkdir cd pwd rmdir cp mv rm mkdir explain Command name: mkdir Make directions Command path: / bin/mkdir Execute permission: all users Function Description: create a new directory grammar mkdir -p [directory name] -p recursive creation Example # Create it directly under tmp. At this time, the Japan directory does not exi ...

Posted on Thu, 27 Feb 2020 03:59:53 -0500 by delayedinsanity

Comprehensive application of Fragment+ViewPager+TabLayout

Comprehensive application of Fragment+ViewPager+TabLayout App navigation bar cases Effect display Rely on jar package Create layout java code and required adapter App navigation bar cases Effect display This is an effect of TabLayout + ViewPager slide switch and click tab switch. TabLayout s ...

Posted on Thu, 27 Feb 2020 03:46:43 -0500 by richarro1234

Python Basics - string manipulation

Article directory Character string Variable assignment string Clear variable value - del String escape -\ View data type - type Operation on characters String slicing Find string content - find Count the number of characters in the string - count Replace - replace Separator slice - split Separator ...

Posted on Thu, 27 Feb 2020 03:37:08 -0500 by Kudose

Display the overall waveform of audio through Web Audio Api (overall waveform, rather than real-time)

When doing this function, I didn't know much about audio, because the audio tag of H5 is already very powerful, but because the waveform of audio needs to be displayed this time, I began to check the documents and related technical stickers, and found that no matter what is recommended by the officia ...

Posted on Thu, 27 Feb 2020 03:31:14 -0500 by Sweeney

The problem of page jitter when the input box is switched to get focus on ios mobile phone

Problem Description: When there are multiple input input input boxes on the page, when switching the input content back and forth, it will be found on ios mobile phone that when switching, the whole page shakes and returns to the original position, which is not a good experience Causes of this problem: It was caused by the introduction of a ...

Posted on Thu, 27 Feb 2020 03:22:03 -0500 by techek