A multi-threaded data processing method, apparatus, device, and storage medium

By using a multi-threaded data processing method managed by the main thread, the lock contention problem in traditional multi-threaded data processing is optimized by utilizing execution queues and waiting queues, thereby improving program performance and computing resource utilization, and supporting flexible process switching and multi-scenario applications.

CN116225663BActive Publication Date: 2026-11-10PCI TECH GRP CO LTD +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310417873.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2026-11-10
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

Traditional multithreaded data processing methods result in poor program performance, lock contention between threads leads to blockage of flow control logic, low utilization of computing resources, and difficulty in achieving flexible flow switching.

Method used

The main thread manages multi-threaded data processing. Process threads and task objects are generated through preset process configuration. The execution queue and waiting queue are used to manage task objects, avoiding lock contention and achieving lock-free synchronization and flexible process switching.

Benefits of technology

The program performance has been optimized, the utilization of computing resources has been improved, the flexibility and efficiency of multi-threaded data processing have been achieved, and dynamic switching between various application scenarios has been supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116225663B_ABST
    Figure CN116225663B_ABST
Patent Text Reader

Abstract

This application discloses a multi-threaded data processing method, apparatus, device, and storage medium. The technical solution provided by this application determines a target scene type based on a user-input scene selection signal; generates a corresponding target process based on the target scene type and a preset process configuration, the target process including a main thread; the main thread generates corresponding process threads and corresponding task objects according to the preset process configuration; the main thread places the task objects into the corresponding process threads for execution in a preset order; when all process threads have completed execution, the target process is completed. This solution addresses the problem of poor program performance in multi-threaded data processing, optimizes program performance, and improves the utilization of computing resources.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Workflow operation method and system

    CN102043625A

  • Task processing method and device and electronic equipment

    CN113535368A

  • Multi-thread parallel processing method and device and storage medium

    CN114416364A

  • Business scene configuration method and device, computer equipment and storage medium

    CN115775138A