CN113760477A - Method, device and storage medium for adjusting process management parameters - Google Patents
Method, device and storage medium for adjusting process management parameters Download PDFInfo
- Publication number
- CN113760477A CN113760477A CN202010505819.9A CN202010505819A CN113760477A CN 113760477 A CN113760477 A CN 113760477A CN 202010505819 A CN202010505819 A CN 202010505819A CN 113760477 A CN113760477 A CN 113760477A
- Authority
- CN
- China
- Prior art keywords
- value
- parameter
- priority
- adjusting
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The present disclosure relates to a method, an apparatus, and a storage medium for adjusting process management parameters, the method comprising: determining that the priority belongs to a process with a set priority range; and adjusting the value of a set parameter to improve the survival probability of the process with the priority belonging to the set priority range, wherein the set parameter is used for representing the survival probability of the process with the priority belonging to the set priority range. In the disclosure, by adjusting the setting parameters for the processes belonging to the set priority range, the survival probability of the processes is improved, the processes survive for a longer time, and the user experience is improved according to the user demand emphasis on improving the survival chances of the processes of certain types of applications expected by the user.
Description
Technical Field
The present disclosure relates to information processing technologies of mobile terminals, and in particular, to a method and an apparatus for adjusting process management parameters, and a storage medium.
Background
Android is a Linux kernel-based operating system with free and open source codes, and is mainly used for mobile devices such as smart phones and tablet computers.
Resources such as a memory in the android-based mobile terminal are limited, and at least one process in each application running in the mobile terminal occupies a certain memory resource. The priority is set for each process in the android system, when the memory needs to be recycled, the process with the lowest priority is cleared firstly, then the process with the lowest priority is cleared, and the like, so that the system resources are recycled, the process with the higher priority is guaranteed to be normally used, and the use experience of a user is guaranteed.
How to improve the effectiveness of the process priority management scheme is a technical problem to be solved.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a storage medium for adjusting process management parameters.
According to a first aspect of embodiments herein, there is provided a method for adjusting process management parameters, applied to a mobile terminal, including:
determining that the priority belongs to a process with a set priority range;
and adjusting the value of a set parameter to improve the survival probability of the process with the priority belonging to the set priority range, wherein the set parameter is used for representing the survival probability of the process with the priority belonging to the set priority range.
In one embodiment, the application to which the process for setting the priority range belongs meets the following condition: and after the running state is changed from foreground running to background running, the service components in the running state are not included.
In one embodiment, the setting parameter includes a first parameter, and the first parameter is the number of processes whose priority levels allowed to live at the same time belong to a set priority range.
In one embodiment, the adjusting the value of the setting parameter includes: improving the value of the set parameter; the increasing of the value of the setting parameter comprises: determining an increment value of the first parameter according to the memory capacity value of the mobile terminal, wherein the memory capacity value of the mobile terminal is positively correlated with the increment value, and the value of the first parameter is increased by the increment value;
the memory capacity value comprises at least one of: total capacity of the memory device, amount of memory currently available.
In one embodiment, the setting parameters include a second parameter, and the second parameter is: for a first duration before maintaining a current priority of a process to be throttled down.
In one embodiment, the adjusting the value of the setting parameter includes: improving the value of the set parameter; the increasing the value of the setting parameter includes: calculating an increment value of a first duration of a process of which each priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the increment value, and the value of the second parameter is increased by the increment value;
the reference parameter comprises at least one of: the current available memory amount and the memory amount occupied by the process.
According to a second aspect of the embodiments herein, there is provided an apparatus for adjusting process management parameters, applied to a mobile terminal, including:
the determining module is used for determining that the priority belongs to the process of the set priority range;
and the adjusting module is used for adjusting the value of a set parameter to improve the survival probability of the process with the priority belonging to the set priority range, and the set parameter is used for representing the survival probability of the process with the priority belonging to the set priority range.
In one embodiment, the application to which the process for setting the priority range belongs meets the following condition: and after the running state is changed from foreground running to background running, the service components in the running state are not included.
In one embodiment, the setting parameter includes a first parameter, and the first parameter is the number of processes whose priority levels allowed to live at the same time belong to a set priority range.
In one embodiment, the adjusting module adjusts the value of the setting parameter by using the following method: improving the value of the set parameter; the increasing the value of the setting parameter includes: determining an increment value of the first parameter according to the memory capacity value of the mobile terminal, wherein the memory capacity value of the mobile terminal is positively correlated with the increment value, and the value of the first parameter is increased by the increment value;
the memory capacity value comprises at least one of: total capacity of the memory device, amount of memory currently available.
In one embodiment, the setting parameters include a second parameter, and the second parameter is: for a first duration before maintaining a current priority of a process to be throttled down.
In one embodiment, the adjusting module adjusts the value of the setting parameter by using the following method: increasing the value of the setting parameter: the increasing of the value of the setting parameter comprises: calculating an increment value of a first duration of a process of which each priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the increment value, and the value of the second parameter is increased by the increment value;
the reference parameter comprises at least one of: the current available memory amount and the memory amount occupied by the process.
According to a third aspect of embodiments herein, there is provided an apparatus for adjusting process management parameters, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute executable instructions in the memory to implement the steps of the method.
According to a fourth aspect of embodiments herein, there is provided a non-transitory computer readable storage medium having stored thereon executable instructions that, when executed by a processor, implement the steps of the method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the survival probability of the processes is improved by adjusting the set parameters aiming at the processes belonging to the set priority range, the processes can survive for a longer time, the survival chance of the processes of certain types of applications expected by the user is improved according to the emphasis of the user demand, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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.
FIG. 1 is a flow diagram illustrating a method of adjusting process management parameters in accordance with an exemplary embodiment;
FIG. 2 is a block diagram illustrating an apparatus for adjusting process management parameters in accordance with an exemplary embodiment;
fig. 3 is a block diagram illustrating an apparatus for adjusting process management parameters according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure provides a method for adjusting process management parameters. Referring to FIG. 1, FIG. 1 is a flow diagram illustrating a method of adjusting process management parameters according to an example embodiment. As shown in fig. 1, the method includes:
in step S11, it is determined that the priority belongs to the process of setting the priority range.
And step S12, adjusting the value of a setting parameter to improve the survival probability of the process with the priority belonging to the set priority range, wherein the setting parameter is used for representing the survival probability of the process with the priority belonging to the set priority range.
In one embodiment, according to the existing priority setting mode of the android system, the greater the specific value of the priority, the lower the corresponding priority level. For example: along the sequence of the descending priority levels, the priority level of the visible process is set to be 100, the priority level of the perceivable process is set to be 200, the priority level of the backup application process is set to be 300, the priority level of the heavyweight process is set to be 400, the priority level of the process containing the service component is set to be 500, the priority level of the desktop process is set to be 600, the priority level of the process of the previous application is set to be 700, the priority level of the long-time background service process is set to be 800, the priority level of the cache process is set to be 999 and the like.
In this embodiment, the survival probability of the processes belonging to the set priority range is improved by adjusting the management parameters for the processes, so that the processes survive for a longer time, and the user experience is improved by emphasizing the survival chance of the processes of the applications of certain categories expected by the user according to the user demand.
The android system comprises four components, specifically: the system comprises an activity component, a service component, a content provider component and a Broadcast Receiver component, wherein the activity component is an application program component and provides a screen, a user can interact with the application program component to complete a certain task, all operations in the activity component are closely related to the user, and the activity component is a component responsible for interacting with the user and related operations related to a human-computer interaction interface. The priority of each process is determined by the states of the four components, but affects the most direct and dominant operational aspect of the user experience, whether it is the interface-related activity component.
For example, when a user uses a network online interactive game application, the user needs to process information of other applications and return to a desktop, at this time, the network online interactive game application is switched from a foreground operation to a background operation, and when the memory is in a short period and the system does not set a keep-alive measure for the application, the priorities of all processes of the application are gradually reduced until the priorities of all processes are reduced to the minimum and then eliminated by the system. When the user finishes processing the messages of other applications and wants to re-enter the online interactive game application, the application needs to be re-loaded, so that the use progress of the application is interrupted, and the use experience of the user is directly influenced.
In the embodiment of the present disclosure, a method for adjusting process management parameters is provided, where the method includes the method shown in fig. 1, and an application to which a process with a priority range set in step S11 belongs meets the following conditions: and after the running state is changed from foreground running to background running, the service components in the running state are not included. The application is generally an application with emphasis on interface operation, and the interface operation influences the application to the greatest extent. For example: a network online interactive gaming application.
In one embodiment, the setting of the priority range in step S11 means that the priority is 700. Generally, the application with the running state not including the service component in the running state is changed from foreground running to background running, the initial value of the priority of the corresponding process is 700 after the application is changed from the foreground running to the background running, and the priority of the corresponding process is gradually reduced when the application is not changed back to the foreground running for a long time along with the subsequent operation of the user.
In the embodiment, the survival probability of the process of the application of the side-weighted interface operation is improved, so that the application of the side-weighted interface operation can survive for a longer time when running in a background, and the application of the side-weighted interface operation is prevented from being rapidly cleared due to rapid reduction of the priority, thereby improving the survival index of the application of the side-weighted interface operation and improving the use experience of a user.
In the embodiment of the present disclosure, a method for adjusting a process management parameter is provided, where the method includes the method shown in fig. 1, and the setting parameter in step S12 includes a first parameter, where the first parameter is the number of processes whose priorities that allow simultaneous survival belong to a set priority range. Adjusting the values of the setting parameters includes: the value of the setting parameter is increased. Increasing the value of the setting parameter includes increasing the value of the first parameter.
For example: in the conventional process management system, the number of processes with a priority of 700 that are allowed to live at the same time is 1. When the user returns to the main screen display state while the online interactive game application is being used by the user, the online interactive game application is changed from foreground running to background running, and the priority of the corresponding process is 700. The priority of this process is maintained at 700 when no other process of priority 700 exists. When another process with the priority of 700 is newly added after the user performs another operation, since the number of processes with the priority of 700 allowed to live at the same time is 1, the priority of the process of the network online interactive game application is decreased until it is possible to directly decrease to the lowest priority. After the user executes other operations, when the user wants to return to the network online interactive game application, the process of the network online interactive game application is cleared, the network online interactive game application needs to be cold started and loaded again, and the user needs to wait for a long loading time to influence the use experience of the user.
By the method of the embodiment, the number of processes with the priority of 700 allowed to live simultaneously can be increased, for example, when the number is increased to 5, 4 or 3, when the priority of the process of the network online interactive game application is maintained at 700, and after the user performs other operations, other processes with the priority of 700 are newly added, the process of the network online interactive game application and the newly added other processes can be simultaneously maintained at 700, the priority of the process of the network online interactive game application cannot be reduced, so that the risk that the process is cleared is reduced, the chance that the process keeps alive is increased, after the user performs other operations, and when the network online interactive game application is returned, hot start can be realized, the loading process of the application is not needed, and the loading speed and the user experience are increased.
In one embodiment, increasing the value of the first parameter comprises: and determining an increment value of the first parameter according to the memory capacity value of the mobile terminal, wherein the memory capacity value of the mobile terminal is positively correlated with the increment value, and the value of the first parameter is increased by the increment value. Wherein the memory capacity value comprises at least one of: total capacity of the memory device, amount of memory currently available.
For example: the original value of the first parameter is 1. And determining an increment value of the first parameter according to the total capacity of the memory device, wherein when the total capacity of the memory device is 8G, the increment value is 4, and the updated value of the first parameter is 5. When the total capacity of the memory device is 6G, the increment value is 3, and the updated value of the first parameter is 4. When the total capacity of the memory device is 4G, the increment value is 2, and the updated value of the first parameter is 3.
For another example: the original value of the first parameter is 1. And determining an increment value of the first parameter according to the currently available memory amount, wherein when the currently available memory amount is 4G, the increment value is 2, and the updated value of the first parameter is 3. When the currently available memory amount is 3G, the increment value is 1, and the updated value of the first parameter is 2.
For another example: the original value of the first parameter is 1. And simultaneously determining the increment value of the first parameter 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 increment 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 increment value is 2, and the updated value of the first parameter is 3.
In the embodiment of the present disclosure, a method for adjusting process management parameters is provided, where the method includes the method shown in fig. 1, and the setting parameters in step S12 include a second parameter, where the second parameter is: for a first duration before maintaining a current priority of a process to be throttled down. Adjusting the values of the setting parameters includes: the value of the setting parameter is increased. Increasing the value of the setting parameter includes increasing the value of the second parameter.
For example: in the conventional process management system, a process with a priority of 700 maintains a current priority for a first duration of 2 minutes before the priority is adjusted downward. When the user returns to the main screen display state while the online interactive game application is being used by the user, the online interactive game application is changed from foreground running to background running, and the priority of the corresponding process is 700. The user performs other actions, and after 2 minutes has elapsed, the priority of the progress of this network online interactive game application drops until perhaps directly to the lowest priority. After 1 minute, when the user performs other operations and wants to re-return the network online interactive game application, the process of the network online interactive game application is cleared, the network online interactive game application needs to be cold started and loaded again, and the user needs to wait for a long loading time to influence the use experience of the user.
By the method of the embodiment, the first duration of the process with the priority of 700 can be increased, for example, when the first duration is increased to 5, 4 or 3 minutes, and when the priority of the process of the network online interactive game application is maintained at 700, after the user performs other operations, the process maintains the priority of 700 and does not fall, so that the risk of clearing the process is reduced, the chance of keeping the process alive is increased, after the user performs other operations, and then the network online interactive game application is returned, hot start can be realized, the loading process of the application is not needed, and the loading speed and the user experience are increased.
In one embodiment, increasing the value of the second parameter comprises: and calculating an increment value of the first time length of each priority belonging to the process of the set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the increment value, and the value of the second parameter is increased by the increment value. Wherein the reference parameter comprises at least one of: the current available memory amount and the memory amount occupied by the process.
For example: the original value of the second parameter for all processes with priority 700 is 2 minutes. And determining an increment value of the second parameter according to the total capacity of the memory device, wherein when the total capacity of the memory device is 8G, the increment value is 4, and the updated value of the first parameter is 5. When the total capacity of the memory device is 6G, the increment value is 3, and the updated value of the first parameter is 4. When the total capacity of the memory device is 4G, the increment value is 2, and the updated value of the first parameter is 3.
For example: the original value of the second parameter for all processes with priority 700 is 2 minutes. And determining an increment value of the second parameter according to the memory amount occupied by the process, wherein when the memory amount occupied by the process is 500M, the increment value is 4, and the updated value of the first parameter is 5. When the amount of memory occupied by the process is 300M, the increment value is 3, and the updated value of the first parameter is 4. When the amount of memory occupied by the process is 100M, the increment value is 2, and the updated value of the first parameter is 3.
For example: the original value of the second parameter for all processes with priority 700 is 2 minutes. And determining the increment value of the second parameter according to the total capacity of the memory device and the memory amount occupied by the process. The total capacity of the memory device is 8G, and when the amount of memory occupied by the process is 500M, the increment value is 4, and the updated value of the first parameter is 5. The total capacity of the memory device is 8G, and when the amount of memory occupied by the process is 300M, the increment value is 3, and the updated value of the first parameter is 4.
The embodiment of the disclosure provides a method for adjusting process management parameters, which includes the method shown in fig. 1, and in order to verify the effect of the method, the duty ratio of the hot start and the cold start of each application is counted. For example, the total number of times of starting of the target application within a set time period is counted, whether each starting type is a hot start or a cold start is determined, the number of times of hot start and the number of times of cold start are determined, the ratio of the number of times of hot start to the total number of times of starting is calculated as a first ratio, or the ratio of the number of times of cold start to the total number of times of starting is calculated as a second ratio. After the method of the above embodiment is used, the first ratio is increased to indicate that the number of times of the warm start increases and the process management effect becomes good, and the second ratio is increased to indicate that the number of times of the cold start increases and the process management effect becomes good.
The embodiment of the disclosure provides a device for adjusting process management parameters. Referring to fig. 2, fig. 2 is a flowchart illustrating an apparatus for adjusting process management parameters according to an example embodiment. As shown in fig. 2, the apparatus includes:
a determining module 201, configured to determine that the priority belongs to a process with a set priority range;
the adjusting module 202 is configured to adjust a value of a setting parameter to improve a survival probability of a process with the priority belonging to a set priority range, where the setting parameter is used to characterize the survival probability of the process with the priority belonging to the set priority range.
In one embodiment, the application to which the process for setting the priority range belongs meets the following condition: and after the running state is changed from foreground running to background running, the service components in the running state are not included.
An apparatus for adjusting process management parameters is provided in the embodiments of the present disclosure, the apparatus includes the apparatus shown in fig. 2, and the setting parameters include a first parameter, where the first parameter is the number of processes whose priorities allowed to live simultaneously belong to a set priority range.
The adjusting module 202 adjusts the values of the setting parameters by using the following method: improving the value of the set parameter; the increasing the value of the setting parameter includes: determining an increment value of the first parameter according to the memory capacity value of the mobile terminal, wherein the memory capacity value of the mobile terminal is positively correlated with the increment value, and the value of the first parameter is increased by the increment value;
the memory capacity value comprises at least one of: total capacity of the memory device, amount of memory currently available.
The embodiment of the present disclosure provides an apparatus for adjusting process management parameters, where the apparatus includes the apparatus shown in fig. 2, and the setting parameters include a second parameter, where the second parameter is: for a first duration before maintaining a current priority of a process to be throttled down.
The adjusting module 202 adjusts the values of the setting parameters by using the following method: increasing the value of the setting parameter: the increasing of the value of the setting parameter comprises: calculating an increment value of a first duration of a process of which each priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the increment value, and the value of the second parameter is increased by the increment value;
the reference parameter comprises at least one of: the current available memory amount and the memory amount occupied by the process.
FIG. 3 is a block diagram illustrating an apparatus 300 for determining performance parameters of a speech enhancement algorithm according to an example 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, the apparatus 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 312, sensor component 314, and communication component 316.
The processing component 302 generally controls overall operation of the device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, 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 or optical disks.
The power supply component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 300.
The multimedia component 308 includes a screen that provides an output interface between the device 300 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be 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.
The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, sensor assembly 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of apparatus 300, the change in position of apparatus 300 or a component of apparatus 300, the presence or absence of user contact with apparatus 300, the orientation or acceleration/deceleration of apparatus 300, and the change in temperature of apparatus 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light 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 acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The device 300 may 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 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the apparatus 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.
Claims (14)
1. A method for adjusting process management parameters is applied to a mobile terminal, and is characterized by comprising the following steps:
determining that the priority belongs to a process with a set priority range;
and adjusting the value of a set parameter to improve the survival probability of the process with the priority belonging to the set priority range, wherein the set parameter is used for representing the survival probability of the process with the priority belonging to the set priority range.
2. The method of adjusting process management parameters of claim 1,
the application to which the process of setting the priority range belongs meets the following conditions: and after the running state is changed from foreground running to background running, the service components in the running state are not included.
3. The method of adjusting process management parameters of claim 1,
the setting parameter includes a first parameter that is the number of processes whose priority levels allowed to live simultaneously belong to a set priority range.
4. The method of adjusting process management parameters of claim 3,
the adjusting of the value of the setting parameter includes: improving the value of the set parameter;
the increasing the value of the setting parameter includes: determining an increment value of the first parameter according to the memory capacity value of the mobile terminal, wherein the memory capacity value of the mobile terminal is positively correlated with the increment value, and the value of the first parameter is increased by the increment value;
the memory capacity value comprises at least one of: total capacity of the memory device, amount of memory currently available.
5. The method for adjusting process management parameters according to any of claims 1 to 4,
the setting parameters comprise a second parameter, and the second parameter is: for a first duration before maintaining a current priority of a process to be throttled down.
6. The method of adjusting process management parameters according to claim 5,
the adjusting of the value of the setting parameter includes: improving the value of the set parameter;
the increasing of the value of the setting parameter comprises: calculating an increment value of a first duration of a process of which each priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the increment value, and the value of the second parameter is increased by the increment value;
the reference parameter comprises at least one of: the current available memory amount and the memory amount occupied by the process.
7. A device for adjusting process management parameters is applied to a mobile terminal, and is characterized by comprising the following steps:
the determining module is used for determining that the priority belongs to the process of the set priority range;
and the adjusting module is used for adjusting the value of a set parameter to improve the survival probability of the process with the priority belonging to the set priority range, and the set parameter is used for representing the survival probability of the process with the priority belonging to the set priority range.
8. The apparatus for adjusting process management parameters according to claim 7,
the application to which the process of setting the priority range belongs meets the following conditions: and after the running state is changed from foreground running to background running, the service components in the running state are not included.
9. The apparatus for adjusting process management parameters according to claim 7,
the setting parameter includes a first parameter that is the number of processes whose priority levels allowed to live simultaneously belong to a set priority range.
10. The apparatus for adjusting process management parameters according to claim 9,
the adjusting module adjusts the value of the setting parameter by using the following method: improving the value of the set parameter; the increasing the value of the setting parameter includes: determining an increment value of the first parameter according to the memory capacity value of the mobile terminal, wherein the memory capacity value of the mobile terminal is positively correlated with the increment value, and the value of the first parameter is increased by the increment value;
the memory capacity value comprises at least one of: total capacity of the memory device, amount of memory currently available.
11. The apparatus for adjusting process management parameters according to any of claims 7 to 10,
the setting parameters comprise a second parameter, and the second parameter is: for a first duration before maintaining a current priority of a process to be throttled down.
12. The apparatus for adjusting process management parameters according to claim 11,
the adjusting module adjusts the value of the setting parameter by using the following method: increasing the value of the setting parameter: the increasing of the value of the setting parameter comprises: calculating an increment value of a first duration of a process of which each priority belongs to a set priority range according to a reference parameter, wherein the value of the reference parameter is positively correlated with the increment value, and the value of the second parameter is increased by the increment value;
the reference parameter comprises at least one of: the current available memory amount and the memory amount occupied by the process.
13. An apparatus for adjusting process management parameters, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute executable instructions in the memory to implement the steps of the method of any one of claims 1 to 6.
14. A non-transitory computer readable storage medium having stored thereon executable instructions, wherein the executable instructions, when executed by a processor, implement the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010505819.9A CN113760477A (en) | 2020-06-05 | 2020-06-05 | Method, device and storage medium for adjusting process management parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010505819.9A CN113760477A (en) | 2020-06-05 | 2020-06-05 | Method, device and storage medium for adjusting process management parameters |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113760477A true CN113760477A (en) | 2021-12-07 |
Family
ID=78784954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010505819.9A Pending CN113760477A (en) | 2020-06-05 | 2020-06-05 | Method, device and storage medium for adjusting process management parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113760477A (en) |
-
2020
- 2020-06-05 CN CN202010505819.9A patent/CN113760477A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762839B (en) | Interface display method and device of application program | |
US9860844B2 (en) | Method and apparatus of temperature control | |
CN109408207B (en) | Microservice access control method, microservice access control device and storage medium | |
CN110166371B (en) | Flow control method and device, electronic equipment and storage medium | |
CN107608561B (en) | Touch screen control method and device | |
CN107943347B (en) | Touch screen control method and device | |
CN110647373A (en) | Application page intercepting method and device | |
CN109062625B (en) | Application program loading method and device and readable storage medium | |
CN110968523A (en) | Memory defragmentation method and device | |
CN108958911B (en) | Process control method and device | |
CN107436782B (en) | Application silent installation method and device | |
CN114116215A (en) | Memory management method and device, electronic equipment and storage medium | |
CN107368175B (en) | Processing method and device for reducing terminal power consumption and terminal | |
CN111580980B (en) | Memory management method and device | |
CN112307229A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN113760477A (en) | Method, device and storage medium for adjusting process management parameters | |
CN114442789A (en) | Dark screen control method, device, equipment and storage medium | |
CN116089025A (en) | Processor frequency control method, device and storage medium | |
CN111722919B (en) | Method and device for running background application program, storage medium and electronic equipment | |
CN113722080A (en) | Memory optimization method and device and computer storage medium | |
CN115344357A (en) | Application program processing method and device and storage medium | |
CN114077461A (en) | Application program running method, device, equipment and storage medium | |
CN112187326A (en) | Antenna control method, device, equipment and storage medium | |
CN112416580A (en) | Method, device and medium for determining optimal resource allocation mode in application runtime | |
CN111240590A (en) | Dirty data erasing method, dirty data erasing device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |