Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for memory allocation

A memory allocation and memory technology, applied in the computer field, can solve the problems of low memory allocation efficiency, management, and low memory usage, and achieve the effect of improving memory allocation efficiency and memory usage.

Active Publication Date: 2019-05-31
SHENZHEN TENCENT COMP SYST CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] When the memory in the operating system is in use, it is allocated directly from the operating system, and basically does not manage the memory. Some will perform simple management, but it is limited to serial allocation, that is, only one request can be allocated memory at the same time.
[0003] The memory allocation in the prior art has low memory allocation efficiency, and also reduces the low memory usage rate

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The embodiment of the present invention provides a memory allocation method, which can improve memory allocation efficiency and memory usage rate. The embodiment of the invention also provides a corresponding device. Each will be described in detail below.

[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

[0030] An embodiment of the memory allocation method provided by the embodiment of the present invention includes:

[0031] refer to figure 1 , in the embodiment of the present invention, the first memory block o...

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 present invention discloses a memory allocation method. The method comprises: acquiring a first memory block from total memory, wherein the first memory block comprises a plurality of second memory blocks that are different in size; according to a demand of a service for memory, from the first memory block, determining one second memory block that meets the demand, or from the total memory, acquiring another first memory block that meets the demand; and allocating the second memory block or the another first memory block to the service. According to the memory allocation method provided by the embodiment of the present invention, according to a demand of a service for memory, a suitable second memory block can be applied for from one first memory block of total memory, thereby realizing parallel allocation of memory and improving memory allocation efficiency and a memory usage rate.

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] When the memory in the operating system is in use, it is allocated directly from the operating system, and basically does not manage the memory, and some will perform simple management, but it is limited to serial allocation, that is, only one request can be allocated memory at a time. [0003] In the memory allocation in the prior art, the memory allocation efficiency is low, and the utilization rate of the memory is also reduced. Contents of the invention [0004] The embodiment of the present invention provides a memory allocation method, which can improve memory allocation efficiency and memory usage rate. The embodiment of the invention also provides a corresponding device. [0005] The first aspect of the present invention provides a method for memory allocation, including: [0006] Obtain a first m...

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/02
Inventor 李跃森
Owner SHENZHEN TENCENT COMP SYST CO LTD