Memory allocation method and device
A memory allocation and memory pre-allocation technology, applied in the communication field, can solve problems such as memory not being released, memory pool exhaustion, task application memory failure, etc., to improve utilization and efficiency, enhance competitiveness, and improve performance Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] refer to figure 2 , shows a flow chart of the steps of a memory allocation method provided by the embodiment of the present application, as shown in figure 2 As shown, the memory allocation method may specifically include the following steps:
[0060] Step 101: When the number of memory applications for the target task within a specified time period from the current time reaches a set number threshold, obtain the release time of the target task to release the memory after being invoked the closest to the current time.
[0061] The embodiment of the present application can be applied to a scenario in which a specified memory block is pre-allocated for a target task.
[0062] The specified duration refers to the duration threshold that is preset by business personnel from the current time to the preset duration. The specified duration can be 500ms, 600ms, etc. Specifically, it can be determined according to business requirements, and this embodiment does not impose li...
Embodiment 2
[0082] refer to image 3 , shows a flow chart of steps of another memory allocation method provided by the embodiment of the present application, as shown in image 3 As shown, the memory allocation method may specifically include the following steps:
[0083] Step 201: When the number of memory applications for the target task within a specified time period from the current time reaches a set number threshold, obtain the release time of the target task to release the memory after being called the closest to the current time.
[0084] The embodiment of the present application can be applied to a scenario in which a specified memory block is pre-allocated for a target task.
[0085] The specified duration refers to the duration threshold that is preset by business personnel from the current time to the preset duration. The specified duration can be 500ms, 600ms, etc. Specifically, it can be determined according to business requirements, and this embodiment does not impose lim...
Embodiment 3
[0126] refer to Figure 4 , shows a schematic structural diagram of a memory allocation device provided by an embodiment of the present application, as shown in Figure 4 As shown, the memory allocation device may specifically include the following modules:
[0127] The release time acquisition module 310 is used to obtain the latest call of the target task from the current time and then release the memory when the number of memory applications for the target task within a specified time period from the current time reaches the set number threshold release time;
[0128] The target memory block determination module 320 is configured to determine the target memory block according to the application memory carried by the target task in the number of memory application times when the time length between the release time and the current time is less than or equal to the preset time length. The target memory block corresponding to the task;
[0129] The target memory block alloc...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com