Tag

producer-consumer

0 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Mar 9, 2025 · Backend Development

Understanding wait() and notify() in Java Multithreading

This article explains the concepts, usage conditions, execution flow, internal mechanisms, and best‑practice guidelines for Java's wait() and notify() methods, illustrated with a producer‑consumer example and code snippets for safe thread coordination.

ConcurrencyJavaMultithreading
0 likes · 6 min read
Understanding wait() and notify() in Java Multithreading
vivo Internet Technology
vivo Internet Technology
Aug 14, 2024 · Backend Development

Understanding Disruptor: High‑Performance In‑Memory Queue, Core Concepts, Demo, and Source Code Analysis

The article explains the Disruptor—an intra‑process, lock‑free, array‑based queue that achieves millions of operations per second—by covering its core concepts, demo code, source‑code mechanics, performance optimizations such as pre‑allocation and false‑sharing avoidance, and real‑world Vivo iTheme applications with best‑practice tips.

ConcurrencyDisruptorJava
0 likes · 29 min read
Understanding Disruptor: High‑Performance In‑Memory Queue, Core Concepts, Demo, and Source Code Analysis
Java Architect Essentials
Java Architect Essentials
Apr 1, 2024 · Backend Development

Introducing Disruptor: A High‑Performance In‑Memory Queue with a Complete Java Demo

This article introduces the open‑source Java library Disruptor, explains its core concepts such as RingBuffer, Sequence, and WaitStrategy, and provides a step‑by‑step demo with Maven dependency, event model, factory, handler, and a Spring‑Boot test illustrating high‑throughput producer‑consumer messaging.

Backend DevelopmentConcurrent QueueDisruptor
0 likes · 11 min read
Introducing Disruptor: A High‑Performance In‑Memory Queue with a Complete Java Demo
JD Retail Technology
JD Retail Technology
Nov 1, 2023 · Big Data

Kafka: Usage Scenarios, Core Concepts, Installation, Configuration, and Practical Operations

This article provides a comprehensive guide to Apache Kafka, covering its typical use cases, fundamental terminology, step‑by‑step installation and environment preparation, detailed configuration of brokers and topics, cluster deployment, producer‑consumer commands, and a Java client example for sending messages.

Big DataDistributed MessagingInstallation
0 likes · 21 min read
Kafka: Usage Scenarios, Core Concepts, Installation, Configuration, and Practical Operations
Selected Java Interview Questions
Selected Java Interview Questions
Aug 8, 2023 · Big Data

Processing 10GB Age Data on a 4GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Solutions

This article demonstrates how to generate, read, and analyze a 10 GB file of age statistics on a 4 GB RAM, 2‑core machine using Java, comparing a single‑threaded counting method with a producer‑consumer multi‑threaded approach that dramatically improves CPU utilization and reduces processing time.

Big DataJavaMemory Management
0 likes · 11 min read
Processing 10GB Age Data on a 4GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Solutions
360 Quality & Efficiency
360 Quality & Efficiency
Apr 7, 2023 · Backend Development

RabbitMQ Introduction: Installation, Basic and Advanced Producer/Consumer Patterns, Exchanges, and Common Issues

This guide introduces RabbitMQ, explains how to install it with Docker, covers basic and advanced producer/consumer usage including acknowledgments, durability, QoS, bindings, and exchange types, and discusses a typical Python reconnection problem, providing a practical overview for backend developers.

DockerMessage QueuePython
0 likes · 5 min read
RabbitMQ Introduction: Installation, Basic and Advanced Producer/Consumer Patterns, Exchanges, and Common Issues
vivo Internet Technology
vivo Internet Technology
Mar 22, 2023 · Mobile Development

DropBoxManagerService Source Code Analysis and Client Log File Management Design

The article examines Android's DropBoxManagerService architecture, its configurable file retention policies, naming conventions, atomic operations, and broadcast mechanisms, then applies these patterns to propose a client‑side log management system using a producer‑consumer model with prioritized temporary storage, rename‑based reporting, and FileObserver‑driven collection respecting network, data, timing, priority, and battery constraints.

AndroidDropBoxManagerServiceFile System
0 likes · 14 min read
DropBoxManagerService Source Code Analysis and Client Log File Management Design
Laravel Tech Community
Laravel Tech Community
Aug 22, 2022 · Backend Development

Implementing a Producer‑Consumer Model with RabbitMQ in PHP

This tutorial explains the producer‑consumer principle using RabbitMQ, provides a reusable PHP base class for queue connections, and demonstrates how to create service and client classes to send and receive messages, followed by step‑by‑step instructions to run the code and view the queue.

Backend DevelopmentMessage QueuePHP
0 likes · 3 min read
Implementing a Producer‑Consumer Model with RabbitMQ in PHP
Architect
Architect
May 24, 2022 · Big Data

Processing 10 GB Age Data on a 4 GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Approaches

The article presents a complete Java solution for generating, reading, and analyzing a 10 GB file of age values (18‑70) on a 4 GB RAM, 2‑core PC, comparing single‑threaded counting with a producer‑consumer multithreaded design that dramatically improves CPU utilization and reduces total processing time.

Big DataJavaMultithreading
0 likes · 20 min read
Processing 10 GB Age Data on a 4 GB Memory Machine Using Java: Single‑Threaded and Multi‑Threaded Approaches
Sohu Tech Products
Sohu Tech Products
Apr 27, 2022 · Backend Development

Design Patterns Used in the Austin Project: Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy

This article explains how the Austin Java backend project applies several classic design patterns—including Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy—detailing their benefits, drawbacks, and specific code locations for each pattern.

BuilderChain of ResponsibilityJava
0 likes · 6 min read
Design Patterns Used in the Austin Project: Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy
Top Architect
Top Architect
Apr 20, 2022 · Backend Development

Understanding Disruptor: Core Concepts, Architecture, and Java Implementation Demo

This article introduces the high‑performance Disruptor library, explains its background, core concepts such as RingBuffer, Sequence, Sequencer, and WaitStrategy, and provides a complete Spring Boot‑based Java demo with code snippets illustrating producers, consumers, and configuration.

ConcurrencyDisruptorJava
0 likes · 12 min read
Understanding Disruptor: Core Concepts, Architecture, and Java Implementation Demo
Java Architect Essentials
Java Architect Essentials
Jul 16, 2021 · Backend Development

RabbitMQ Basics: Concepts, Working Modes, and Java Code Samples

This article introduces RabbitMQ's core concepts, compares AMQP with JMS, outlines its key features, and demonstrates four working patterns—work queue, routing, publish/subscribe, and wildcard—through detailed Java producer and consumer code examples.

AMQPJavaMessage Queue
0 likes · 7 min read
RabbitMQ Basics: Concepts, Working Modes, and Java Code Samples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 1, 2020 · Fundamentals

Producer-Consumer Problem and wait()/notify() in Java

This article explains the classic producer‑consumer concurrency model, its advantages of decoupling, asynchrony and speed balancing, and demonstrates how Java’s wait(), notify() and notifyAll() mechanisms are used to coordinate producer and consumer threads with sample code implementations.

ConcurrencyJavaMultithreading
0 likes · 9 min read
Producer-Consumer Problem and wait()/notify() in Java
Python Programming Learning Circle
Python Programming Learning Circle
May 8, 2020 · Fundamentals

Introduction to the Producer‑Consumer Model with Queue and JoinableQueue in Python

This article explains the producer‑consumer pattern, why it is needed, and demonstrates two Python implementations using a standard Queue and a JoinableQueue, including full code samples, execution results, and discussion of graceful termination for multiple consumers.

ConcurrencyJoinableQueuemultiprocessing
0 likes · 8 min read
Introduction to the Producer‑Consumer Model with Queue and JoinableQueue in Python
Big Data Technology Architecture
Big Data Technology Architecture
Feb 17, 2020 · Big Data

Evolution of Apache Kafka Versions and Their Key Features

This article reviews the historical evolution of Apache Kafka versions, explains the versioning scheme, highlights major features introduced in each release from 0.7.x to 2.x, and provides practical recommendations for selecting an appropriate Kafka version.

Distributed MessagingKafkaVersioning
0 likes · 9 min read
Evolution of Apache Kafka Versions and Their Key Features
Java Captain
Java Captain
Jun 16, 2019 · Fundamentals

Thread Coordination in Java: Analogies, Scenarios, and Classic Concurrency Patterns

This article uses everyday analogies to explain thread coordination, then demonstrates practical Java examples for stopping threads with flags, pausing/resuming, joining, barrier synchronization, exchanging tools, and phaser control, and finally ties them together with the classic producer‑consumer problem using locks and conditions.

ConcurrencyJavaMultithreading
0 likes · 21 min read
Thread Coordination in Java: Analogies, Scenarios, and Classic Concurrency Patterns
Tencent Music Tech Team
Tencent Music Tech Team
Apr 12, 2019 · Mobile Development

Understanding Android BufferQueue: Architecture and Internal Operations

Android’s BufferQueue, the core producer‑consumer mechanism behind the display pipeline, manages GraphicBuffer slots through explicit FREE‑DEQUEUED‑QUEUED‑ACQUIRED transitions, using shared memory and Binder to let producers (e.g., Views, MediaCodec) enqueue frames and consumers (e.g., SurfaceFlinger) acquire and release them efficiently.

AndroidBufferQueueSurfaceFlinger
0 likes · 16 min read
Understanding Android BufferQueue: Architecture and Internal Operations
Java Captain
Java Captain
Dec 7, 2016 · Fundamentals

Java Producer‑Consumer Example with Multiple Threads and Synchronization Improvements

This article explains the classic producer‑consumer problem in Java, demonstrates initial implementations using wait/notify with a single producer and consumer, analyzes issues that arise with multiple threads, and presents step‑by‑step code refinements—including while‑loops and notifyAll—to achieve correct multithreaded synchronization.

ConcurrencyJavaMultithreading
0 likes · 9 min read
Java Producer‑Consumer Example with Multiple Threads and Synchronization Improvements