Study notes: multithreading

Learning content: multithreading 1. Thread overview 1. What is a process? What is a thread? A process is an application. A thread is an execution scenario / execution unit in a process. A process can start multiple threads. 2. What is the relationship between process and thread? Process can be seen as a real-life company. Thread can be r ...

Added by Davy on Thu, 09 Dec 2021 13:33:40 +0200

static keyword, hungry-man, lazy-man display in single-case mode

I.   Use of the static keyword 1.static: static   2.static can be used to decorate attributes, methods, code blocks, internal classes   3. Modify attributes with static: static variables 3.1 Attribute: Static variables (class variables) by whether or not they are modified with statics   vs   Non-static variable (i ...

Added by tallberg on Mon, 06 Dec 2021 05:39:22 +0200

HashMap underlying principle implementation source code analysis

*** summary HashMap is implemented based on the Map interface. Elements are stored in the form of key value pairs, and null values are allowed to be added. Because keys are not allowed to be repeated, only one key can be null. In addition, HashMap cannot guarantee the order in which elements are placed. It is disordered and cannot be the ...

Added by zman on Sat, 20 Nov 2021 08:45:13 +0200