Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multi-thread program implementation method and device and related equipment

An implementation method and multi-threading technology, applied in the direction of multi-programming device, program code conversion, climate sustainability, etc., can solve the problems of low efficiency of multi-threaded programs, and achieve the effect of improving efficiency

Pending Publication Date: 2022-07-08
CHINA MOBILE COMM LTD RES INST +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a multi-threaded program implementation method, device and related equipment to solve the problem of low efficiency of multi-threaded programs acquired on the basis of single-threaded development

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
  • Multi-thread program implementation method and device and related equipment
  • Multi-thread program implementation method and device and related equipment
  • Multi-thread program implementation method and device and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0027] The terms "first", "second" and the like in the embodiments of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily...

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 provides a multi-thread program implementation method and device and related equipment, and is applied to the technical field of software development. The method comprises the steps that according to an abstract syntax tree of a target function, a calling dependency graph is obtained, and the calling dependency graph comprises the dependency relation between statements of the target function; splitting the calling dependency graph to obtain a thread pool comprising a plurality of threads; threads with the length smaller than a set value are taken out from the thread pool to be combined, and a combined thread is obtained; and under the condition that the length of the combined thread is greater than or equal to a set value, adding the combined thread to a thread pool. According to the method and the device, the multi-thread program obtaining efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of software development, and in particular, to a method, device and related equipment for implementing a multi-thread program. Background technique [0002] By increasing the CPU frequency as much as possible to improve the computing power of the computer system, the computer can therefore have multiple CPU cores and hyperthreading capabilities. For program developers, single-threaded development is a more intuitive and less error-prone way of thinking, which can avoid thread pool management problems, data dependencies, and thread safety problems caused by multi-threading. But single-threaded programs cannot fully utilize the computer's multi-threaded capabilities. [0003] At present, the acquisition of multi-threaded programs on the basis of single-threaded development mainly uses reading and rewriting the entire java file. This method is easy to destroy the intuitiveness of the program, and the readabili...

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 Applications(China)
IPC IPC(8): G06F8/41G06F9/46
CPCG06F8/42G06F9/466Y02D10/00
Inventor 徐延成
Owner CHINA MOBILE COMM LTD RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products