Architect Chen
Architect Chen
Feb 24, 2024 · Backend Development

Understanding Java Queues: Types, Blocking vs Non‑Blocking, and Practical Examples

This article explains what a queue is, classifies Java queue implementations—including blocking, non‑blocking, and double‑ended queues—provides detailed descriptions of each type, and offers code snippets and usage scenarios to help developers choose the right queue for their applications.

BlockingQueueConcurrentQueueDataStructure
0 likes · 6 min read
Understanding Java Queues: Types, Blocking vs Non‑Blocking, and Practical Examples
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