Tag

ProducerConsumer

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Sep 7, 2023 · Backend Development

Understanding Blocking Queues in Java: Concepts, Types, and Core Methods

Blocking queues are thread‑safe data structures in Java that support blocking operations, enabling producer‑consumer coordination; this article explains their definition, differences from List/Set and regular queues, various implementations such as ArrayBlockingQueue and LinkedBlockingQueue, core methods like take and put, and bounded versus unbounded capacities.

BlockingQueueDataStructureJava
0 likes · 11 min read
Understanding Blocking Queues in Java: Concepts, Types, and Core Methods
Sohu Tech Products
Sohu Tech Products
Jan 25, 2023 · Backend Development

Introduction to LMAX Disruptor: High‑Performance Java Memory Queue and Its Core Concepts

The article introduces the open‑source LMAX Disruptor, explains why it won the 2011 Duke's Choice Award, compares it with traditional JDK queues, details its core components such as Event, RingBuffer, Producer, and WaitStrategy, and provides a complete Java example that builds a producer‑consumer pipeline using Disruptor.

DisruptorHighPerformanceJava
0 likes · 12 min read
Introduction to LMAX Disruptor: High‑Performance Java Memory Queue and Its Core Concepts