A method, device and storage medium for adjusting process management parameters
By adjusting process management parameters in the Android system, the probability and time of process survival within a specific priority range is solved, and the problem of process priority decline in Android system when memory is tight is improved, improving user experience and application loading speed.
Patent Information
- Application Number
- CN202010505819.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-05
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-06-05
AI Technical Summary
Existing Android systems are difficult to effectively manage process priorities when memory is tight, which affects the user experience, especially after the application is transferred from the foreground to the background to run, its process priority drops rapidly, which may be cleared by the system, affecting the loading speed and user experience. .
By adjusting process management parameters, we can improve the probability of process survival within a specific priority range, including allowing more processes to survive at the same time and extending priority maintenance time, dynamically adjusting parameter values based on the memory capacity and available memory of the mobile terminal, ensuring that the interface operation is focused on The application runs in the background for longer.
It improves the survival chances of specific applications, reduces the necessity of cold start, improves user experience, and achieves faster application loading through hot start, improving the overall process management effect.
Smart Images

Figure CN113760477B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to information processing technology of a mobile terminal, and in particular to a method, device and storage medium for adjusting process management parameters. Background Art
[0002] Android is a free and open source operating system based on the Linux kernel, mainly used in mobile devices such as smartphones and tablets.
[0003] The memory and other resources in the mobile terminal using Android are limited. At least one process in each application running in the mobile terminal will occupy a certain amount of memory resources. The Android system sets a priority for each process. When it is necessary to reclaim memory, the process with the lowest priority will be cleared first, followed by the process with the second lowest priority, and so on, to reclaim system resources and ensure that processes with higher priority are used normally, thereby ensuring the user experience.
[0004] How to improve the effectiveness of process priority management schemes is a technical problem that needs to be solved. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a method, device and storage medium for adjusting process management parameters.
[0006] According to a first aspect of an embodiment of this document, a method for adjusting process management parameters is provided, which is applied to a mobile terminal and includes:
[0007] Identify processes whose priorities fall within a set priority range;
[0008] The value of the setting parameter is adjusted to increase the survival probability of the process whose priority belongs to the setting priority range, and the setting parameter is used to characterize the survival probability of the process whose priority belongs to the setting priority range.
[0009] In one implementation, the application to which the process within the set priority range belongs meets the following condition: after the running state is changed from foreground running to background running, it does not include a service component in the running state.
[0010] In one embodiment, the set parameters include a first parameter, where the first parameter is the number of processes whose priorities belong to a set priority range and are allowed to survive simultaneously.
[0011] In one embodiment, the adjusting the value of the setting parameter includes: increasing the value of the setting parameter; the increasing the value of the setting parameter includes: determining an incremental value of the first parameter according to a memory capacity value of the mobile terminal, the memory capacity value of the mobile terminal is positively correlated with the incremental value, and increasing the value of the first parameter by the incremental value;
[0012] The memory capacity value includes at least one of the following: the total capacity of the memory device, and the amount of currently available memory.
[0013] In one embodiment, the setting parameters include a second parameter, and the second parameter is: a first duration for maintaining a current priority of a process until the priority is lowered.
[0014] In one embodiment, adjusting the value of the setting parameter includes: increasing the value of the setting parameter; increasing the value of the setting parameter includes: calculating an incremental value of a first duration of each process whose priority belongs to a setting priority range according to a reference parameter, the value of the reference parameter is positively correlated with the incremental value, and increasing the value of the second parameter by the incremental value;
[0015] The reference parameter includes at least one of the following: the amount of currently available memory and the amount of memory occupied by the current process.
[0016] According to a second aspect of the embodiments of this document, there is provided a device for adjusting process management parameters, which is applied to a mobile terminal and includes:
[0017] A determination module, used for determining a process whose priority belongs to a set priority range;
[0018] The adjustment module is used to adjust the value of the setting parameter to improve the survival probability of the process whose priority belongs to the setting priority range, and the setting parameter is used to characterize the survival probability of the process whose priority belongs to the setting priority range.
[0019] In one implementation, the application to which the process within the set priority range belongs meets the following condition: after the running state is changed from foreground running to background running, it does not include a service component in the running state.
[0020] In one embodiment, the set parameters include a first parameter, where the first parameter is the number of processes whose priorities belong to a set priority range and are allowed to survive simultaneously.
[0021] In one embodiment, the adjustment module adjusts the value of the setting parameter using the following method: increasing the value of the setting parameter; the increasing the value of the setting parameter includes: determining an incremental value of the first parameter according to a memory capacity value of the mobile terminal, the memory capacity value of the mobile terminal is positively correlated with the incremental value, and increasing the value of the first parameter by the incremental value;
[0022] The memory capacity value includes at least one of the following: the total capacity of the memory device, and the amount of currently available memory.
[0023] In one embodiment, the setting parameters include a second parameter, and the second parameter is: a first duration for maintaining a current priority of a process until the priority is lowered.
[0024] In one embodiment, the adjustment module adjusts the value of the setting parameter using the following method: increasing the value of the setting parameter: the increasing the value of the setting parameter includes: calculating an incremental value of a first duration of each process whose priority belongs to a setting priority range according to a reference parameter, the value of the reference parameter being positively correlated with the incremental value, and increasing the value of the second parameter by the incremental value;
[0025] The reference parameter includes at least one of the following: the amount of currently available memory and the amount of memory occupied by the current process.
[0026] According to a third aspect of the embodiments of this document, there is provided a device for adjusting process management parameters, including:
[0027] processor;
[0028] a memory for storing processor-executable instructions;
[0029] The processor is configured to execute the executable instructions in the memory to implement the steps of the method.
[0030] According to a fourth aspect of the embodiments of this document, a non-temporary computer-readable storage medium is provided, on which executable instructions are stored, and when the executable instructions are executed by a processor, the steps of the method are implemented.
[0031] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by adjusting the set parameters for processes within a set priority range, the survival probability of such processes is increased, such processes are made to survive longer, and the survival chances of processes of certain categories of applications expected by users are increased based on user needs, thereby improving the user experience.
[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0034] Figure 1 is a flow chart showing a method for adjusting process management parameters according to an exemplary embodiment;
[0035] Figure 2is a structural diagram of a device for adjusting process management parameters according to an exemplary embodiment;
[0036] Figure 3 The present invention is a structural diagram of a device for adjusting process management parameters according to an exemplary embodiment. DETAILED DESCRIPTION
[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0038] The present disclosure provides a method for adjusting process management parameters. Figure 1 , Figure 1 FIG. 1 is a flow chart showing a method for adjusting process management parameters according to an exemplary embodiment. Figure 1 As shown, this method includes:
[0039] Step S11, determining the processes whose priorities belong to the set priority range.
[0040] Step S12, adjusting the value of the setting parameter to improve the survival probability of the process whose priority belongs to the set priority range, wherein the setting parameter is used to characterize the survival probability of the process whose priority belongs to the set priority range.
[0041] In one embodiment, according to the existing method of setting priorities in the Android system, the larger the specific value of the priority, the lower the corresponding priority level. For example, in the order of decreasing priority levels, the priority of visible processes is set to 100, the priority of perceptible processes is set to 200, the priority of backup application processes is set to 300, the priority of heavyweight processes is set to 400, the priority of processes including service components is set to 500, the priority of desktop processes is set to 600, the priority of the previous application process is set to 700, the priority of long-term background service processes is set to 800, the priority of cache processes is set to 999, etc.
[0042] In this embodiment, by adjusting the management parameters for processes within a set priority range, the survival probability of such processes is increased, so that such processes survive longer, and the survival chances of processes of certain categories of applications expected by users are increased based on user needs, thereby improving the user experience.
[0043] The Android system includes four major components, namely: activity component, service component, content provider component, and broadcast receiver component. The activity component is an application component that provides a screen that users can use to interact in order to complete a task. All operations in the activity component are closely related to the user. It is a component responsible for interacting with the user and involves related operations of the human-computer interaction interface. The priority of each process is determined by the status of these four components, but the most direct and major impact on the user experience is the operation of the activity component related to the interface.
[0044] For example, when a user is using an online interactive game application, he needs to process information from other applications and return to the desktop. At this time, the online interactive game application is switched from running in the foreground to running in the background. When the memory is tight and the system has not set a keep-alive measure for this application, the priority of all processes of this application will gradually decrease until the priority of all processes drops to the lowest and is eliminated by the system. When the user finishes processing messages from other applications and wants to return to this online interactive game application, he needs to reload this application, which interrupts the user's progress in using this application and directly affects the user's experience.
[0045] The present disclosure provides a method for adjusting process management parameters, the method comprising: Figure 1 The method shown, wherein the application to which the process of setting the priority range in step S11 belongs meets the following conditions: after the running state changes from foreground running to background running, it does not include the service component in the running state. This application is generally an application that focuses on interface operation, and the interface operation has the greatest impact on the use of the application. For example: online interactive game application.
[0046] In one embodiment, setting the priority range in step S11 means that the priority is 700. Generally, after the running state is changed from foreground running to background running, the application that does not include the service component in the running state has an initial priority value of 700 for the corresponding process. With the subsequent operation of the user, when the application does not return to the foreground for a long time, the priority of the corresponding process is gradually reduced.
[0047] In this embodiment, the survival probability of the process of the application focusing on interface operation is improved, so that the application focusing on interface operation can survive longer when running in the background, avoiding its priority from dropping rapidly and being cleared quickly, thereby improving the survival index of the application focusing on interface operation and improving the user experience.
[0048] The present disclosure provides a method for adjusting process management parameters, the method comprising: Figure 1 The method shown in step S12 includes a first parameter, which is the number of processes whose priorities are within a set priority range that are allowed to survive at the same time. Adjusting the value of the setting parameter includes: increasing the value of the setting parameter. Increasing the value of the setting parameter includes increasing the value of the first parameter.
[0049] For example: In the existing process management system, the number of processes with a priority of 700 that are allowed to survive at the same time is 1. When the user is using an online interactive game application and the user returns to the main screen display state, the online interactive game application switches from running in the foreground to running in the background, and the priority of the corresponding process is 700. When there are no other processes with a priority of 700, the priority of this process remains at 700. After the user performs other operations and adds other processes with a priority of 700, since the number of processes with a priority of 700 that are allowed to survive at the same time is 1, the priority of the process of this online interactive game application decreases until it may directly drop to the lowest priority. After the user performs other operations and wants to return to this online interactive game application, the process of the online interactive game application has been cleared, and the online interactive game application needs to be cold-started and reloaded. The user needs to wait for a long loading time, which affects the user experience.
[0050] Through the method of this embodiment, the number of processes with a priority of 700 that are allowed to survive at the same time can be increased. For example, when this number is increased to 5, 4 or 3, when the priority of the process of this network online interactive game application is maintained at 700, after the user performs other operations and adds other processes with a priority of 700, the process of this network online interactive game application and the other newly added processes can be maintained at 700 at the same time, and the priority of the process of this network online interactive game application will not decrease, thereby reducing the risk of this process being cleared and increasing the chance of this process remaining alive. After the user performs other operations and returns to this network online interactive game application, a hot start can be achieved without the application loading process, thereby improving the loading speed and user experience.
[0051] In one embodiment, increasing the value of the first parameter includes: determining an incremental value of the first parameter according to a memory capacity value of the mobile terminal, the memory capacity value of the mobile terminal being positively correlated with the incremental value, and increasing the value of the first parameter by the incremental value. The memory capacity value includes at least one of the following: a total capacity of a memory device, and a currently available amount of memory.
[0052] For example, the original value of the first parameter is 1. The incremental value of the first parameter is determined according to the total capacity of the memory device. When the total capacity of the memory device is 8G, the incremental value is 4, and the updated value of the first parameter is 5. When the total capacity of the memory device is 6G, the incremental value is 3, and the updated value of the first parameter is 4. When the total capacity of the memory device is 4G, the incremental value is 2, and the updated value of the first parameter is 3.
[0053] For another example, the original value of the first parameter is 1. The incremental value of the first parameter is determined according to the currently available memory amount. When the currently available memory amount is 4G, the incremental value is 2, and the updated value of the first parameter is 3. When the currently available memory amount is 3G, the incremental value is 1, and the updated value of the first parameter is 2.
[0054] For another example, the original value of the first parameter is 1. The incremental value of the first parameter is determined according to the total capacity of the memory device and the currently available memory amount. When the total capacity of the memory device is 8G and the currently available memory amount is 4G, the incremental value is 4, and the updated value of the first parameter is 5. When the total capacity of the memory device is 8G and the currently available memory amount is 1G, the incremental value is 2, and the updated value of the first parameter is 3.
[0055] The present disclosure provides a method for adjusting process management parameters, the method comprising: Figure 1 The method shown in step S12 includes a second parameter, wherein the setting parameter is: a first duration for maintaining the current priority of a process until the priority is lowered. Adjusting the value of the setting parameter includes: increasing the value of the setting parameter. Increasing the value of the setting parameter includes increasing the value of the second parameter.
[0056] For example: In the existing process management system, the first duration of a process with a priority of 700 to maintain the current priority until the priority is lowered is 2 minutes. When the user is currently using an online interactive game application and the user returns to the main screen display state, the online interactive game application switches from running in the foreground to running in the background, and the priority of the corresponding process is 700. When the user performs other operations, after 2 minutes, the priority of the process of the online interactive game application decreases until it may be directly reduced to the lowest priority. After another minute, when the user has completed other operations and wants to return to the online interactive game application, the process of the online interactive game application has been cleared, and the online interactive game application needs to be cold-started and reloaded. The user needs to wait for a long loading time, which affects the user experience.
[0057] Through the method of this embodiment, the first duration of the process with a priority of 700 can be increased. For example, when the first duration is increased to 5, 4 or 3 minutes, when the priority of the process of this network online interactive game application is maintained at 700, after the user performs other operations, the priority of this process is maintained at 700 and does not decrease, thereby reducing the risk of this process being cleared and increasing the chance of this process remaining alive. After the user performs other operations and returns to this network online interactive game application, a hot start can be achieved without the application loading process, thereby improving the loading speed and user experience.
[0058] In one embodiment, increasing the value of the second parameter includes: calculating an incremental value of the first duration of each process whose priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the incremental value, and increasing the value of the second parameter by the incremental value. The reference parameter includes at least one of the following: the amount of currently available memory, and the amount of memory occupied by the current process.
[0059] For example, the original value of the second parameter of all processes with a priority of 700 is 2 minutes. The incremental value of the second parameter is determined according to the total capacity of the memory device. When the total capacity of the memory device is 8G, the incremental value is 4, and the updated value of the first parameter is 5. When the total capacity of the memory device is 6G, the incremental value is 3, and the updated value of the first parameter is 4. When the total capacity of the memory device is 4G, the incremental value is 2, and the updated value of the first parameter is 3.
[0060] For example, the original value of the second parameter of all processes with a priority of 700 is 2 minutes. The incremental value of the second parameter is determined according to the amount of memory occupied by the process. When the amount of memory occupied by the process is 500M, the incremental value is 4, and the value of the first parameter after the update is 5. When the amount of memory occupied by the process is 300M, the incremental value is 3, and the value of the first parameter after the update is 4. When the amount of memory occupied by the process is 100M, the incremental value is 2, and the value of the first parameter after the update is 3.
[0061] For example, the original value of the second parameter of all processes with a priority of 700 is 2 minutes. The incremental value of the second parameter is determined according to the total capacity of the memory device and the amount of memory occupied by the current process. When the total capacity of the memory device is 8G and the amount of memory occupied by the current process is 500M, the incremental value is 4, and the value of the first parameter after the update is 5. When the total capacity of the memory device is 8G and the amount of memory occupied by the current process is 300M, the incremental value is 3, and the value of the first parameter after the update is 4.
[0062] The present disclosure provides a method for adjusting process management parameters, the method comprising: Figure 1The method shown, and in order to verify the effect of the above method, the proportion of hot starts and cold starts of each application is counted. For example, the total number of starts of the target application within a set time is counted, and the type of each start is determined to be a hot start or a cold start, the number of hot starts and the number of cold starts are determined, and the ratio of the number of hot starts to the total number of starts is calculated as the first ratio, or the ratio of the number of cold starts to the total number of starts is calculated as the second ratio. After using the method of the above embodiment, the first ratio increases, indicating that the number of hot starts increases and the process management effect becomes better, and the second ratio increases, indicating that the number of cold starts increases and the process management effect becomes better.
[0063] The present disclosure provides a device for adjusting process management parameters. Figure 2 , Figure 2 FIG. 1 is a flow chart of a device for adjusting process management parameters according to an exemplary embodiment. Figure 2 As shown, the device comprises:
[0064] A determination module 201, used to determine a process whose priority belongs to a set priority range;
[0065] The adjustment module 202 is used to adjust the value of a setting parameter to increase the survival probability of the process whose priority belongs to the set priority range, and the setting parameter is used to characterize the survival probability of the process whose priority belongs to the set priority range.
[0066] In one implementation, the application to which the process within the set priority range belongs meets the following condition: after the running state is changed from foreground running to background running, it does not include a service component in the running state.
[0067] The present disclosure provides a device for adjusting process management parameters, the device comprising: Figure 2 The device shown, and the set parameters include a first parameter, which is the number of processes whose priorities belong to a set priority range and are allowed to survive at the same time.
[0068] The adjustment module 202 adjusts the value of the setting parameter using the following method: increasing the value of the setting parameter; the increasing the value of the setting parameter includes: determining an incremental value of the first parameter according to the memory capacity value of the mobile terminal, the memory capacity value of the mobile terminal is positively correlated with the incremental value, and increasing the value of the first parameter by the incremental value;
[0069] The memory capacity value includes at least one of the following: the total capacity of the memory device, and the amount of currently available memory.
[0070] The present disclosure provides a device for adjusting process management parameters, the device comprising: Figure 2The device shown, and the setting parameters include a second parameter, which is: a first time length for maintaining the current priority of a process before the priority is lowered.
[0071] The adjustment module 202 adjusts the value of the setting parameter using the following method: increasing the value of the setting parameter: the increasing the value of the setting parameter includes: calculating an incremental value of the first duration of each process whose priority belongs to the setting priority range according to a reference parameter, the value of the reference parameter is positively correlated with the incremental value, and increasing the value of the second parameter by the incremental value;
[0072] The reference parameter includes at least one of the following: the amount of currently available memory and the amount of memory occupied by the current process.
[0073] Figure 3 1 is a block diagram of an apparatus 300 for determining performance parameters of a speech enhancement algorithm according to an exemplary embodiment. For example, the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0074] Reference Figure 3 , the device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .
[0075] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0076] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0077] The power supply component 306 provides power to the various components of the device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0078] The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0079] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0080] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0081] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300, and the temperature change of the device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0082] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0083] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0084] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0085] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0086] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for adjusting process management parameters, applied to a mobile terminal, characterized in that: include: Identify processes whose priorities fall within a set priority range; Adjusting the value of the setting parameter to increase the survival probability of the process whose priority belongs to the setting priority range, the setting parameter is used to characterize the survival probability of the process whose priority belongs to the setting priority range; The set parameters include a first parameter, which is the number of processes whose priorities belong to a set priority range and are allowed to survive at the same time; The adjusting the value of the setting parameter includes: increasing the value of the setting parameter; The increasing the value of the set parameter comprises: determining an incremental value of the first parameter according to a memory capacity value of the mobile terminal, the memory capacity value of the mobile terminal being positively correlated with the incremental value, and increasing the value of the first parameter by the incremental value; The memory capacity value includes at least one of the following: the total capacity of the memory device, and the amount of currently available memory.
2. The method for adjusting process management parameters according to claim 1, characterized in that: The application to which the process of the set priority range belongs meets the following conditions: after the running state is changed from foreground running to background running, it does not include a service component in the running state.
3. The method for adjusting process management parameters according to any one of claims 1 to 2, characterized in that: The setting parameters include a second parameter, where the second parameter is: a first duration for maintaining a current priority of a process until the priority is lowered.
4. The method for adjusting process management parameters according to claim 3, characterized in that: The adjusting the value of the setting parameter includes: increasing the value of the setting parameter; The increasing the value of the set parameter includes: calculating an incremental value of a first duration of each process whose priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the incremental value, and increasing the value of the second parameter by the incremental value; The reference parameter includes at least one of the following: the amount of currently available memory and the amount of memory occupied by the current process.
5. A device for adjusting process management parameters, applied to a mobile terminal, characterized in that: include: A determination module, used for determining a process whose priority belongs to a set priority range; An adjustment module, used for adjusting a value of a setting parameter to increase the survival probability of the process whose priority belongs to the setting priority range, wherein the setting parameter is used to characterize the survival probability of the process whose priority belongs to the setting priority range; The set parameters include a first parameter, which is the number of processes whose priorities belong to a set priority range and are allowed to survive at the same time; The adjustment module adjusts the value of the setting parameter using the following method: increasing the value of the setting parameter; The increasing the value of the set parameter comprises: determining an incremental value of the first parameter according to a memory capacity value of the mobile terminal, the memory capacity value of the mobile terminal being positively correlated with the incremental value, and increasing the value of the first parameter by the incremental value; The memory capacity value includes at least one of the following: the total capacity of the memory device, and the amount of currently available memory.
6. The device for adjusting process management parameters according to claim 5, characterized in that: The application to which the process of the set priority range belongs meets the following conditions: after the running state is changed from foreground running to background running, it does not include a service component in the running state.
7. The device for adjusting process management parameters according to any one of claims 5 to 6, characterized in that: The setting parameters include a second parameter, where the second parameter is: a first duration for maintaining a current priority of a process until the priority is lowered.
8. The device for adjusting process management parameters according to claim 7, characterized in that: The adjustment module adjusts the value of the setting parameter using the following method: increasing the value of the setting parameter: the increasing the value of the setting parameter includes: calculating an incremental value of the first duration of each process whose priority belongs to the setting priority range according to a reference parameter, the value of the reference parameter is positively correlated with the incremental value, and increasing the value of the second parameter by the incremental value; The reference parameter includes at least one of the following: the amount of currently available memory and the amount of memory occupied by the current process.
9. A device for adjusting process management parameters, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions in the memory to implement the steps of the method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium having executable instructions stored thereon, characterized in that: When the executable instruction is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
