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

Reconstruction method capable of reducing non-reentrant functions

A function and reentrant technology, which is applied in the field of refactoring to reduce non-reentrant functions, can solve problems such as resource conflicts and low system stability, and achieve the effect of reducing coupling, reducing the risk of resource conflicts, and clear calling relationships

Active Publication Date: 2018-11-30
HUIZHOU DESAY SV AUTOMOTIVE
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Inevitably, there are more or less non-reentrant functions in the system. Since the non-reentrant functions access global resources, when they are called concurrently by multiple tasks, it is easy to cause resource conflicts.
[0003] The greater the number of non-reentrant functions, the greater the risk of resource conflicts and the lower the system stability. Therefore, some methods need to be used to reduce the non-reentrant functions in software modules to reduce the risk of resource conflicts

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
  • Reconstruction method capable of reducing non-reentrant functions
  • Reconstruction method capable of reducing non-reentrant functions
  • Reconstruction method capable of reducing non-reentrant functions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] A reconstruction method to reduce non-reentrant functions. By rebuilding the encapsulation function, the state of some non-reentrant functions is effectively transformed to make them reentrant functions, and at the same time, a new calling relationship is constructed. Greatly reduce the resource occupancy rate of non-reentrant functions. Specifically, the reconstruction method in this embodiment includes steps, please refer to figure 1 :

[0043] S10. Identify non-reentrant functions.

[0044] Specifically, during processing, the external interface of the software module code is analyzed to analyze the implementation functions associated with the external interface, and the calling relationship between the implementation functions is recorded, and all non-reentrant functions are identified.

[0045] Specific, such as figure 2 As shown, this step uses the following sub-steps when identifying non-reentrant functions:

[0046] S11. In the embedded system, various functional modu...

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 reconstruction method capable of reducing non-reentrant functions. The reconstruction method includes following steps: S10, realizing a calling relation among functions through external interface analysis, and recognizing all non-reentrant functions; S20, constructing a function calling relation mapping table, and classifying the non-reentrant functions by taking different global resources as a classifying basis; S30, constructing a packaging function alone for every kind of global resources, and taking the packaging function as a new calling interface for corresponding non-reentrant functions to call. The reconstruction method has the advantages that non-reentrant functions in a software module are reduced effectively, and risk of resource conflict during multitask running is lowered; coupling degree among the functions is further lowered, and code testability is improved; access entrances of the functions to the global resources are more centralized, and programs are easy in monitoring and tracking during running; a function calling relation after reconstruction is clearer.

Description

Technical field [0001] The invention relates to the field of vehicle-mounted broadcast signal modulation and reception, in particular to a reconstruction method for reducing non-reentrant functions. Background technique [0002] At present, most embedded products use a multi-task preemptive system. In this multi-task preemptive software environment, it is particularly important to avoid the conflict of global resource preemption. Inevitably, there are more or less non-reentrant functions in the system. Because non-reentrant functions access global resources, they are likely to cause resource conflicts when they are called concurrently by multiple tasks. [0003] The greater the number of non-reentrant functions, the greater the risk of resource conflicts and the lower the system stability. Therefore, some methods are needed to reduce non-reentrant functions in software modules to reduce the risk of resource conflicts. Summary of the invention [0004] In order to solve the above te...

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/448
CPCG06F9/448
Inventor 方加强胡嘉维方泽文
Owner HUIZHOU DESAY SV AUTOMOTIVE
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