Concurrent programming - the specific implementation of ThreadPoolExecutor

Concurrent programming Executor thread pool principle and source code analysis ThreadPoolExecutor default thread pool Creation of thread pool public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, ...

Added by syed on Fri, 24 Dec 2021 09:16:20 +0200

[pooling technology] thread pool technology principle and C language implementation

1, Basic concepts Before talking about thread pool technology, we first explain some basic concepts in the operating system, such as process, thread, thread creation and destruction. Processes and threads process An application running in memory. Each process has its own independent memory space. A process can have multiple threads. For ...

Added by driverdave on Sun, 12 Dec 2021 17:13:29 +0200

JUC learning - in depth analysis of thread pool executor (supplementary)

Next blog https://blog.csdn.net/qq_43605444/article/details/121727738?spm=1001.2014.3001.5501 6. Worker class The following is an official comment on the Worker class: /** * Class Worker mainly maintains interrupt control state for * threads running tasks, along with other minor bookkeeping. * This class opportunistically extends Abstr ...

Added by eabigelow on Mon, 06 Dec 2021 07:05:57 +0200

Use of JUC thread pool and source code analysis

Thread pool creation and use Creation of thread pool The Executors framework provides various types of thread pools, mainly including the following factory methods: public static ExecutorService newFixedThreadPool(int nThreads) public static ExecutorService newCachedThreadPool() public static ScheduledExecutorService newScheduledThreadPool(int ...

Added by Jenling on Thu, 02 Dec 2021 06:32:38 +0200

Simple application of Spring Boot thread pool

preface During the project two days ago, I wanted to improve the performance optimization of inserting tables, because there are two tables. Insert the old table first, and then insert the new table. More than 10000 data are a little slow The thread pool ThreadPoolExecutor comes to mind later, and the Spring Boot project is used. The thread p ...

Added by paragkalra on Wed, 24 Nov 2021 17:30:12 +0200

Use of SpringBoot global thread pool and local thread pool

  catalogue Thread pool Global thread pool Local thread pool Thread pool         Thread pool is to create some threads first, and their collection is called thread pool. Using thread pool can improve performance. When the system starts, the thread pool creates a large number of idle threads. The program passes a task ...

Added by FangerZero on Tue, 23 Nov 2021 04:49:34 +0200

November 12 concurrent 7_ Thread pool (structure + template)

1. Thread pool     As we all know, a thread is an executing branch of a process     On the operating system, scheduling is carried out on a site by site basis     => Theoretically, the more threads a process has, the higher its processing efficiency     But in fact, it is affected by the operating s ...

Added by r_honey on Wed, 17 Nov 2021 03:36:16 +0200

An article to understand ThreadPoolExecutor

preface This article belongs to the column "100 problems to solve Java concurrency". This column is original by the author. Please indicate the source of quotation. Please help point out the deficiencies and errors in the comment area. Thank you! Please refer to table of contents and references for this column 100 problems to sol ...

Added by UQ13A on Tue, 09 Nov 2021 20:45:51 +0200

Executors source code analysis (JDK8)

preface This article belongs to the column "100 problems to solve Java concurrency". This column is original by the author. Please indicate the source of quotation. Please help point out the deficiencies and errors in the comment area. Thank you! Please refer to table of contents and references for this column 100 problems to sol ...

Added by kiwi2 on Tue, 09 Nov 2021 02:19:47 +0200

Notes on common classes of JUC

JUC common classes It refers to the class under the import java.util.concurrent package, which is usually used to solve the problem of multi-threaded coordination lock and derived ReentrantLockSecurity classes of various containers: CopyOnWriteArrayList, ConcurrentHashMapUnsafe collection to safe collection: Collections.synchronizedLis()... ...

Added by greenhorn666 on Thu, 21 Oct 2021 20:04:15 +0300