FunTester
FunTester
Dec 19, 2024 · Backend Development

Mastering Custom Thread Pools: Choosing the Right Queue in Java

This article walks through Java thread‑pool queue options—LinkedBlockingQueue, SynchronousQueue, LinkedBlockingDeque, and PriorityBlockingQueue—explaining their characteristics, demonstrating code examples, and showing how to build multi‑priority executors with concrete output analysis.

BlockingQueueJavaLinkedBlockingDeque
0 likes · 12 min read
Mastering Custom Thread Pools: Choosing the Right Queue in Java
FunTester
FunTester
Feb 14, 2020 · Backend Development

How Pre‑Signing Parameters and a Thread‑Safe Queue Slash API Test Latency

The article explains why API‑testing threads sometimes pause for milliseconds during parameter signing, proposes pre‑signing all data and using a LinkedBlockingDeque to store signed maps, and provides a complete Java implementation that dramatically reduces per‑request overhead.

API testingJava concurrencyLinkedBlockingDeque
0 likes · 8 min read
How Pre‑Signing Parameters and a Thread‑Safe Queue Slash API Test Latency
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 16, 2019 · Fundamentals

Understanding LinkedBlockingDeque: Structure, Core Operations, and Example Usage

This article explains the design and implementation of Java's LinkedBlockingDeque, covering its internal doubly‑linked list structure, key fields, constructors, core methods for adding, removing, and traversing elements, and provides a multithreaded example that demonstrates its thread‑safety compared to non‑concurrent collections.

ConcurrentQueueDataStructureJava
0 likes · 15 min read
Understanding LinkedBlockingDeque: Structure, Core Operations, and Example Usage