Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and system for determining program thread relationship

A technology of relationship determination and order relationship, applied in the information field, can solve problems such as inaccurate debugging of parallel programs, and achieve the effect of improving accuracy

Inactive Publication Date: 2017-04-12
HUAWEI TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, existing techniques can only capture memory access conflicts caused by cache coherency messages, resulting in inaccurate debugging of parallel programs

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
  • Method, device and system for determining program thread relationship
  • Method, device and system for determining program thread relationship
  • Method, device and system for determining program thread relationship

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0059] figure 2 It is a flow chart of Embodiment 2 of the method for determining the thread relationship of the program of the present invention, as shown in figure 2 shown in figure 1 On the basis of the illustrated embodiment, this embodiment provides a feasible implementation manner of detecting the migration of the first thread in the target parallel program executed by the first processor in the system to the second processor, specifically including:

[0060] S111. Detect that the first thread is suspended;

[0061] Specifically, the register related to thread scheduling can determine whether the first thread in the program being executed is suspended. For example, the software thread number register provided by the current commercial processor can determine whether the software thread is suspended.

[0062] S112. Record the processor identifier of the first processor;

[0063]When the thread is suspended, the runtime management software clears the information of the...

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 method, device and system for determining the thread relation of a program. The method comprises the steps that transference of a first thread in the system from a first processor to a second processor is detected, the first thread is one thread in an object parallel program executed by the first processor, and the first thread is used as a second thread after being transferred to the second processor; the order relation between the first thread and the second thread is determined. Accordingly, determination to the fact that the same software thread is transferred in different processors due to dispatching of an operation system is achieved, thus, the order relation before and after transference of the thread can be determined, and the accuracy of debugging of the parallel program is improved.

Description

technical field [0001] The present invention relates to the field of information technology, in particular to a method, device and system for determining program thread relationship. Background technique [0002] With the development of science and technology, on-chip multi-processors have gradually become the mainstream of processor design, and the use of parallel programming is also increasing. However, in addition to the high efficiency brought by parallel programming, there are also problems that are difficult to debug. The main reasons are: the debugging work depends on the repeated execution of the program, but the parallel program has natural uncertainty (I / O, interrupt, DMA and Access to memory conflicts), resulting in inconsistent behavior of multiple executions of parallel programs, and errors in the program cannot be reproduced. This uncertainty in concurrent systems complicates the debugging of parallel programs. In order to solve the problem that parallel prog...

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/38
Inventor 唐士斌宋风龙王达范东睿
Owner HUAWEI TECH CO LTD