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

Tasks stack overflow detection method, device and computer system thereof

An overflow detection and task stack technology, applied in the field of stack processing, can solve the problems of wasting system resources and failing to detect task stack overflow, and achieve the effect of saving system resources and improving stability

Inactive Publication Date: 2008-05-21
SHANGHAI HUAWEI TECH CO LTD
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] As can be seen from the above, although the existing task stack overflow detection method can detect the overflow of the task stack, it needs to start an additional timing detection task or timing detection interruption, which wastes system resources; Interrupts are detected, and task stack overflow cannot be detected in real time

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
  • Tasks stack overflow detection method, device and computer system thereof
  • Tasks stack overflow detection method, device and computer system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to make the object, technical solution, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0018] Fig. 2 has described the process flow of embodiment 1 of the task stack overflow detection method provided by the present invention, including:

[0019] Step 201, setting a detection space at the top of the task stack.

[0020] Specifically, some more space can be allocated as the detection space when the task stack is allocated, or part of the space can be selected from the top of the task stack as the detection space after the task stack is allocated; wherein, the size of the detection space depends on the specific use environment, Different central processing unit (CPU: Central Process Unit) types and the like will be different, so the size of the detection space needs to be set according to specific needs.

[0021] Step 202, setting the dat...

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 discloses a stack overflow detection method, a device and a computer system for tasks stack overflow , belonging to a stack processing technology, which is characterized in that: the detection method for the stack overflow of the tasks comprises steps as follows: detection space is arranged at the top of the task stack; data in the detection space is provided with read-only attribute; by detecting whether task exists and tries to modify the data with read-only attribute, the task stack overflows are judged. Adopting the technical proposal, the invention has the advantages of no need for extra timing detection or timing interruption for detection stack overflow of the tasks, and saving limited system resources.

Description

technical field [0001] The invention relates to a stack processing technology, in particular to a task stack overflow detection method, device and computer system. Background technique [0002] In the modern embedded real-time operating system, there are more and more tasks, more and more functions, and the system is more and more complex. In a multitasking real-time operating system, generally each task (or process) has its own independent stack, and the distribution of task stacks in a typical real-time multitasking operating system is a linked list structure connected end to end. Important information such as the first address of the task, the status register, and the field data related to the task are stored in the task stack. During the running of the system, when the on-site data of the task is getting larger and larger, for example, when there are too large local variables or array out-of-bounds access, the top of the stack may be crossed, and the phenomenon of task ...

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): G06F11/36G06F9/46
Inventor 崔爱国
Owner SHANGHAI HUAWEI TECH CO LTD
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