Check patentability & draft patents in minutes with Patsnap Eureka AI!

Data processing method and system based on multi-thread memory allocation and context scheduling

A data processing system and memory allocation technology, which is applied in the direction of electrical digital data processing, resource allocation, multi-program device, etc., can solve the problems of running speed, resource occupation not up to C/C++ level, unusable, etc., to achieve no Mental burden, less dependence, high performance effect

Active Publication Date: 2021-04-06
中孚安全技术有限公司 +3
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The emergence of the programming language Golang has solved the mental burden brought by parallel programming from the perspective of programming language, but its running speed and resource occupation are far below the level of C / C++, and it cannot be used under the chip platform of Loongson mips and Shenwei sw_64

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and system based on multi-thread memory allocation and context scheduling
  • Data processing method and system based on multi-thread memory allocation and context scheduling
  • Data processing method and system based on multi-thread memory allocation and context scheduling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033]This embodiment provides a data processing method based on multi-threaded memory allocation and context scheduling;

[0034]Data processing method based on multi-threaded memory allocation and context scheduling, including:

[0035]S101: The service code to be processed is made by abstract packaging, and packaged into a corresponding sweeper;

[0036]S102: Scheduling the scheduling of the sweeper based on the type of the equation task:

[0037]If the equilation task is a single fightrout task or a multiple unrelated sweepstakes, the user-state implemented task scheduling algorithm is parallel to execute; wherein in parallel execution, the memory dynamic allocation strategy under multi-thread is used. Allocate memory;

[0038]If the equilation task is a plurality of associated sweep, according to the Happen Before, you will be delivered to multi-producer multi-consumer queue, through multi-producers, multi-consumer queue completion of the sweeping, And multithreaded parallel processing accord...

Embodiment 2

[0080]This embodiment provides a data processing system based on multi-threaded memory allocation and context dispatch;

[0081]Data processing system based on multi-threaded memory allocation and context scheduling, including:

[0082]Packaging module, which is configured to: treat the business code to be processed to do abstract packaging, packaging into a corresponding sweeper;

[0083]Scheduling processing module configured to: Scheduling the sweeper based on the type of the sweepstakes: If the sweeper is a single equilateral task or multiple unrelated sweeping, based on user-state implementation The task scheduling algorithm is in parallel; in the process of parallel execution, the memory dynamic allocation policy is assigned by the multi-threaded memory dynamic allocation policy; if the sweeper task is a plurality of associated swerants, according to the Happen Before rule, single Supreme or multiple times, you will be delivered to multi-production multi-consumer queues, through multi-...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data processing method and system based on multi-thread memory allocation and context scheduling. The data processing method comprises the steps: carrying out the abstract packaging of to-be-processed business codes, and packaging the business codes into corresponding coroutine tasks; according to the type of the coroutine task, scheduling the coroutine task: if the coroutine task is a single coroutine task or a plurality of unrelated coroutine tasks, executing a task scheduling algorithm implemented based on a user state in parallel; wherein in the parallel execution process, allocating the memory by using a memory dynamic allocation strategy under multiple threads, and if the coroutine tasks are a plurality of associated coroutine tasks, delivering the coroutine tasks to a multi-producer multi-consumer queue one or more times according to a Happen before rule, then processing the coroutine tasks through the multi-producer multi-consumer queue, and carrying out multi-thread parallel processing according to the scheduling situation; and finally, visualizing a processing result of the coroutine task in a data form.

Description

Technical field[0001]The present application relates to multi-threaded task processing technology, and in particular, data processing methods and systems relating to multi-threaded memory allocation and context scheduling.Background technique[0002]The statement of this section is merely referred to the background technology related to the present application, and it is not necessarily constituting the prior art.[0003]As we all know, using programming language C / C ++ developed procedures, you can have faster running speeds, lower hardware resources. In order to pursue the extreme operational speed, parallel programming under multi-thread is widely used by C / C ++ programmers. At the same time, at the extreme running speed, in order to pursue logic consistency, parallel programming brings a serious mental burden. It can be said that there is a lot of consideration, it will bring serious mistakes.[0004]The appearance of the programming language Golang has resolved the mind burden on...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/50G06F9/54
CPCG06F9/5016G06F9/5038G06F9/546
Inventor 王金国苗功勋崔新安宋树达
Owner 中孚安全技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More