CN112416549A - Process management method and device, electronic equipment and storage medium - Google Patents

Process management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112416549A
CN112416549A CN202011294021.0A CN202011294021A CN112416549A CN 112416549 A CN112416549 A CN 112416549A CN 202011294021 A CN202011294021 A CN 202011294021A CN 112416549 A CN112416549 A CN 112416549A
Authority
CN
China
Prior art keywords
target
process management
mode
information
determining
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
Application number
CN202011294021.0A
Other languages
Chinese (zh)
Inventor
赵长春
徐辉
何涛
叶瑞权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011294021.0A priority Critical patent/CN112416549A/en
Publication of CN112416549A publication Critical patent/CN112416549A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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/5016Allocation 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Abstract

The application provides a process management method, a process management device, electronic equipment and a storage medium, which belong to the technical field of computers, and the method comprises the following steps: acquiring current memory state information and a current system state record of target equipment; then acquiring a user operation instruction input by a target user, and determining target scene information based on the user operation instruction; then, based on the target scene information and/or the current memory state information, determining a target process management mode; the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode; and finally, based on the current memory state information and the current system state record, executing corresponding process management operation on the target equipment by using a target process management mode. By the method, various target process management modes can be provided, process management of the target equipment is realized under the condition of being separated from an Android process management mechanism, and user experience is improved.

Description

Process management method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a process management method, a process management device, electronic equipment and a storage medium.
Background
With the popularization of Android platforms and the deep understanding of developers on process management mechanisms based on Android platform frames, developers adopt various methods to improve the priorities of the processes in the development process of an Android Application Package (APK) to ensure the long-time survival of the processes. As the background occupies the resources of the system and the CPU, the overall performance of the system is easily reduced by the conventional Android process management mechanism, the problems of blockage, slow running and the like are caused, and the user experience is reduced.
Disclosure of Invention
In order to overcome the problems in the related art at least to a certain extent, the application provides the process management method, the device, the electronic device and the storage medium, and can be used for separating from an Android process management mechanism based on the scene information of the process to be entered, providing abundant target process management modes, realizing process management on the target device and further improving user experience.
In order to achieve the purpose, the following technical scheme is adopted in the application:
in a first aspect, the present application provides a process management method, including: acquiring current memory state information and a current system state record of target equipment; acquiring a user operation instruction input by a target user, and determining target scene information based on the user operation instruction; the target scene information represents scene information of a process to be entered; determining a target process management mode based on the target scene information and/or the current memory state information; wherein the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode; and executing corresponding process management operation on the target equipment by using a target process management mode based on the current memory state information and the current system state record.
Further, the process cleaning method includes an on-demand cleaning method, and if the target process management method is the on-demand cleaning method, the step of determining the target process management method based on the target scene information and/or the current memory state information includes: determining the required memory information of the process to be entered based on the target scene information; judging whether the required memory information is larger than the current memory residual information in the current memory state information; and if so, determining that the target process management mode is the on-demand cleaning mode.
Further, the process cleaning manner includes a limit cleaning manner, and if the target process management manner is the limit cleaning manner, the step of determining the target process management manner based on the target scene information and/or the current memory state information includes: judging whether the current memory residual information in the current memory state information is smaller than a preset threshold value or not; and if so, determining that the target process management mode is the limit cleaning mode.
Further, the step of determining a target process management mode based on the target scene information and/or the current memory state information if the target process management mode is the timing cleaning mode includes: judging whether the target equipment is in a standby state or not based on the target scene information; if not, determining that the target process management mode is a timing cleaning mode.
Further, the step of determining a target process management manner based on the target scenario information and/or the current memory state information includes: judging whether the target scene information meets a preset starting condition or not; if so, determining the target process management mode as the process starting mode; if not, determining that the target process management mode is the limited starting mode.
Further, if the target process management mode is the early start mode, the step of determining the target process management mode based on the target scene information and/or the current memory state information includes: acquiring a historical system state record of the target equipment; counting the regular information of all known processes based on the historical system state record; wherein the rule information is used for reflecting the habit of the target user entering the known process; judging whether the target scene information conforms to the rule information of the process to be entered; and if so, determining that the target process management mode is the early starting mode.
Further, the preset starting condition comprises at least one of the following conditions: the process to be entered is actively started by a user, the process to be entered is associated with the function of the currently running process, and the process to be entered belongs to a white list process.
In a second aspect, the present application provides a process management apparatus, including: the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring current memory state information and a current system state record of target equipment; the acquisition determining unit is used for acquiring a user operation instruction input by a target user and determining target scene information based on the user operation instruction; the target scene information represents scene information of a process to be entered; the determining unit is used for determining a target process management mode based on the target scene information and/or the current memory state information; wherein the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode; and the process management unit is used for executing corresponding process management operation on the target equipment by utilizing a target process management mode based on the current memory state information and the current system state record.
In a third aspect, the present application provides an electronic device, comprising: a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the first aspects.
In a fourth aspect, the present application provides a storage medium having stored thereon a computer program for performing the steps of the method of any of the first aspect described above when the computer program is executed by a processor.
According to the process management method, the process management device, the electronic equipment and the storage medium, the current memory state information and the current system state record of the target equipment are obtained firstly; then acquiring a user operation instruction input by a target user, and determining target scene information based on the user operation instruction; the target scene information represents scene information of a process to be entered; then, based on the target scene information and/or the current memory state information, determining a target process management mode; the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode; and finally, based on the current memory state information and the current system state record, executing corresponding process management operation on the target equipment by using a target process management mode. By the method, an Android process management mechanism can be separated, rich target process management modes are provided based on target scene information or current memory state information, process management of target equipment can be achieved, and 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 application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram illustrating a method of process management in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating one manner of timing cleanup according to an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method for determining a manner in which a process is started and a manner in which the start is restricted in accordance with an illustrative embodiment;
fig. 4 is a block diagram illustrating a configuration of a process management apparatus according to an example embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail below. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.
In consideration of the technical problems that the overall performance of the system is easily reduced, the system is blocked, the system runs slowly and the like due to the fact that the existing Android process management mechanism exists, and user experience is reduced, the application provides a process management method, a device, electronic equipment and a storage medium, the Android process management mechanism can be separated from the scene information of the process to be entered, abundant target process management modes are provided, process management of the target equipment is achieved, user experience is improved, and the application is introduced in detail in the following for convenience of understanding.
Referring first to the flowchart of a process management method shown in fig. 1, the method mainly includes the following steps S102 to S108:
step S102, obtaining the current memory state information and the current system state record of the target device. The target device may refer to an electronic device such as a mobile phone. The current memory state information includes current memory remaining information and current memory used information. The current memory remaining information is used for reflecting the current remaining memory of the target device, and the current memory used information is used for reflecting the current used memory of the target device. As shown in Table 1, the current system state record includes, but is not limited to, information that is displayed before the point, being navigated, etc. Table 1 sets 10 levels, and the process level decreases in order from 1 to 10, and the less the remaining memory, the higher the level of the process cleaning method that can be adopted in the following step S106.
TABLE 1 status record types
Figure BDA0002784830520000041
Figure BDA0002784830520000051
It should be noted that the system status is recorded, and the status information to be recorded is not limited to table 1. The state record records are the state records of the respective applications, such as: (1) and judging whether special scenes such as game playing, movie watching and the like are triggered according to the application currently used. The special scene can customize specific applications or system increase judgment according to project requirements. The application and positioning such as the royal glory and the stimulation battlefield are games; or the system checks the audio and video playing and positions the audio and video playing as the scenes of music and movies; or checking that the high-grade map is navigating and positioning as a map scene. The non-special scene corresponding to the special scene means that the project does not specify the scene needing special processing, for example, the project does not define the fancy art needing special processing, and does not enter the special scene and only records as the current display. (2) The applications associated with the application functions currently in use are recorded, such as the corresponding binding of services, waiting for a result to return, etc. (3) Record applications that are in a particular scene in table 1, such as using GPS navigation, playing music, etc. (4) Recording the last time of use of each application, and counting the use time and the use frequency of each application in which scene and time period. And generating a corresponding configuration strategy allowing starting or early starting according to the statistical result. And recording, analyzing and counting for multiple times to obtain the use habits of the target user. For example, from 18 o 'clock to 19 o' clock on a weekday, the target user may watch the jittering tone on the off-duty road, the policy may be updated after multiple statistics, and the jittering tone may be added to an application list that may be started. (5) According to the four large components of the Android, namely Activity, Service, broadcast and provider, the application to be started can be determined, whether the system is in a special scene or not is further judged, a specified process management strategy is obtained, and the process management strategy triggering the special scene, such as cleaning of the special scene, is faithfully recorded. The designated process management strategy, namely the special scene, can be set by self according to project requirements. If the last cleaning before 18 o' clock, no tremble course is detected, trigger early start.
And step S104, acquiring a user operation instruction input by a target user, and determining target scene information based on the user operation instruction. Wherein the target scene information represents scene information of a process to be entered.
And step S106, determining a target process management mode based on the target scene information and/or the current memory state information. The target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and a start-in-advance mode.
And step S108, based on the current memory state information and the current system state record, executing corresponding process management operation on the target equipment by using a target process management mode.
The executing of the corresponding process management operation may refer to cleaning a background process on the target device, or may refer to starting, starting limitation, and starting in advance of a process to be entered. The method is independent of an Android native process priority mechanism, and can be separated from the Android process management mechanism, provide rich target process management modes based on target scene information or current memory state information, achieve process management of target equipment and further improve user experience.
The process cleaning modes in the present application are of various types, including but not limited to an on-demand cleaning mode, a limit cleaning mode and a timing cleaning mode, and the different types of process cleaning modes are different in grade. The following detailed description is made of the determination of the three types of process cleaning modes, respectively.
When a target user starts an application requiring higher performance, such as a royal glory game, a camera for taking a picture, and the like, in order to ensure that sufficient memory and CPU resources are used, an on-demand cleaning mode can be triggered. In an optional embodiment, the process cleaning manner includes an on-demand cleaning manner, and if the target process management manner is the on-demand cleaning manner, the step S106 includes the following steps S11 to S13: step 11, determining required memory information of a process to be entered based on the target scene information; step 12, judging whether the required memory information is larger than the current memory residual information in the current memory state information; and step 13, if yes, determining that the target process management mode is an on-demand cleaning mode. Therefore, when the user enters a self-defined special scene, if the user plays games, the user can clean the game with great strength.
When the current residual memory is lower than the preset threshold value, a target process management mode with high strength and high grade can be triggered and started once. In an optional embodiment, the process cleaning manner includes a limit cleaning manner, and if the target process management manner is the limit cleaning manner, the step S106 further includes the following steps S21 to S22: step S21, determining whether the current memory remaining information in the current memory state information is smaller than a preset threshold; and step S22, if yes, determining that the target process management mode is the limit cleaning mode. In short, when the current memory is in a large amount, more background processes can be reserved, and less background processes are cleaned, otherwise, more background processes are cleaned.
In an optional embodiment, the process cleaning manner includes a timing cleaning manner, and if the target process management manner is the timing cleaning manner, the step S106 further includes the following steps S31 to S32: step S31, determining whether the target device is in a standby state based on the target scene information; and step S32, if not, determining that the target process management mode is a timing cleaning mode.
In the prior art, the APK process has high priority, so that the APK process is performed in the background for a long time. The process running in the background may occupy CPU resources and memory resources. In order to solve the problem, the method and the device can effectively overcome the defect that the process occupies CPU resources and memory resources in a timing cleaning mode. As long as the system (i.e. the target device) is in a non-standby state, the current memory state information and the current system state record can be checked regularly to perform management and control. When the target device is in a standby state for a long time, it means that the target user does not use the target device for a relatively long time, and at this time, background applications (i.e. processes) should be cleaned up relatively strictly.
The main purposes of process cleaning are to realize memory recovery, reduce the running of background processes and reduce system load. The overall decision logic is according to fig. 2. In different use scenes, the residual memory threshold values required by memory cleaning are different, and the types of processes to be cleaned are also different, so that the functions mainly used by a target user can be smoothly used. For example, (1) when the screen is on, because the target user continues to use the target device, the system memory can be checked at regular time, and whether cleaning needs to be executed or not is judged according to the remaining system memory and the currently recorded state scene. If it needs to be executed, the processing is performed according to the flow in fig. 2. If the current remaining memory is sufficient, then no clean up needs to be performed. (2) When going out the screen, target equipment is in the state of going out the screen, explains that the target user is not using, can formulate the clearance strategy of different degrees according to the length of the time of going out the screen, and the dynamics of clearance is more tenacious the longer the time. Two points need to be noted, the first point is: the user-perceptible application is retained. The user-perceivable application is: mainly means that the target user is using, e.g. seeing, hearing, turning off a process that affects the start-up function, e.g. playing music, currently being displayed, navigating. And an application that is not perceptible to the user indicates that the user has finished using, exiting or hanging an application for a period of background. Such as: and the target user watches the video, and has a period of Tencent video after finishing the quitting. The second point is that: and reserving different quantities of applications used finally according to different screen-off durations. In general, after the screen-off duration reaches the corresponding condition, all applications which do not directly affect the perception of the user and can be cleaned are cleaned, so that the system is recovered to the optimal state. (3) The method comprises the following steps of cleaning in a special scene (namely cleaning on demand), wherein the special scene can be actively triggered to clean according to the entrance and exit of different scenes, and the purpose is to ensure that the system runs smoothly in the corresponding scene. The cleaning force is different according to the requirements in different scenes. For example, when battle games are played, the corresponding APK needs the CPU with the highest priority to use, and the CPU load needing to be distributed is sufficient, so that great process cleaning can be performed, the memory is recycled, and the CPU is released.
According to the multiple process cleaning modes, the corresponding process management and control strategy can be executed according to the scene requirements. For example: 1. the current scene is that the screen is turned off and standby is carried out for 10 minutes, and the target user can clear up processes as much as possible after the target user does not use the screen for a long time. 2. When starting applications with consumed performance, such as photographing, large games and the like, a target user can provide more memories and higher CPU resources for ensuring smooth operation of the applications. Therefore, different levels of process cleaning modes can be executed under different scenes. The scenario refers to the current use of the target device, such as a mobile phone.
In an optional embodiment, the step S106 further includes the following steps S41 to S43: step S41, judging whether the target scene information meets the preset starting condition; step S42, if yes, determining that the target process management mode is a process starting mode; and step S43, if not, determining that the target process management mode is the start limiting mode. In the present application, the preset starting condition includes at least one of: the process to be entered is started by a user actively, the process to be entered is associated with the function of the currently running process, and the process to be entered belongs to a white list process. The restricted boot mode does not allow unwanted APK processes to boot.
In an optional embodiment, if the target process management mode is the early start mode, the step S106 further includes the following steps S51 to S54: step S51, acquiring the historical system state record of the target device; step S52, counting the regular information of all known processes based on the historical system state record; the rule information is used for reflecting the habit of a target user entering a known process; step S53, judging whether the target scene information accords with the rule information of the process to be entered; and step S54, if yes, determining that the target process management mode is an early starting mode. That is, when a special scene is reached, the APK process can be started in advance, so that experiences such as starting speed are provided.
Referring to fig. 2, a flow chart of a timed cleaning method includes the following steps: step S1, acquiring the current memory state; step 2, judging whether processing is needed; if not, ending; step S3, if yes, acquiring the current process; step S4, acquiring the scene cleaning process, and step S5, executing cleaning.
Before the current memory state is obtained, timing check and special scene triggering can be carried out. The timing detection is carried out on the current memory use condition, and after the timing detection, the current state scene can be combined to determine which background processes can be cleaned, and reasonable cleaning with different cleaning force is executed. The special scenes are self-defined by projects and need special processing. Such as starting a particular application, off-screen standby, taking a picture, etc. When the experience of the project needs to be enhanced, cleaning can be actively started, and corresponding cleaning is carried out according to parameters of scene configuration. Generally, the applications currently being displayed, and the associated applications associated therewith, do not need to be cleaned up, which is a scenario that is specifically considered to be clean-up-free.
Referring to the flowchart of fig. 3, the method for determining the starting mode and the limited starting mode of the process includes the following steps:
step S301, starting an application (namely starting a process to be entered);
step S302, judging whether the application is actively started by the user, if so, executing step S308, otherwise, executing step S303;
step S303, judging whether the key is necessary to be applied, if so, executing step S308, otherwise, executing step S304;
step S304, judging whether the process is started, if so, executing step S308, otherwise, executing step S305;
step S305, judging whether the current process has function association, if so, executing step S308, otherwise, executing step S306;
step S306, judging whether the application is a white list application, if so, executing step S308, otherwise, executing step S307;
step S307, judging whether the application is on the blacklist, if so, executing step S310, and if not, executing step S309;
step S308, cleaning is executed;
step S309, processing according to different components;
in step S310, the application is restricted from being started.
In the application starting process, the limited starting of the application which is not needed in the current scene may be performed, and the overall judgment logic may be analyzed according to fig. 3 in the following cases: (1) the blacklist recording components (Activity, Service, etc.) are started, directly limited. (2) And (4) starting the Activity of the application, judging whether the application is allowed to be started or not according to the current use scene, the starter and the process, and directly starting the application if the application is allowed to be started. If not, the system is recorded as management starting, and prompts the user and inquires whether the starting is allowed or not. (3) And if the service starting of the application does not meet various permission conditions of the figure 3, the starting is limited. (4) The application is started by broadcasting, and if various permission conditions of fig. 3 are not satisfied, the start is restricted. (5) The application is started through Recovery, and if various permission conditions of FIG. 3 are not met, the starting is limited.
In summary, the invention points of the embodiment of the invention are as follows: the management of the system process can be realized through the state record, the system CPU state and the memory state based on the use scene of the user, and the method is a management scheme for starting, cleaning and limiting the process by combining the use scene and separating from an Android process management mechanism. The two functions of limiting starting and cleaning the process belong to process management limitation, if only cleaning is not used for limiting starting, the application is started after cleaning, and the defect that the cleaning effect is reduced is easily caused, so that the two functions are combined for use to achieve a better process management effect. The embodiment of the invention realizes a process management mechanism based on the use scene of the user, and the process management mechanism comprises the strategies of process cleaning, start limiting, early start and the like, thereby improving the system performance and the user experience.
Corresponding to the foregoing process management method, the present application further provides a process management apparatus, referring to a block diagram of a process management apparatus shown in fig. 4, which mainly includes the following modules:
an obtaining unit 402, configured to obtain current memory state information and a current system state record of a target device;
an acquisition determining unit 404, configured to acquire a user operation instruction input by a target user, and determine target scene information based on the user operation instruction; the target scene information represents scene information of a process to be entered;
a determining unit 406, configured to determine a target process management manner based on the target scene information and/or the current memory state information; the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode;
and a process management unit 408, configured to perform, based on the current memory state information and the current system state record, a corresponding process management operation on the target device in a target process management manner.
By the device, an Android process management mechanism can be separated, rich target process management modes are provided based on target scene information or current memory state information, process management of target equipment can be achieved, and user experience is improved.
In a specific embodiment, the process cleaning manner includes an on-demand cleaning manner, and if the target process management manner is the on-demand cleaning manner, the determining unit is further configured to: determining required memory information of a process to be entered based on the target scene information; judging whether the required memory information is larger than the current memory residual information in the current memory state information; and if so, determining that the target process management mode is an on-demand cleaning mode.
In a specific embodiment, the process cleaning manner includes a limit cleaning manner, and if the target process management manner is the limit cleaning manner, the determining unit is further configured to: judging whether the current memory residual information in the current memory state information is smaller than a preset threshold value or not; and if so, determining that the target process management mode is the limit cleaning mode.
In a specific embodiment, the process cleaning manner includes a timing cleaning manner, and if the target process management manner is the timing cleaning manner, the determining unit is further configured to: judging whether the target equipment is in a standby state or not based on the target scene information; if not, determining that the target process management mode is a timing cleaning mode.
In a specific embodiment, the determining unit is further configured to: judging whether the target scene information meets a preset starting condition or not; if so, determining that the target process management mode is a process starting mode; if not, determining that the target process management mode is a limited starting mode.
In a specific embodiment, if the target process management mode is an early start mode, the determining unit is further configured to: acquiring a historical system state record of target equipment; counting rule information of all known processes based on historical system state records; the rule information is used for reflecting the habit of a target user entering a known process; judging whether the target scene information conforms to the rule information of the process to be entered; and if so, determining that the target process management mode is an early starting mode.
In a specific embodiment, the preset starting condition comprises at least one of the following: the process to be entered is started by a user actively, the process to be entered is associated with the function of the currently running process, and the process to be entered belongs to a white list process.
Further, the present embodiment also provides an electronic device, including: a processor and a storage device; wherein the storage device has stored thereon a computer program which, when executed by the processor, performs the process management method described above.
Further, the present embodiment also provides a storage medium, where a computer program is stored on the storage medium, and the computer program is executed by a processor to perform the process management method.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, the meaning of "plurality" means at least two unless otherwise specified.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present; when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present, and further, as used herein, connected may include wirelessly connected; the term "and/or" is used to include any and all combinations of one or more of the associated listed items.
Any process or method descriptions in flow charts or otherwise described herein may be understood as: represents modules, segments or portions of code which include one or more executable instructions for implementing specific logical functions or steps of a process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A process management method, comprising:
acquiring current memory state information and a current system state record of target equipment;
acquiring a user operation instruction input by a target user, and determining target scene information based on the user operation instruction; the target scene information represents scene information of a process to be entered;
determining a target process management mode based on the target scene information and/or the current memory state information; wherein the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode;
and executing corresponding process management operation on the target equipment by using a target process management mode based on the current memory state information and the current system state record.
2. The method according to claim 1, wherein the process cleaning manner comprises an on-demand cleaning manner, and if the target process management manner is the on-demand cleaning manner, the step of determining the target process management manner based on the target scene information and/or the current memory state information comprises:
determining the required memory information of the process to be entered based on the target scene information;
judging whether the required memory information is larger than the current memory residual information in the current memory state information;
and if so, determining that the target process management mode is the on-demand cleaning mode.
3. The method according to claim 2, wherein the process cleaning manner comprises a limit cleaning manner, and if the target process management manner is the limit cleaning manner, the step of determining the target process management manner based on the target scene information and/or the current memory state information includes:
judging whether the current memory residual information in the current memory state information is smaller than a preset threshold value or not;
and if so, determining that the target process management mode is the limit cleaning mode.
4. The method according to claim 1, wherein the process cleaning manner comprises a timing cleaning manner, and if the target process management manner is the timing cleaning manner, the step of determining the target process management manner based on the target scene information and/or the current memory state information comprises:
judging whether the target equipment is in a standby state or not based on the target scene information;
if not, determining that the target process management mode is a timing cleaning mode.
5. The method according to claim 1, wherein the step of determining a target process management manner based on the target scenario information and/or the current memory state information comprises:
judging whether the target scene information meets a preset starting condition or not;
if so, determining the target process management mode as the process starting mode;
if not, determining that the target process management mode is the limited starting mode.
6. The method according to claim 1, wherein if the target process management mode is the early start mode, the step of determining the target process management mode based on the target scene information and/or the current memory state information includes:
acquiring a historical system state record of the target equipment;
counting the regular information of all known processes based on the historical system state record; wherein the rule information is used for reflecting the habit of the target user entering the known process;
judging whether the target scene information conforms to the rule information of the process to be entered;
and if so, determining that the target process management mode is the early starting mode.
7. The method of claim 5, wherein the preset start-up condition comprises at least one of: the process to be entered is actively started by a user, the process to be entered is associated with the function of the currently running process, and the process to be entered belongs to a white list process.
8. A process management apparatus, comprising:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring current memory state information and a current system state record of target equipment;
the acquisition determining unit is used for acquiring a user operation instruction input by a target user and determining target scene information based on the user operation instruction; the target scene information represents scene information of a process to be entered;
the determining unit is used for determining a target process management mode based on the target scene information and/or the current memory state information; wherein the target process management mode comprises at least one of the following modes: a process starting mode, a process cleaning mode, a start limiting mode and an advance starting mode;
and the process management unit is used for executing corresponding process management operation on the target equipment by utilizing a target process management mode based on the current memory state information and the current system state record.
9. An electronic device, comprising: a processor and a storage device;
the storage device has stored thereon a computer program which, when executed by the processor, performs the method of any one of claims 1 to 7.
10. A storage medium having a computer program stored thereon, wherein the computer program is adapted to perform the steps of the method according to any of the claims 1 to 7 when executed by a processor.
CN202011294021.0A 2020-11-18 2020-11-18 Process management method and device, electronic equipment and storage medium Pending CN112416549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011294021.0A CN112416549A (en) 2020-11-18 2020-11-18 Process management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011294021.0A CN112416549A (en) 2020-11-18 2020-11-18 Process management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112416549A true CN112416549A (en) 2021-02-26

Family

ID=74774754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011294021.0A Pending CN112416549A (en) 2020-11-18 2020-11-18 Process management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112416549A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111279A (en) * 2021-05-12 2021-07-13 广东九联科技股份有限公司 Set top box access data statistical method and access data strategy customization method
CN113985999A (en) * 2021-10-27 2022-01-28 展讯通信(天津)有限公司 Device management method, device, electronic device and storage medium
WO2022057863A1 (en) * 2020-09-21 2022-03-24 华为技术有限公司 Process control method and apparatus
CN114489841A (en) * 2022-01-14 2022-05-13 湖南小算科技信息有限公司 Method for rapidly detecting ghost process limitation of android system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335099A (en) * 2015-09-25 2016-02-17 深圳市金立通信设备有限公司 Memory cleaning method and terminal
CN111078406A (en) * 2019-12-10 2020-04-28 Oppo(重庆)智能科技有限公司 Memory management method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335099A (en) * 2015-09-25 2016-02-17 深圳市金立通信设备有限公司 Memory cleaning method and terminal
CN111078406A (en) * 2019-12-10 2020-04-28 Oppo(重庆)智能科技有限公司 Memory management method and device, storage medium and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022057863A1 (en) * 2020-09-21 2022-03-24 华为技术有限公司 Process control method and apparatus
CN113111279A (en) * 2021-05-12 2021-07-13 广东九联科技股份有限公司 Set top box access data statistical method and access data strategy customization method
CN113985999A (en) * 2021-10-27 2022-01-28 展讯通信(天津)有限公司 Device management method, device, electronic device and storage medium
CN114489841A (en) * 2022-01-14 2022-05-13 湖南小算科技信息有限公司 Method for rapidly detecting ghost process limitation of android system
CN114489841B (en) * 2022-01-14 2023-07-25 湖南小算科技信息有限公司 Method for rapidly detecting ghost process limitation of android system

Similar Documents

Publication Publication Date Title
CN112416549A (en) Process management method and device, electronic equipment and storage medium
CN110062271B (en) Scene switching method, device, terminal and storage medium
CN110795056B (en) Method, device, terminal and storage medium for adjusting display parameters
JP5086189B2 (en) Server, method and program for generating digest video of video content
CN110557670A (en) Method, device, terminal and storage medium for playing video in webpage
CN101346162B (en) Game machine, and game machine control method
US9002182B2 (en) Storage medium storing program management information, and reproducing method and apparatus
CN108513171B (en) Terminal content control method, device and equipment and readable storage medium
KR20120037411A (en) Method for selecting versions of a document from a plurality of versions received after a search, and related receiver
CN115562744B (en) Application program loading method and electronic device
CN115220912A (en) Method and device for configuring system resources, electronic equipment and storage medium
CN103918275A (en) Method for operating a data receiver and data receiver, in particular in a vehicle
CN108882015B (en) Method and device for adjusting playing speed of recall video, electronic equipment and storage medium
CN110837420A (en) Resource scheduling method, device, terminal and storage medium
CN113439435A (en) Video playing method and device, storage medium and electronic equipment
CN112203108A (en) Method and equipment for identifying and switching to live video stream according to short video stream
CN109213534A (en) A kind of method and device of extension live streaming software function
CN114885209B (en) Live broadcast data processing method, computing device and readable storage medium
CN114257831B (en) Access management system and method for multipath virtual video source
CN109348280A (en) Network TV program switching method, smart television and computer readable storage medium
CN110971943A (en) Video code rate adjusting method, device, terminal and storage medium
CN115243066A (en) Information pushing method and device, electronic equipment and computer readable medium
CN115412736A (en) Multi-channel video playing control method and device, electronic equipment and storage medium
CN113923485A (en) Method and device for adjusting code rate and computer readable storage medium
CN113727125A (en) Live broadcast room screenshot method, device, system, medium and computer 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