Tagged articles
358 articles
Page 4 of 4
Architecture Digest
Architecture Digest
Oct 20, 2020 · Backend Development

Deep Dive into Java ThreadPoolExecutor: Creation, Task Execution, and Shutdown Mechanisms

This article provides an in‑depth analysis of Java's ThreadPoolExecutor, explaining how Executors' factory methods create pools, detailing the constructor parameters, internal state management, task submission via execute, worker thread lifecycle, and the differences between shutdown and shutdownNow, with code excerpts for clarity.

ExecutorsJavaShutdown
0 likes · 19 min read
Deep Dive into Java ThreadPoolExecutor: Creation, Task Execution, and Shutdown Mechanisms
Youzan Coder
Youzan Coder
Sep 23, 2020 · Backend Development

Why Did My Dubbo Thread Pool Deadlock? A Deep Dive into CompletableFuture Blocking

The article analyzes a production incident where a Dubbo thread pool exhausted its threads due to CompletableFuture#join blocking, explains how the custom business thread pool caused mutual waiting, and presents a solution that isolates asynchronous tasks into a separate pool to restore service stability.

BackendCompletableFutureDubbo
0 likes · 9 min read
Why Did My Dubbo Thread Pool Deadlock? A Deep Dive into CompletableFuture Blocking
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 21, 2020 · Backend Development

Understanding Java Thread Pools: Concepts, Benefits, and Usage

This article explains Java thread pools, covering their purpose, advantages, core components, constructor parameters, built‑in pool types such as Cached, Fixed and Single thread pools, and the available rejection policies, providing code examples and practical guidance for efficient multithreaded programming.

ExecutorServiceJavaThreadPool
0 likes · 11 min read
Understanding Java Thread Pools: Concepts, Benefits, and Usage
Selected Java Interview Questions
Selected Java Interview Questions
Sep 20, 2020 · Backend Development

Comprehensive Guide to Java Multithreading: Concepts, APIs, and Best Practices

This article provides an in‑depth overview of Java multithreading, covering fundamental concepts such as processes, threads, parallelism vs concurrency, thread creation methods, lifecycle states, synchronization mechanisms, memory model nuances, lock implementations, common pitfalls like deadlocks, and practical usage of thread pools with best‑practice recommendations.

CASJMMJava
0 likes · 39 min read
Comprehensive Guide to Java Multithreading: Concepts, APIs, and Best Practices
macrozheng
macrozheng
Sep 3, 2020 · Backend Development

Mastering Java Concurrent Queues: When to Use Blocking, Non‑Blocking, and Transfer Queues

This article provides a comprehensive overview of Java's concurrent queue implementations, explaining the differences between blocking and non‑blocking queues, their underlying mechanisms, typical use‑cases, and code examples for classes such as ArrayBlockingQueue, LinkedBlockingQueue, PriorityBlockingQueue, DelayQueue, SynchronousQueue, LinkedTransferQueue, and LinkedBlockingDeque.

BlockingQueueJUCJava
0 likes · 16 min read
Mastering Java Concurrent Queues: When to Use Blocking, Non‑Blocking, and Transfer Queues
Sohu Tech Products
Sohu Tech Products
Sep 2, 2020 · Fundamentals

Deep Dive into Java ThreadPoolExecutor: Design, States, and Source Code Analysis

This article provides an in‑depth technical analysis of Java's ThreadPoolExecutor, explaining its state encoding, task submission flow, worker creation, lock mechanisms, task execution loop, shutdown procedures, and practical examples that illustrate how core size, maximum size, and queue types affect thread pool behavior.

ExecutorServiceJavaThreadPool
0 likes · 30 min read
Deep Dive into Java ThreadPoolExecutor: Design, States, and Source Code Analysis
Programmer DD
Programmer DD
Aug 29, 2020 · Backend Development

Mastering Java's Blocking Queues: When to Use Each JUC Queue

This article categorizes the tools in java.util.concurrent, explains the six major groups of JUC utilities, dives deep into the design and behavior of various blocking and non‑blocking queues, shows their core methods, typical use‑cases, and provides code examples for practical implementation.

BlockingQueueJUCThreadPool
0 likes · 15 min read
Mastering Java's Blocking Queues: When to Use Each JUC Queue
Programmer DD
Programmer DD
Aug 19, 2020 · Backend Development

Unlocking Spring’s @Async: Deep Dive into Mechanics, Pitfalls, and Solutions

This article explores Spring’s @Async annotation in depth, detailing its basic usage, underlying proxy creation, pointcut logic, and asynchronous execution, while highlighting common issues such as circular dependencies and inefficient default thread pools, and providing practical solutions like lazy injection and custom executors.

AsyncDependencyInjectionThreadPool
0 likes · 15 min read
Unlocking Spring’s @Async: Deep Dive into Mechanics, Pitfalls, and Solutions
MaGe Linux Operations
MaGe Linux Operations
Aug 17, 2020 · Fundamentals

Boost Python Performance: Simple Parallelism with map and ThreadPool

This article explains why traditional Python threading tutorials are often over‑engineered, introduces the concise map‑based parallelism using multiprocessing and multiprocessing.dummy, and demonstrates how a few lines of code can dramatically speed up I/O‑bound and CPU‑bound tasks.

MAPParallelismThreadPool
0 likes · 11 min read
Boost Python Performance: Simple Parallelism with map and ThreadPool
FunTester
FunTester
Aug 9, 2020 · Backend Development

Implementing Multithreaded Test Execution with Thread Pools and Distributed User Locks in Java

This article describes how to accelerate test case execution by introducing a global thread pool with CountDownLatch synchronization, presents the full Java implementations of the custom thread pool and test‑run thread classes, and explains a combined local and distributed user‑lock mechanism that uses ConcurrentHashMap caching and transactional locks to ensure safe credential retrieval.

DistributedLockJavaTestingFramework
0 likes · 9 min read
Implementing Multithreaded Test Execution with Thread Pools and Distributed User Locks in Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 7, 2020 · Backend Development

Understanding Callable, ExecutorService, and Future in Java

This article explains how Java's Callable interface, ExecutorService, and Future work together to execute asynchronous tasks, detailing their API relationships, internal implementations, and practical usage examples with code snippets illustrating task creation, submission, and result retrieval.

CallableExecutorServiceFuture
0 likes · 14 min read
Understanding Callable, ExecutorService, and Future in Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 27, 2020 · Backend Development

Detailed Guide to Using @EnableAsync and @Async for Asynchronous Bean Method Execution in Spring

This article provides a comprehensive explanation of Spring's @EnableAsync and @Async annotations, covering their purpose, usage steps, handling of return values, custom thread‑pool configuration, exception handling, thread‑pool isolation, and the underlying AOP mechanism, supplemented with complete code examples.

AsyncJavaThreadPool
0 likes · 18 min read
Detailed Guide to Using @EnableAsync and @Async for Asynchronous Bean Method Execution in Spring
Programmer DD
Programmer DD
Jul 18, 2020 · Fundamentals

Master Java Concurrency: Callable, Future & FutureTask Explained

This article explores Java's thread creation methods, contrasts Runnable and Callable, delves into the ExecutorService API, and provides an in‑depth analysis of Future, FutureTask, and their internal state management, complete with practical code examples and performance‑optimizing techniques for concurrent programming.

CallableFutureJava
0 likes · 23 min read
Master Java Concurrency: Callable, Future & FutureTask Explained
FunTester
FunTester
Jul 9, 2020 · Backend Development

Multithreaded Test Case Execution and Database Standards

The article shares practical experiences on running test cases concurrently using Java multithreading and a custom thread pool, and outlines MySQL database naming, null handling, and schema design guidelines, including full code examples for the case runner and thread pool implementation.

Database designJavaSQL
0 likes · 7 min read
Multithreaded Test Case Execution and Database Standards
Selected Java Interview Questions
Selected Java Interview Questions
Jun 25, 2020 · Fundamentals

Java Multithreading and Concurrency Basics: Threads, Synchronization, Thread Pools, and Common Pitfalls

This article introduces the fundamentals of Java multithreading and concurrency, covering the differences between processes and threads, the relationship between Thread and Runnable, start vs run, thread creation methods, handling return values, thread states, sleep vs wait, notify vs notifyAll, yield, interrupt, and the use of thread pools with executors.

CallableJavaThread
0 likes · 21 min read
Java Multithreading and Concurrency Basics: Threads, Synchronization, Thread Pools, and Common Pitfalls
FunTester
FunTester
Jun 25, 2020 · Backend Development

Implementing Asynchronous Test Case Execution with Thread Pool in Java

This article explains how to design and implement a multithreaded framework for executing test cases concurrently in Java, covering thread‑pool creation, a runnable test‑case class, collection execution logic, and parameter handling with user credentials and random data generation.

JavaTestAutomationThreadPool
0 likes · 8 min read
Implementing Asynchronous Test Case Execution with Thread Pool in Java
Java Backend Technology
Java Backend Technology
Jun 16, 2020 · Backend Development

How to Optimize Java Thread Pool Settings for Maximum Performance

This article explains the principles behind Java thread pools, details the Executor framework, describes key parameters, provides formulas for calculating optimal thread counts for CPU‑bound and I/O‑bound workloads, and includes practical code examples and performance test results to help developers fine‑tune their thread pools.

ExecutorJavaThreadPool
0 likes · 14 min read
How to Optimize Java Thread Pool Settings for Maximum Performance
Selected Java Interview Questions
Selected Java Interview Questions
May 18, 2020 · Backend Development

Understanding Java's java.util.concurrent (J.U.C) Framework and AQS Mechanism

This article provides a comprehensive overview of Java's java.util.concurrent package, detailing its core components such as atomic classes, locks, collections, executors, tools, as well as an in‑depth explanation of the AbstractQueuedSynchronizer (AQS) framework, its fields, methods, and related concurrency utilities like FutureTask, BlockingQueue, ForkJoin, and work‑stealing algorithms.

AQSForkJoinFutureTask
0 likes · 22 min read
Understanding Java's java.util.concurrent (J.U.C) Framework and AQS Mechanism
21CTO
21CTO
May 18, 2020 · Backend Development

Why You Should Avoid Executors and Build ThreadPoolExecutor Manually in Java

This article explains the definition of thread pools, why using Executors to create them is discouraged, details the ThreadPoolExecutor constructor and its parameters, compares different Executors factory methods, demonstrates OOM risks with tests, and provides practical guidelines for configuring safe thread pools.

ExecutorsJavaOOM
0 likes · 10 min read
Why You Should Avoid Executors and Build ThreadPoolExecutor Manually in Java
Java Captain
Java Captain
Dec 27, 2019 · Backend Development

Understanding ThreadPoolExecutor Through a Morning Meeting Analogy

The article uses a vivid morning‑meeting story to illustrate how Java's ThreadPoolExecutor, its core and maximum pool sizes, keep‑alive time, work queue, thread factory and rejection handler cooperate to manage interview‑like tasks efficiently.

JavaThreadPoolThreadPoolExecutor
0 likes · 8 min read
Understanding ThreadPoolExecutor Through a Morning Meeting Analogy
Programmer DD
Programmer DD
Dec 15, 2019 · Backend Development

Java ThreadLocal Deep Dive: Structure, 0x61c88647 Hash Trick & Usage

This article explains the internal architecture of Java's ThreadLocal, including its ThreadLocalMap implementation, the purpose of the special hash code 0x61c88647, collision handling strategies, proper usage patterns in web applications, and precautions for avoiding memory leaks in thread pools.

HashingJavaMemoryLeak
0 likes · 12 min read
Java ThreadLocal Deep Dive: Structure, 0x61c88647 Hash Trick & Usage
Alibaba Cloud Native
Alibaba Cloud Native
Aug 30, 2019 · Backend Development

Master Java Concurrency: Deep Dive into JUC, Locks, and Thread Pools

This article explains why Java concurrency has a steep learning curve, introduces the JUC package and its core components, illustrates common pitfalls with queues and thread pools, and guides readers through the inner workings of AQS, locks, atomic classes, and advanced synchronizers.

JUCJavaLocks
0 likes · 11 min read
Master Java Concurrency: Deep Dive into JUC, Locks, and Thread Pools
Java Captain
Java Captain
Aug 21, 2019 · Backend Development

Understanding Java ThreadPoolExecutor: Constructors, Parameters, and Usage

This article provides a comprehensive, beginner‑friendly guide to Java's ThreadPoolExecutor, explaining its constructors, core and maximum pool sizes, keep‑alive time, work queues, thread factories, rejection policies, and common factory methods such as newFixedThreadPool, newCachedThreadPool, and newSingleThreadExecutor, complete with code examples and flowcharts.

JavaThreadPoolThreadPoolExecutor
0 likes · 5 min read
Understanding Java ThreadPoolExecutor: Constructors, Parameters, and Usage
Java Captain
Java Captain
Jul 27, 2019 · Backend Development

Comprehensive Guide to Java Thread Pools: Concepts, Common Interview Questions, and Practical Usage

This article provides an in‑depth overview of Java thread pools, covering core concepts, typical interview questions, creation via ThreadPoolExecutor, execution flow, rejection policies, work‑queue types, common pool implementations, exception handling strategies, and pool state transitions, all illustrated with code examples and diagrams.

ExecutorServiceJavaThreadPool
0 likes · 17 min read
Comprehensive Guide to Java Thread Pools: Concepts, Common Interview Questions, and Practical Usage
Java Captain
Java Captain
Jul 26, 2019 · Fundamentals

Java Fundamentals: Spring Lifecycle, TCP Handshake, Thread Pool, JVM Memory, JMM, Spring MVC, JDBC, Spring Cloud, and Dubbo Overview

This article provides a comprehensive overview of core Java concepts and related technologies, covering Spring's lifecycle, TCP three-way handshake and four-way termination, thread pool execution flow, JVM memory structure and Java Memory Model, as well as Spring MVC, JDBC, Spring Cloud components, and Dubbo service framework.

JVMJavaSpringCloud
0 likes · 11 min read
Java Fundamentals: Spring Lifecycle, TCP Handshake, Thread Pool, JVM Memory, JMM, Spring MVC, JDBC, Spring Cloud, and Dubbo Overview
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jul 4, 2019 · Backend Development

Java Multithreading: Creation Methods, Lifecycle, Communication, Thread Pools, Locks, and Concurrent Containers

This article introduces Java multithreading fundamentals, covering four thread creation techniques, the five-stage thread lifecycle, communication methods, thread‑pool usage, common synchronization locks, and the main concurrent container classes for building high‑performance backend applications.

ConcurrentContainersJavaLocks
0 likes · 2 min read
Java Multithreading: Creation Methods, Lifecycle, Communication, Thread Pools, Locks, and Concurrent Containers
Wukong Talks Architecture
Wukong Talks Architecture
Apr 28, 2019 · Fundamentals

C# Multithreading Journey (3) – Using the Thread Pool

This article explains how C# thread pools reduce thread‑creation overhead, describes several ways to enqueue work (Task Parallel Library, ThreadPool.QueueUserWorkItem, asynchronous delegates, BackgroundWorker), provides practical code examples, and outlines important considerations such as thread naming, priority, and exception handling.

CTask Parallel LibraryThreadPool
0 likes · 9 min read
C# Multithreading Journey (3) – Using the Thread Pool
21CTO
21CTO
Apr 11, 2019 · Backend Development

Mastering Java Concurrency: Threads, Locks, ThreadPools, and More

This comprehensive guide explores Java concurrency fundamentals—including processes, threads, daemon threads, thread states, synchronization methods, scheduling algorithms, wait vs. sleep, ThreadLocal, locks, volatile, CAS, Unsafe, thread pools, executor policies, blocking queues, Fork/Join, atomic classes, barriers, semaphores, deadlock, IPC, and interruption—providing essential knowledge for building high‑performance backend systems.

JavaLockSynchronization
0 likes · 26 min read
Mastering Java Concurrency: Threads, Locks, ThreadPools, and More
MaGe Linux Operations
MaGe Linux Operations
Apr 1, 2019 · Backend Development

Boost Python Performance: Parallelize Tasks with ThreadPool and map

This article critiques traditional Python multithreading tutorials and demonstrates how the built‑in map function together with multiprocessing.dummy's ThreadPool can dramatically speed up I/O‑bound and CPU‑bound tasks, offering concise code examples, performance benchmarks, and a real‑world thumbnail generation case study.

MAPParallelismThreadPool
0 likes · 11 min read
Boost Python Performance: Parallelize Tasks with ThreadPool and map
Java Captain
Java Captain
Mar 30, 2019 · Backend Development

Understanding Java ThreadPoolExecutor: States, Key Parameters, and Workflow

This article explains why thread pools are essential for efficient resource utilization, describes the five lifecycle states of a ThreadPoolExecutor, details its most important parameters such as core and maximum pool sizes, work queue, keep‑alive time and rejection policies, and walks through the complete task execution workflow.

JavaThreadPoolThreadPoolExecutor
0 likes · 16 min read
Understanding Java ThreadPoolExecutor: States, Key Parameters, and Workflow
Java Captain
Java Captain
Mar 16, 2019 · Fundamentals

Java Multithreading: Concepts, Thread Creation, Synchronization, Thread Pools, and Deadlock Prevention

This article explains core Java multithreading concepts, covering the differences between parallel and concurrent execution, thread vs process, daemon threads, various ways to create threads, thread states, synchronization mechanisms, thread‑pool types, lock escalation, deadlock causes and prevention, as well as ThreadLocal and atomic utilities.

JavaThreadPooldeadlock
0 likes · 16 min read
Java Multithreading: Concepts, Thread Creation, Synchronization, Thread Pools, and Deadlock Prevention
Programmer DD
Programmer DD
Mar 7, 2019 · Backend Development

Master Java Thread Pools: Key Interview Questions & Parameter Tuning

This article explains why Java concurrency is essential, presents common interview questions about thread pools and locking, walks through concrete parameter‑setting scenarios such as coreSize=5, maxSize=10 with six tasks, and offers guidance on choosing pool sizes for high‑traffic payment services.

JavaThreadPoolinterview
0 likes · 6 min read
Master Java Thread Pools: Key Interview Questions & Parameter Tuning
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Nov 20, 2018 · Backend Development

Comprehensive Java Multithreading and Concurrency Interview Questions and Answers

This article compiles 46 essential Java multithreading and concurrency interview questions with detailed answers, covering fundamentals such as atomicity, visibility, ordering, thread creation methods, thread pools, synchronization mechanisms, lock types, AQS, deadlocks, and performance considerations for high‑performance backend development.

JavaSynchronizationThreadPool
0 likes · 24 min read
Comprehensive Java Multithreading and Concurrency Interview Questions and Answers
Programmer DD
Programmer DD
Nov 12, 2018 · Backend Development

Why Did My Java ThreadPool Hang? Uncovering a Hidden HashSet Loop in JDK 1.7

A production Java service suffered a thread‑pool alarm due to an unbounded LinkedBlockingQueue and a non‑thread‑safe HashSet, leading to massive memory usage, a circular linked‑list loop in HashMap, and severe CPU load, which was resolved by switching to ConcurrentHashMap and tuning the pool.

JavaMemoryAnalysisThreadPool
0 likes · 8 min read
Why Did My Java ThreadPool Hang? Uncovering a Hidden HashSet Loop in JDK 1.7
Programmer DD
Programmer DD
Nov 9, 2018 · Backend Development

How Java’s Producer‑Consumer Problem Evolved: From Classic Locks to BlockingQueue and Thread Pools

This article walks through the classic Java producer‑consumer synchronization challenge, shows its traditional lock‑based solution, then demonstrates modern approaches using BlockingQueue and ExecutorService thread pools to simplify code, improve reliability, and avoid common pitfalls like deadlocks and thread starvation.

BlockingQueueJavaProducer Consumer
0 likes · 15 min read
How Java’s Producer‑Consumer Problem Evolved: From Classic Locks to BlockingQueue and Thread Pools
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 27, 2018 · Fundamentals

Mastering Java Core Concepts: ThreadLocal, JVM Memory, GC, Concurrency, and More

This article provides a comprehensive overview of essential Java fundamentals, covering ThreadLocal, the JVM memory model, garbage collection mechanisms, synchronization primitives like synchronized and ReentrantLock, volatile semantics, concurrency utilities, thread pools, class loading, and common data structures such as HashMap and ConcurrentHashMap.

JVMMemory ManagementThreadPool
0 likes · 31 min read
Mastering Java Core Concepts: ThreadLocal, JVM Memory, GC, Concurrency, and More
Java Architect Essentials
Java Architect Essentials
Mar 19, 2018 · Backend Development

40 Common Java Multithreading Interview Questions and Answers

This article compiles and answers 40 frequently asked Java multithreading interview questions, covering thread purpose, creation methods, key APIs, synchronization mechanisms, thread safety levels, performance considerations, and practical debugging techniques for developers seeking a solid understanding of concurrent programming.

SynchronizationThreadThreadPool
0 likes · 29 min read
40 Common Java Multithreading Interview Questions and Answers
Java Captain
Java Captain
Feb 1, 2018 · Fundamentals

Common Java Multithreading and Concurrency Interview Questions and Answers

This article compiles essential Java multithreading and concurrency interview questions, covering thread basics, lifecycle, synchronization, thread pools, executors, atomic classes, deadlocks, and related concepts, providing concise explanations and code examples for interview preparation.

JavaThreadThreadPool
0 likes · 20 min read
Common Java Multithreading and Concurrency Interview Questions and Answers
21CTO
21CTO
Nov 17, 2017 · Fundamentals

Master Java Concurrency: Threads, Thread Pools, and Synchronization

This article provides a comprehensive overview of Java concurrency, covering thread creation methods, thread pools, thread models, the Future and Fork/Join frameworks, volatile and CAS mechanisms, AQS, synchronized locks, and various concurrent queue implementations, with practical code examples and references for deeper study.

JavaSynchronizationThread
0 likes · 38 min read
Master Java Concurrency: Threads, Thread Pools, and Synchronization
Architecture Digest
Architecture Digest
Nov 17, 2017 · Backend Development

A Comprehensive Overview of Java Concurrency Programming

This article provides a high‑level summary of Java concurrency, covering thread creation methods, thread models, thread pools, Future and CompletableFuture, the Fork/Join framework, volatile, CAS, AQS, synchronized locks, and concurrent queue implementations, with code examples and reference links for deeper study.

AQSCASFuture
0 likes · 39 min read
A Comprehensive Overview of Java Concurrency Programming
Java Captain
Java Captain
Sep 4, 2017 · Backend Development

Understanding and Writing High‑Quality Concurrent Code in Java (Java 5 and Beyond)

This article explains why concurrency is essential, debunks common misconceptions, presents design principles and practical techniques, reviews Java 5 and later concurrency utilities such as atomic classes, explicit locks, CountDownLatch, ConcurrentHashMap, CopyOnWriteArrayList, BlockingQueue, and advanced models like producer‑consumer, reader‑writer, and the dining philosophers problem, and offers testing advice for robust multithreaded applications.

ThreadPooljava.util.concurrent
0 likes · 29 min read
Understanding and Writing High‑Quality Concurrent Code in Java (Java 5 and Beyond)
Qunar Tech Salon
Qunar Tech Salon
Apr 12, 2016 · Fundamentals

40 Common Java Multithreading Interview Questions and Answers

This article presents a comprehensive collection of 40 Java multithreading interview questions, covering the purpose of multithreading, thread creation methods, differences between start() and run(), Runnable vs Callable, synchronization utilities, memory model, locks, thread pools, and best practices for concurrent programming.

Java Memory ModelThreadThreadPool
0 likes · 29 min read
40 Common Java Multithreading Interview Questions and Answers
Qunar Tech Salon
Qunar Tech Salon
Mar 3, 2016 · Backend Development

Understanding and Tuning Java Thread Pools for Web Applications

This article explains the fundamentals of Java thread pools, compares single‑threaded and multi‑threaded web servers, discusses resource exhaustion, demonstrates creating fixed‑size pools with ExecutorService, explores work‑queue policies, and provides guidelines for sizing and tuning thread pools in backend applications.

BackendThreadPool
0 likes · 11 min read
Understanding and Tuning Java Thread Pools for Web Applications
Architecture Digest
Architecture Digest
Feb 26, 2016 · Backend Development

Comprehensive Guide to Java Concurrency: Concepts, Synchronization, Thread Pools, and the Java Memory Model

This article provides an extensive overview of Java concurrency, covering synchronous vs asynchronous calls, critical sections, blocking and non‑blocking behavior, deadlock, starvation, livelock, concurrency levels, the Java Memory Model, atomicity, visibility, ordering, thread lifecycle, synchronization mechanisms, thread pools, and related utilities.

JMMJavaSynchronization
0 likes · 39 min read
Comprehensive Guide to Java Concurrency: Concepts, Synchronization, Thread Pools, and the Java Memory Model
21CTO
21CTO
Oct 11, 2015 · Backend Development

Inside Java’s ThreadPoolExecutor: How Executors Actually Work

This article dissects Java’s Executors utility, revealing how Executors.newFixedThreadPool creates a ThreadPoolExecutor, detailing constructor parameters, task execution flow, thread creation, queue handling, rejection policies, and worker lifecycle, giving readers a clear understanding of the internal mechanics behind Java’s thread pools.

ExecutorsJUCJava
0 likes · 14 min read
Inside Java’s ThreadPoolExecutor: How Executors Actually Work