Streaming data processing method and device

By using a blocking queue mechanism in streaming data processing, the acquisition and transmission threads are decoupled, and the rate differences are coordinated, thus solving the problems of single-threaded blocking and multi-threaded rate incoordination, and achieving stable transmission and security of streaming data.

CN121418408APending Publication Date: 2026-01-27FAW CAR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511755678.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-26
Publication Date
2026-01-27

AI Technical Summary

Technical Problem

In a single-threaded architecture, data acquisition, processing, and transmission are tightly coupled. If any link is delayed or the network fluctuates, the process will stop, resulting in audio stuttering and data loss. In a multi-threaded architecture, the difference between acquisition and transmission rates is not coordinated, which affects system stability and data integrity.

Method used

A blocking queue mechanism is adopted, in which streaming data is written to and read from the blocking queue through independent acquisition and transmission threads, thereby decoupling the data. The synchronization mechanism of the blocking queue coordinates the difference between acquisition and transmission rates, ensuring orderly data flow and thread safety.

Benefits of technology

This effectively avoids overall process stagnation, reduces the risk of audio stuttering and data loss, improves system stability and data integrity, and ensures thread safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121418408A_ABST
    Figure CN121418408A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of streaming data processing, in particular to a streaming data processing method and device.The method comprises the steps that in response to a transmission request of streaming data, at least one collection thread and at least one transmission thread suitable for the transmission request are started; controlling at least one acquisition thread to write the stream data into a corresponding blocking queue, so as to provide the stream data for at least one transmission thread by utilizing the blocking queue; and controlling the corresponding transmission thread to read the stream data from the blocking queue until the stream data meets a certain stop condition. Therefore, the problems of audio lagging, data loss and even system failure caused by tight coupling of data acquisition, processing and transmission under a single thread, blocking of any link and flow stagnation in related technologies are solved; and if a synchronization mechanism is not used for coordinating the difference between the acquisition rate and the transmission rate in multiple threads, the thread security is difficult to guarantee, the data is easy to be disordered, and the stability and integrity of the system are influenced.
Need to check novelty before this filing date? Find Prior Art