Task stack management method and apparatus

A management method and task stack technology, applied in multi-program installation, program startup/switching, etc., can solve the problems of illegal rewriting, affecting system performance, sharing resources or complicated communication mode, so as to improve reliability and avoid stacking. overflow effect

Inactive Publication Date: 2018-01-30
DATANG MOBILE COMM EQUIP CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the physical address space isolation mode, each task runs in its own process space, and all resources are isolated from each other. Although high reliability can be guaranteed, there are also some disadvantages, such as bringing It is very difficult, especially when the process needs to share resources or communicate, this mode is particularly complicated. In addition, the system performance in the physical address space isolation mode will also have a greater impact. The cache memory (cache) and transmission backup brought about by process switching Buffer (Translation Lookaside Buffer, TLB), page table switching will significantly affect system performance
[0004] In the shared physical address space mode, all resources in the system are globally shared, including global variables, heaps, and task stacks, making code development very easy, but the disadvantage is that the reliability of the software is challenged, and stack overflow and illegal rewriting are Difficult problems in large software 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
  • Task stack management method and apparatus
  • Task stack management method and apparatus
  • Task stack management method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. . Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0055] In large software systems, the main purpose of sharing physical address space (or shared physical memory space) is to share global variables, shared memory, and reduce the overhead of task switching. All tasks share the same physical address space. There is no address protection mechanism between tasks, variables can be shared directly between tasks, and the kernel does not need to copy data between different address spa...

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 task stack management method and apparatus. The method comprises the steps of modifying an access permission of a stack address space of a task to be readable and writable when the task is scheduled to enter a processor for running; and when the task is switched out of the processor, modifying the access permission of the stack address space of the task to be read-only. The reliability of a system in a shared physical address space mode can be improved.

Description

Technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for managing a task stack. Background technique [0002] Embedded systems generally use two modes, one is multitasking physical address space isolation, which represents the Linux process model; the other is multitasking shared physical address space, which represents early versions of VxWorks and some simple real-time operating systems (Real Time Operating System, RTOS). [0003] In the physical address space isolation mode, each task runs in its own process space, and all resources are isolated from each other. Although high reliability can be guaranteed, there are also some disadvantages, such as bringing software development Very difficult, especially when there is a need to share resources or communication between processes. This mode is especially complicated. In addition, the system performance in the physical address space isolation mode will also have a g...

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): G06F9/48
Inventor 笪禹
Owner DATANG MOBILE COMM EQUIP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products