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

A parallel program tracking and playback method based on multi-threaded embedded system

An embedded system and program tracking technology, applied in the direction of multi-program device, software testing/debugging, etc., can solve the problem of non-reproducibility of uncertain results, and achieve the effect of small software overhead

Active Publication Date: 2017-09-12
KUNMING UNIV OF SCI & TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method for tracking and replaying parallel programs based on multi-threaded embedded systems, which is used to solve the problems of uncertainty and non-reproducibility of results in the running of multi-threaded parallel programs in embedded systems

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 parallel program tracking and playback method based on multi-threaded embedded system
  • A parallel program tracking and playback method based on multi-threaded embedded system
  • A parallel program tracking and playback method based on multi-threaded embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] Embodiment 1: as Figure 1-3 As shown, a parallel program tracking and playback method based on a multi-threaded embedded system, first in the parallel program execution stage, uses the program running path in the embedded system to track the software and hardware framework, records the execution path information of multiple threads, and generates a note this document;

[0038] After all the thread execution path information records in the program are completed, the program debugger checks whether the path information records in the notepad file are complete by viewing the points of interest and record information in the program source code;

[0039] If the path information record is complete, enter the parallel program playback stage, use the program path playback software and hardware framework in the embedded system to ensure that the parallel program is replayed according to the path saved in the notepad file.

Embodiment 2

[0040] Embodiment 2: as Figure 1-3 As shown, a parallel program tracking and playback method based on a multi-threaded embedded system, first in the parallel program execution stage, uses the program running path in the embedded system to track the software and hardware framework, records the execution path information of multiple threads, and generates a note this document;

[0041] After all the thread execution path information records in the program are completed, the program debugger checks whether the path information records in the notepad file are complete by viewing the points of interest and record information in the program source code;

[0042] If the path information record is complete, enter the parallel program playback stage, use the program path playback software and hardware framework in the embedded system to ensure that the parallel program is replayed according to the path saved in the notepad file.

[0043] The specific steps of the parallel program tra...

Embodiment 3

[0062] Embodiment 3: as Figure 1-3 As shown, a parallel program tracking and playback method based on a multi-threaded embedded system, first in the parallel program execution stage, uses the program running path in the embedded system to track the software and hardware framework, records the execution path information of multiple threads, and generates a note this document;

[0063] After all the thread execution path information records in the program are completed, the program debugger checks whether the path information records in the notepad file are complete by viewing the points of interest and record information in the program source code;

[0064] If the path information record is complete, enter the parallel program playback stage, use the program path playback software and hardware framework in the embedded system to ensure that the parallel program is replayed according to the path saved in the notepad file.

[0065] The specific steps of the parallel program tra...

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 relates to a multi-threading embedded system-based parallel program tracking and playback method, which belongs to the technical field of parallel program debugging and detection. The method comprises the steps of recording the information of execution routes of multiple threads in the execution stage of a parallel program, and generating a txt file; examining whether the route information record in the txt file is complete or not by examining focus and record information in a program source code by program debugging personnel after all thread execution route information in the program is recorded; entering a parallel program playback stage if the route information record is complete, playing back a software-hardware framework of the program route in an embedded system, and enabling the parallel program to be replayed according to the route stored in the txt file. The execution route information of multiple thread programs can be recorded and stored by the method. Multiple parallel thread programs can be enabled to be replayed according to the route information stored in the txt file. The tracking and playback of the parallel program execution route in the embedded system can be realized through less software expenditure.

Description

technical field [0001] The invention relates to a parallel program tracking and playback method based on a multi-thread embedded system, belonging to the technical field of parallel program debugging and detection. Background technique [0002] Operations such as scheduling, communication, and synchronous control often occur in parallel programs in embedded systems, and there is randomness. These make the running results of parallel programs uncertain and irreproducible. Multiple threads in the same process share the same resources. Even if the initial conditions of the program are the same, due to the interference of internal and external environmental factors such as embedded system interrupts, operation delays, and noise, the execution of parallel programs in the system is greatly affected and changed. and response time, which directly lead to the reduction of thread scheduling, communication and synchronization operation controllability, resulting in uncertainty in the ...

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/46G06F11/36
Inventor 张晶潘有顺陈沫良张果崔毅严涵沈江炎容会
Owner KUNMING UNIV OF SCI & TECH