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

Allocation method for internal memory pool in embedded type operation system

A technology of an operating system and an allocation method, applied in the field of embedded real-time operating systems, can solve problems such as memory waste, and achieve the effects of solving memory waste, alleviating memory resource waste, and reducing memory resource waste.

Active Publication Date: 2009-07-22
ZTE CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The technical problem to be solved by the present invention is to provide a memory pool allocation method of an embedded operating system to solve the problem of memory waste in the prior art

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
  • Allocation method for internal memory pool in embedded type operation system
  • Allocation method for internal memory pool in embedded type operation system
  • Allocation method for internal memory pool in embedded type operation system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0036] The present invention provides a new method for implementing memory pool management of embedded software. This method can not only make full use of the current advantages of general memory pools such as high efficiency, reliability, and no memory fragmentation, but can also effectively reduce, alleviate, and even Solve the memory waste that may exist in the general memory pool, so that it can better meet the requirements of embedded software development for memory allocation.

[0037] The memory pool management method of the embedded operating system of the present invention comprises the following steps:

[0038] Step 1: Configure the size and quantity of various memory blocks that the user may use, and then allocate a memory pool in the memory resources of the embedded software according to the sum of the size of the memory block used by the user and the siz...

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 method for allocating a memory pool of an embedded operating system, comprising: step 1, according to the size and quantity of various memory blocks that may be used by the user and the size of the corresponding memory header, allocate a A memory pool formed by the memory blocks and memory headers; Step 2, initializing the memory pools to determine the starting addresses of memory blocks of various sizes; Step 3, for memory applications, if the memory application meets the minimum If there is waste exceeding the threshold in a single memory block, the memory application is satisfied by combining multiple memory blocks of different sizes; step 4, after the application of the memory application is completed, the memory block of the memory application is released. The present invention can greatly reduce and alleviate the problem of waste of memory resources in the management of the general memory pool, and at the same time, maintain the efficiency and reliability of the management of the general memory pool.

Description

technical field [0001] The invention relates to the field of embedded real-time operating systems, in particular to an implementation method for managing memory with an uncertain size requested by an application by using a memory pool allocated in advance in the embedded system. Background technique [0002] With the wide application of embedded real-time systems in various fields, the development of embedded software has also received more and more attention. On the premise of meeting the real-time requirements of the system, how to improve the speed, reliability and efficiency of memory allocation is a subject that needs to be studied in the embedded software system. The rapidity of memory allocation starts from the real-time requirements of the embedded system, and requires the memory to be as fast as possible during the allocation process. Therefore, in the embedded system, it is impossible to adopt the complex and cumbersome memory allocation strategy in the general ope...

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/50
Inventor 王泽民徐立峰曹刚
Owner ZTE CORP
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