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

Resources-processing method and terminal

A resource processing and terminal technology, applied in the computer field, can solve the problems of waste of resources, space fragments, etc.

Inactive Publication Date: 2018-06-01
CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF20 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing free block linked list management method produces a large number of space fragments after a large number of allocation and recovery operations. These very small space fragments cannot meet the allocation requirements, but the sum of the fragments in the linked list is greater than the space to be allocated , resulting in excessive space debris and waste of resources

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
  • Resources-processing method and terminal
  • Resources-processing method and terminal
  • Resources-processing method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0103] An embodiment of the present invention provides a resource processing method, such as figure 2 As shown, the method may include:

[0104] S101. When transmitting first data, acquire a first space length of the first data.

[0105] A resource processing method provided by an embodiment of the present invention is applicable to a scenario in which idle resources in a memory are allocated.

[0106] In the embodiment of the present invention, when the terminal transmits the first data, the terminal operating system needs to call idle resources in the memory to store the first data, and at this time, the memory obtains the first space length required by the first data.

[0107] In the embodiment of the present invention, the free resource blocks in the memory are stored in the form of a free block linked list, such as image 3 As shown, each free resource block is composed of three parts, namely LEN, Next Addr and Space, wherein LEN represents the length of the available ...

Embodiment 2

[0128] Such as Figure 8 As shown, based on the first embodiment, the embodiment of the present invention also provides a resource recovery method. After step S104, the specific steps include:

[0129] S201. When the transmission of the first data is completed, release the first data, and acquire a storage resource block for which the first data has been released, where the storage resource block includes first address information.

[0130] A resource processing method provided by an embodiment of the present invention is applicable to a scenario where allocated resource blocks are reclaimed to a memory.

[0131] In the embodiment of the present invention, when the terminal completes the transmission of the first data, the terminal will release the storage resource block storing the relevant information of the first data. At this time, the memory acquires the storage resource block and recycles the storage resource block to the specified address of the free resource block lin...

Embodiment 3

[0153] An embodiment of the present invention provides a resource processing method, such as Figure 12 As shown, the method may include:

[0154] S301. When the terminal transmits the first data, the memory acquires a first space length of the first data.

[0155] A resource processing method provided by an embodiment of the present invention is applicable to a scenario in which idle resources in a memory are allocated.

[0156] In the embodiment of the present invention, when the terminal transmits the first data, the terminal operating system needs to call idle resources in the memory to store the first data, and at this time, the memory obtains the first space length required by the first data.

[0157] In the embodiment of the present invention, the free resource blocks in the memory are stored in the form of a free block linked list, such as image 3 As shown, each free resource block is composed of three parts, namely LEN, Next Addr and Space, wherein LEN represents t...

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 resources-processing method and a terminal. The method comprises the following steps: obtaining first space length of first data during transmission of first data; comparing the first space length with pre-set space length; when the first space length is smaller than pre-set space length, traversing free resources block according to pre-set space lengthand determining a first free resources block, wherein the length of a first free resources block is larger than or equal to the length of the pre-set space; and allocating storage resources to the first data with the first free resources block.

Description

technical field [0001] The present invention relates to storage technology in the computer field, in particular to a resource processing method and a terminal. Background technique [0002] Memory is a memory device used to save information such as programs and data in modern information technology. Computers can store information such as input raw data, computer programs, intermediate results of calculations, and final operating results into memory. Therefore, whether the resources of memory Sufficiency determines the speed of computer processing. In recent years, with the rapid development of the network, the computer has carried more and more calculations and data information, and the resources stored in the memory are fixed and very limited, so for When managing memory resources, some special methods can be adopted to improve the operating efficiency of the memory and reduce the waste of storage space. [0003] At present, the operating system of the terminal can manage...

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
IPC IPC(8): G06F12/02
CPCG06F12/0253
Inventor 涂晓强
Owner CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD