Tag

JavaConcurrency

0 views collected around this technical thread.

Top Architect
Top Architect
Nov 18, 2024 · Backend Development

Understanding ForkJoinPool and the Fork/Join Framework in Java

This article explains the Fork/Join model, its divide‑and‑conquer basis, how ForkJoinPool is implemented in Java, demonstrates custom RecursiveTask code for summing ranges, discusses task submission, work‑stealing, common pool pitfalls, performance testing, and best‑practice recommendations.

DivideAndConquerForkJoinPoolJavaConcurrency
0 likes · 28 min read
Understanding ForkJoinPool and the Fork/Join Framework in Java
Cognitive Technology Team
Cognitive Technology Team
Oct 28, 2023 · Backend Development

Understanding ThreadPoolExecutor: Parameters, Lifecycle, Graceful Shutdown, Pitfalls, and Monitoring

This article explains ThreadPoolExecutor's configuration parameters, creation and execution flow, state management, graceful shutdown techniques, common pitfalls such as OOM and ThreadLocal issues, and provides monitoring alerts and sample Java code for robust thread‑pool handling.

DubboGracefulShutdownJavaConcurrency
0 likes · 7 min read
Understanding ThreadPoolExecutor: Parameters, Lifecycle, Graceful Shutdown, Pitfalls, and Monitoring
Cognitive Technology Team
Cognitive Technology Team
Apr 24, 2022 · Backend Development

Thread Pool Misconfiguration Cases and Best Practices for Resilience

The article presents two 2018 incidents where improper Java thread‑pool settings caused service degradation and unavailability, analyzes the root causes such as insufficient core size, unbounded queues, and missing rejection handlers, and offers practical recommendations for dynamic sizing, alerting, degradation strategies, isolation, and auto‑scaling to prevent similar faults.

FaultToleranceJavaConcurrencyThreadPool
0 likes · 3 min read
Thread Pool Misconfiguration Cases and Best Practices for Resilience
Top Architect
Top Architect
Apr 19, 2022 · Backend Development

Understanding Java Thread States and ThreadPoolExecutor

This article explains Java thread lifecycle states, the Thread.State enum, and the design and implementation details of ThreadPoolExecutor—including its constructors, parameters, internal state constants, ctl bit manipulation, and rejection policies—while also providing code examples and usage guidance.

ConcurrencyJavaJavaConcurrency
0 likes · 12 min read
Understanding Java Thread States and ThreadPoolExecutor