Tag

ThreadFactory

1 views collected around this technical thread.

FunTester
FunTester
Dec 20, 2024 · Backend Development

Understanding Java ThreadFactory, Rejection Policies, and Dynamic Thread Pool Management

This article explains Java's ThreadFactory interface, demonstrates how to customize thread names, explores the four built‑in rejection policies of ThreadPoolExecutor with code examples, and shows techniques for dynamic adjustment of core and maximum pool sizes, including custom policies and blocking queue task submission.

DynamicThreadPoolJavaRejectionPolicy
0 likes · 19 min read
Understanding Java ThreadFactory, Rejection Policies, and Dynamic Thread Pool Management
IT Architects Alliance
IT Architects Alliance
Jul 21, 2022 · Backend Development

Understanding ThreadPoolExecutor: Parameters, Work Mechanism, and Custom ThreadFactory

This article explains the core concepts of Java's ThreadPoolExecutor, detailing its configurable parameters, how tasks are processed through core threads, work queues, and temporary threads, and demonstrates custom ThreadFactory implementations with concrete code examples.

ExecutorServiceJavaThreadFactory
0 likes · 7 min read
Understanding ThreadPoolExecutor: Parameters, Work Mechanism, and Custom ThreadFactory