Method and device for distributing memory

A memory allocation and memory block technology, applied in the computer field, can solve problems affecting the security and reliability of the operating system, memory allocation, operating system crashes, etc., to ensure basic management capabilities and diagnostic capabilities, and improve security and reliability Effect

Active Publication Date: 2016-02-03
KYLAND TECH CO LTD
View PDF4 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] There are certain problems with this method. If a task has an abnormal memory application and the memory is exhausted, the operating system cannot allocate memory to other tasks that have memory requirements. That is to say, in this case, all All memory-demanding tasks will be affected, causing the operating system to crash, affecting the security and reliability of the operating system

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 and device for distributing memory
  • Method and device for distributing memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] A memory allocation method provided by an embodiment of the present invention can be applied to a real-time operating system. In the description of the embodiments of the present invention, the real-time operating system is called a system. When a certain task has a memory requirement, it can send...

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 embodiment of the invention discloses a method and device for distributing memory. The method for distributing the memory comprises the following steps that a memory request of a target task is received; the capacity of the distributed memory is determined according to the capacity of requested memory; whether a free memory block meeting the capacity of the distributed memory exists in a first memory pool or not is determined; if yes, the memory block with the capacity of the distributed memory is distributed to the target task in the first memory pool; otherwise, the memory block with the capacity of the distributed memory is distributed to the target task in a preserved second memory pool under the condition that the priority of the target task is higher than a preset priority threshold value. According to the technical scheme, when the memory in the first memory pool is used up, the system can distribute the preserved memory to a critical task with higher priority, the basic management capacity and diagnosis capacity of the system are guaranteed, and the safety and reliability of the system are improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a memory allocation method and device. Background technique [0002] In a real-time operating system, such as the vxWorks operating system, a dynamic memory management mechanism is usually used. The operating system allocates memory to tasks that require memory. After the task is completed, the memory is released for the operating system to continue allocating memory to Other tasks with memory requirements. [0003] In the prior art, memory applications for all tasks are equal, and the operating system maintains a memory resource pool. As long as a memory application is received, a memory block in the memory resource pool that is the same size as the application is allocated to the corresponding task. [0004] There are certain problems with this method. If a task has an abnormal memory application and the memory is exhausted, the operating system cannot allocate memory to oth...

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): G06F12/02
Inventor 汤渊清肖剑朱严峰
Owner KYLAND TECH 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