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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


