Tagged articles
118 articles
Page 2 of 2
Meituan Technology Team
Meituan Technology Team
Apr 2, 2020 · Backend Development

Java ThreadPoolExecutor: Design, Implementation, and Dynamic Management

The article explains Java’s ThreadPoolExecutor—its purpose, core design, lifecycle management, task scheduling, worker behavior, and typical configurations for fast response or batch processing—then proposes a dynamic pool with runtime‑adjustable core and max sizes, queue selection, and real‑time monitoring to prevent mis‑configuration and boost stability.

Dynamic ConfigurationThread ManagementThreadPoolExecutor
0 likes · 30 min read
Java ThreadPoolExecutor: Design, Implementation, and Dynamic Management
Programmer DD
Programmer DD
Mar 6, 2020 · Backend Development

Mastering Java ThreadPoolExecutor Rejection Policies: When and How to Use Them

This article explains the design principles of thread pools, when Java's ThreadPoolExecutor triggers rejection policies, details the four built‑in JDK policies with code examples, and explores additional strategies from Dubbo, Netty, ActiveMQ and Pinpoint, helping developers choose the right approach for their workloads.

BackendJDKRejectionPolicy
0 likes · 13 min read
Mastering Java ThreadPoolExecutor Rejection Policies: When and How to Use Them
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.

ThreadPoolThreadPoolExecutorjava
0 likes · 8 min read
Understanding ThreadPoolExecutor Through a Morning Meeting Analogy
Senior Brother's Insights
Senior Brother's Insights
Dec 16, 2019 · Backend Development

Mastering Java Thread Pools: Creation, Configuration, and Best Practices

This comprehensive guide explains Java thread pool fundamentals, creation methods, core parameters, rejection policies, execution flow, common work queues, and shutdown techniques, while providing interview questions, source‑code analysis, and practical code examples for robust concurrent programming.

ExecutorServiceJava MultithreadingThreadPoolExecutor
0 likes · 20 min read
Mastering Java Thread Pools: Creation, Configuration, and Best Practices
Architecture Digest
Architecture Digest
Dec 1, 2019 · Backend Development

Why Executors Should Not Be Used to Create Thread Pools: Understanding ThreadPoolExecutor and OOM Risks

This article explains the definition of thread pools, the pitfalls of using Executors to create them, details the ThreadPoolExecutor constructor and parameters, illustrates execution logic, demonstrates OOM scenarios with code examples, and provides guidelines for safely configuring thread pools in Java.

BackendExecutorsOOM
0 likes · 11 min read
Why Executors Should Not Be Used to Create Thread Pools: Understanding ThreadPoolExecutor and OOM Risks
Programmer DD
Programmer DD
Nov 28, 2019 · Backend Development

Why You Should Avoid Executors for Thread Pools and Use ThreadPoolExecutor Directly

This article explains the definition of Java thread pools, why creating them via Executors is discouraged, details the ThreadPoolExecutor constructor and parameters, compares different Executors factory methods, demonstrates OOM risks with tests, and offers guidelines for configuring thread pool size and rejection policies.

ExecutorsOOMThreadPoolExecutor
0 likes · 12 min read
Why You Should Avoid Executors for Thread Pools and Use ThreadPoolExecutor Directly
Senior Brother's Insights
Senior Brother's Insights
Nov 26, 2019 · Backend Development

Why Executors Should Be Avoided for ThreadPool Creation in Java

This article explains the definition of thread pools, the pitfalls of using Executors factory methods, details the ThreadPoolExecutor constructor parameters, compares different Executors implementations, demonstrates OOM tests, and offers guidelines for configuring thread pool parameters and rejection policies.

ExecutorsOOMThread Pool Configuration
0 likes · 10 min read
Why Executors Should Be Avoided for ThreadPool Creation in Java
Programmer DD
Programmer DD
Sep 15, 2019 · Backend Development

Mastering Java ThreadPool Rejection Policies: When and How to Choose

This article explains the design principles of thread pools, the conditions that trigger rejection policies in Java's ThreadPoolExecutor, details the four built‑in JDK strategies, and reviews several third‑party implementations with their appropriate use‑cases, helping developers select the right policy for their workloads.

RejectionPolicyThreadPoolExecutorjava
0 likes · 14 min read
Mastering Java ThreadPool Rejection Policies: When and How to Choose
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.

ThreadPoolThreadPoolExecutorjava
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.

ExecutorServiceThreadPoolThreadPoolExecutor
0 likes · 17 min read
Comprehensive Guide to Java Thread Pools: Concepts, Common Interview Questions, and Practical Usage
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.

ThreadPoolThreadPoolExecutorjava
0 likes · 16 min read
Understanding Java ThreadPoolExecutor: States, Key Parameters, and Workflow
Programmer DD
Programmer DD
Oct 16, 2018 · Backend Development

Deep Dive into ThreadPoolExecutor: Uncover How Java Manages Thread Pools

This article provides a comprehensive analysis of Java's ThreadPoolExecutor source code, covering class relationships, core interfaces, abstract implementations, internal fields, constructors, the Worker class, and detailed walkthroughs of key methods such as execute, addWorker, runWorker, getTask, processWorkerExit, tryTerminate, and idle thread interruption, plus monitoring techniques.

ExecutorServiceThreadPoolExecutorbackend-development
0 likes · 19 min read
Deep Dive into ThreadPoolExecutor: Uncover How Java Manages Thread Pools
Meituan Technology Team
Meituan Technology Team
Sep 14, 2017 · Backend Development

Java Concurrency Q&A: Akka, Locks, ThreadPoolExecutor, and More

The article answers twelve Java concurrency questions, covering Meituan’s simple Akka use, when to prefer ReentrantLock or synchronized, queue rejection policies, Java 8 ConcurrentHashMap internals, ThreadPoolExecutor workflow, read‑write locks and Conditions, interview preparation, beginner resources, volatile ordering nuances, and notes on unclear flash‑sale overselling safeguards.

AkkaLocksThreadPoolExecutor
0 likes · 10 min read
Java Concurrency Q&A: Akka, Locks, ThreadPoolExecutor, and More
Qunar Tech Salon
Qunar Tech Salon
Jun 14, 2017 · Fundamentals

In‑Depth Analysis of Java ThreadPoolExecutor and Thread‑Pool Mechanisms

This article revisits Java thread pools, explains the concept of pooling, details the structure and parameters of ThreadPoolExecutor, describes its execution flow, rejection policies, hook methods, lifecycle states, and offers guidance on sizing and extending thread pools for real‑world applications.

ThreadPoolExecutorjavathread pool
0 likes · 8 min read
In‑Depth Analysis of Java ThreadPoolExecutor and Thread‑Pool Mechanisms
Architect
Architect
Jun 14, 2016 · Backend Development

Custom Rejection Policies and Blocking Strategies for Java ThreadPoolExecutor

The article explains how to design a producer‑consumer model using Java's BlockingQueue, customize ThreadPoolExecutor's rejection policies—especially replacing the default AbortPolicy with a blocking strategy via a custom RejectedExecutionHandler—to safely handle full queues and improve concurrency control.

BlockingQueueProducer ConsumerRejectedExecutionHandler
0 likes · 5 min read
Custom Rejection Policies and Blocking Strategies for Java ThreadPoolExecutor
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.

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