Concurrent Programming Protocol

A primer The theme of this section is based on single threading, which implements concurrency with only one main thread (apparently only one cpu available), so let's first review the nature of concurrency: toggle + save state The cpu is running a task that will be cut off to perform other tasks (switching is mandatory by the operating system) e ...

Added by TFD3 on Thu, 22 Aug 2019 03:47:23 +0300

Web Application Stack Travel - Spring Integration GraphQL

Background When current applications span multiple terminals, problems often arise as follows: The amount of information that each end needs to acquire is different. For example, because of the size of the display screen, the mobile terminal need ...

Added by acirilo on Sun, 18 Aug 2019 10:47:00 +0300

C/C++ Modify System Time, Sem_time dwait Cause Blocking Problem Solution and Analysis

Solution and analysis of the problem that sem_timedwait has been blocked by modifying system time introduce When recently fixing a project problem, it was found that when the system time was modified forward, the sem_timedwait function would be blocked all the time. By searching, it is found that int sem_time dwait (sem_t*sem, con ...

Added by neex1233 on Sat, 17 Aug 2019 15:17:22 +0300

[Wu Enda Machine Learning Assignment 2] - Logical Regression Chapter Python Implementation

[Wu Enda Machine Learning Assignment 2] - Logical Regression Chapter Python Implementation Recommended running environment: python 3.6 Establish a logistic regression model to predict whether a student will be admitted to a university or not. The a ...

Added by robshanks on Sat, 17 Aug 2019 15:08:47 +0300

"Fast learning spring boot" 16. Let swagger help write interface documents

Introduction to swagger Official introduction THE WORLD'S MOST POPULAR API TOOLING Swagger is the world's largest framework of API developer tools for the OpenAPI Specification(OAS), enabling development across the entire API lifecycle, from desi ...

Added by shubham.amola on Sat, 17 Aug 2019 12:48:52 +0300

[Learning Notes - Java Collection - 7] Map - Concurrent HashMap Source Analysis

brief introduction Concurrent HashMap is a thread-safe version of HashMap. It also uses the structure of array + linked list + red-black tree to store elements. Compared with HashTable with the same thread security, efficiency and other aspects have been greatly improved. A Brief Introduction to the Use of Locks Here is a brief introduction to ...

Added by pagie on Sat, 17 Aug 2019 12:17:45 +0300

python front-end development (JavaScript variables, data types, built-in objects, operators, process controls, functions)

11.4 JavaScript 11.41 variable 1. Grammar of declaring variables // 1. Declare before define var name; // There is no need to specify a type or variable when declaring a variable. name Any type is acceptable name= "egon"; ​ // 2. Declarations are immediately defined var age = 18; 2. Variable Naming Specification 1. It's composed o ...

Added by chetanrakesh on Fri, 16 Aug 2019 17:44:40 +0300

Common Shell scripts

1. Creating linux System Account and Password through Location Variables$1 is the first parameter to execute the script, and $2 is the second parameter to execute the script. 1 #!/bin/bash 2 # Author: Peter zh 3 # Blog: https://home.cnblogs.com/zhangwduoduoj/ 4 # Time: 2019-08-17 19:19:45 5 # Name: userad.sh 6 # Version: v1.0 7 # Descr ...

Added by twistedmando on Thu, 15 Aug 2019 15:44:33 +0300

High concurrent programming in real-world java Chapter 3

3. JDK Concurrent Container Concurrent collection Concurrent HashMap: This is an efficient concurrent HashMap. You can understand it as a thread-safe HashMap. CopyOnWriteArrayList: This is a List, which is a family of ArrayLists by name. In the case of reading more and writing less, this List performs very well, far better than Vector. C ...

Added by JonathanAnon on Wed, 14 Aug 2019 08:08:16 +0300

The leecode algorithm "155. Minimum Stack" is annotated and simple.

The leecode algorithm "155. Minimum Stack" is annotated and simple. Content of the original topic Design a stack that supports push, pop, top operations and can retrieve the smallest elements in a constant time. push(x) - Push element x i ...

Added by ravi181229 on Tue, 13 Aug 2019 14:18:01 +0300