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

Method of internal storage releasing in embedded type real time operation system

A real-time operating system and memory release technology, which is applied in the computer field, can solve problems such as release failure, HEAD memory out of bounds, and excessive time, so as to improve efficiency and reduce the risk of release errors

Inactive Publication Date: 2006-11-29
乔爽
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] In the HEAD release method in the prior art, the memory block to be released must be released correctly through the HEAD of the memory block, and HEAD is often destroyed due to memory out-of-bounds, so when HEAD is destroyed, release failure will occur Happening
When using the dichotomy method to release memory, it will take a lot of time due to the search and comparison operation, which will have a certain impact on the efficiency of the release during actual release.

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 of internal storage releasing in embedded type real time operation system
  • Method of internal storage releasing in embedded type real time operation system
  • Method of internal storage releasing in embedded type real time operation system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] image 3 It shows that a large memory area is pre-applied to the operating system and a memory pool (pool) with a size of 64 (8 blocks), 128 (4 blocks), 256 (2 blocks), and 512 (1 block) memory blocks is set.

[0030] Figure 4 It is the flow chart of the initial setting of the system memory in the present invention. First draw a memory area, set the size as X, and then set as image 3 The memory pool shown.

[0031] Figure 5 It is the flow chart of releasing the memory block of the present invention. It has been described in detail in the content of the invention and will not be repeated here.

[0032] Describe with an embodiment below:

[0033] Let a be the location of the memory block to be released in the memory pool (a value of 0 means it is in the first memory pool, a value of a 1 means it is in the second memory pool, and so on).

[0034] 1.1 Delineate a memory area in the system in advance, set the size to 2048;

[0035] 1.2 Set the allocated memory are...

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 an internal memory releasing method for embedded real-time operating systems, portioning off a block of internal memory region in a system in advance; setting the region into K kinds of 2km memory pools; at the time of system initialization, establishing an index; when the programs need memory blocks, first search idle memory blocks in a description array: if there are idle memory blocks, allocating them to these programs in sequence; otherwise applying for memory blocks in the memory region in sequence; at the time of releasing memory, first obtaining the subscript of the index, and determine which memory pool the released memory block belongs to by the index; then further obtaining the position of the released memory block in a memory pool, and finally releasing the memory block. It can heighten the system efficiency and reduce the hazard of release error.

Description

technical field [0001] The invention relates to the field of computers, in particular to memory release in an embedded real-time multitasking operating system in the field of computers. Background technique [0002] Embedded real-time operating system generally consists of several parts such as task scheduling management, time management, task synchronization and communication, and memory management. Because real-time operating systems are very dependent on memory, memory management is very important as the core of the operating system. [0003] The commonly used fixed-size memory release methods are the HEAD (memory head) release method and the dichotomy method. The specific methods are as follows: [0004] Apply for a large memory area to the operating system in advance, and divide the memory area into several memory pools. The size of memory blocks in each memory pool is fixed, and the number of memory blocks of various sizes can be configured as required. [0005] Acco...

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): G06F12/02G06F9/50
Inventor 鲁旭缪敬张芝萍王陈芦东昕
Owner 乔爽
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