"Crouching in a pit can enter a big factory" multi-threaded series - ThreadLocal intensive lecture (Basic + source code)
preface
Me: Good morning, dog leftover son. I haven't seen you for two days. I thought you changed jobs and joined A-San's company!
Dog leftover son: you're eating spicy farts. It's exciting. If you don't finish the Gie tutorial, I'll jump in any slot.
Me: Yo hoo, where have you been these two days?
Dog leftover son: I'm not practicin ...
Added by leony on Thu, 27 Jan 2022 19:18:16 +0200
Singleton mode and Volatile learning
Singleton mode and Volatile learning
Beep beep link: https://www.bilibili.com/video/BV15b4y117RJ?p=56
requirement
Master the implementation methods of five singleton modesUnderstand why you should use volatile to modify static variables when implementing DCL (double check lock)Understand the scenario of using singleton in jdk
1, Five implem ...
Added by tcl4p on Thu, 27 Jan 2022 01:09:46 +0200
Interrupt in java thread
Reference case: https://www.cnblogs.com/myseries/p/10918819.html
1. Thread interrupt
Interrupt ing a thread means stopping everything it is doing before it completes its task, effectively aborting its current operation. Whether the thread dies, waits for a new task, or continues to run to the next step depends on the program. Although it may se ...
Added by danlindley on Wed, 26 Jan 2022 19:26:43 +0200
Deeply understand the communication between threads of concurrent programming
Deeply understand the communication between threads of concurrent programming
1, What is thread communication
Communication between threads is to enable threads to send signals to each other. When multiple threads are processing the same resource and the tasks are different (normally, multi-threaded execution is processed at the same ti ...
Added by coily on Wed, 26 Jan 2022 03:42:53 +0200
Three design ideas of std::vector concurrency security
Concurrent reading and writing of vectorAs we all know, vector in C + + standard library does not guarantee thread safety. When we read and write vectors concurrently, we often face two risks:Content reading exception: for example, two threads are reading, one is writing, or two threads are writing at the same time, which will lead to inconsist ...
Added by klycette on Tue, 25 Jan 2022 19:31:03 +0200
How dare you say you don't understand Java multithreading
Process and thread
concept
Process: a process is an execution process of a program. It is the basic unit for allocating and managing resources during program execution. Each process has its own memory space.
Thread: thread is the basic unit of CPU resource scheduling and allocation. It can share process resources with other threads in th ...
Added by Warptweet on Mon, 24 Jan 2022 22:24:44 +0200
Limit flow for three devices in high concurrency systems
Catalog
1. Three devices for high concurrency systems
2. Current Limiting Algorithms
2.1 Fixed Window algorithm
2.2 Sliding Window algorithm
2.3 Leaky Bucket algorithm
2.4 Token Bucket algorithm
Comparison of 2.5 Leakage Bucket and Token Bucket Algorithms
3. Scenarios for application of current-limiting algorithms
3.1 Google Guava
3 ...
Added by niall_buckley on Mon, 24 Jan 2022 20:17:45 +0200
Java thread Foundation
Multithreading
Thread related concepts
Program
It is a set of instructions written in a certain language to complete a specific task.
Simply put: it's the code we wrote
process
Process refers to a running program, such as QQ, which starts a process, and the operating system will allocate memory space for the process. When we use Xunlei ...
Added by Impius on Mon, 24 Jan 2022 19:28:38 +0200
Java multi thread essence
Java multi thread essence
Basic concepts: program, process, thread
A program is a set of instructions written in a language. Refers to a set of static code, static objects.A process is an execution of a program, or a running program. It is a dynamic process with its own process of emergence, existence and extinction, that is, the life cycle. ...
Added by Boz on Mon, 24 Jan 2022 06:47:15 +0200
Multithreading Foundation
Thread overview
Thread is a lightweight process (LWP). In Linux environment, the essence of thread is still a process. The program running on the computer is a combination of a group of instructions and instruction parameters. The instructions control the computer according to the established logic. The operating system will allocate syste ...
Added by php-n00b on Sun, 23 Jan 2022 00:58:55 +0200