A multi-threaded program architecture method and architecture system

A multi-thread and program technology, applied in the field of multi-thread programs, can solve the problems of lack of cross-thread data transfer and communication mechanism, accelerate task execution speed, etc., to facilitate code management and parallel development, and enhance code decoupling and modularization Effect

Active Publication Date: 2021-07-30
南昌嘉研科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The effectiveness of such multi-threaded applications can only be used to accelerate the execution speed of certain specific tasks, but cannot adopt multi-threaded methods for software architecture from the overall design level.
At present, there is no software design method that can implement multi-threaded programs at the software architecture level, and there is even a lack of standardized cross-thread data transfer and communication mechanisms

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
  • A multi-threaded program architecture method and architecture system
  • A multi-threaded program architecture method and architecture system
  • A multi-threaded program architecture method and architecture system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] An exemplary embodiment of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be restricted herein. Instead, it is provided to provide more thoroughly understood the present disclosure, and can communicate the scope of the disclosure to those skilled in the art.

[0066] Those skilled in the art will appreciate that unless specifically declared, the singular forms, "one", "" ",", ", and" "", can include plural form. It should be further understood that the phrase "comprising" in the specification of the present invention means that there is the features, integers, steps, operations, components, and / or components, but do not exclude presence or addition of one or more other features. Integer, steps, operations, components, components, an...

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 present invention relates to a multi-threaded program architecture method and architecture system. The method includes: decomposing a data processing task into a plurality of subtasks; The code and the message mapping table are placed in the interface of the work class to generate an instantiated object of the work class; write the Root class that inherits the Node class, and load each work class as a child node of the Root class in the interface of the Root class; according to the topology The tree structure mechanism forms a topological tree structure for the instantiated object of the work class and the Root class, and the topological tree structure is a multi-threaded program; according to the cross-thread message passing and synchronization mechanism, the message class and the message queue class are used to transmit messages in the multi-threaded program; One separate thread per instantiated worker class. The method and system of the present invention can rapidly construct multi-thread programs.

Description

Technical field [0001] The present invention relates to the field of multi-threaded procedures, in particular, to a multi-threaded programming method and a architecture system. Background technique [0002] The parallel calculation is generally referring to the simultaneous implementation of multiple computing tasks in a program, typically used to extremely high performance requirements, such as weather forecast, image recognition, etc. Parallel calculations can make full use of CPU computing resources, so applications are getting wider. [0003] Parallel calculations usually have two implementations: multi-process and multi-threaded. The computing resources used in each computing process in the multi-process program are independent of each other. Inter-process communication needs to use the network or file system, so that the association between the various arithmetic units is not large or the remote multi-machine parallel operation. Wait, such as website servers, etc. Multi-thr...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48G06F9/54
CPCG06F9/485G06F9/4881G06F9/546G06F2209/548
Inventor 林嘉
Owner 南昌嘉研科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products