Method and device for adjusting memory
A memory and memory release technology, applied in the field of memory adjustment, can solve problems such as reducing the efficiency of machine memory usage, wasting machine memory resources, and poor user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] In order to improve the memory usage efficiency of the client machine and the user experience, the embodiment of the present invention provides a method for adjusting the memory, see figure 1 , the method includes:
[0057] 101: Obtain the initial occupied memory;
[0058] 102: According to the initial occupied memory, occupy the memory of the client machine;
[0059] 103: Detect the available memory of the current client machine;
[0060] 104: If the detected available memory is less than the available memory threshold of the client machine, release part of the initially occupied memory to the client machine;
[0061] 105: If the detected available memory is greater than or equal to the available memory threshold of the client machine, occupy the remaining available memory in the client machine.
[0062] Among them, if the detected available memory is less than the available memory threshold of the client machine, then release part of the memory initially occupied b...
Embodiment 2
[0077] In order to improve the usage efficiency of the memory of the client machine and the experience of the user, the embodiment of the present invention provides a method for adjusting the memory, by adaptively adjusting the size of the running program through the software program itself, so that the memory of the client machine can be used reasonably. Wherein, in the embodiment of the present invention, P2P software is taken as an example, see figure 2 , the specific workflow diagram is as follows:
[0078] 201: The client machine is started, and the P2P software program is started in the client machine;
[0079] Wherein, after the client machine is started, when the P2P software program is started in the client machine, there are generally multiple software programs running in the client machine at the same time, which jointly occupy the memory of the client machine;
[0080] When the P2P software starts running on the client machine, it can be set to occupy the machine...
Embodiment 3
[0116] The embodiment of the present invention also provides a device for adjusting memory, see image 3 , the device consists of:
[0117] An acquisition module 301, configured to acquire the initially occupied memory;
[0118] The allocation module 302 is configured to occupy the memory of the client machine according to the initial occupied memory acquired by the acquisition module 301;
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 