CN107220093B - Process processing method and device - Google Patents

Process processing method and device Download PDF

Info

Publication number
CN107220093B
CN107220093B CN201710468556.7A CN201710468556A CN107220093B CN 107220093 B CN107220093 B CN 107220093B CN 201710468556 A CN201710468556 A CN 201710468556A CN 107220093 B CN107220093 B CN 107220093B
Authority
CN
China
Prior art keywords
running process
background running
current switch
switch state
state
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.)
Active
Application number
CN201710468556.7A
Other languages
Chinese (zh)
Other versions
CN107220093A (en
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710468556.7A priority Critical patent/CN107220093B/en
Publication of CN107220093A publication Critical patent/CN107220093A/en
Application granted granted Critical
Publication of CN107220093B publication Critical patent/CN107220093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a process processing method, which comprises the following steps: detecting a current on-off state of an auxiliary function of the electronic device after obtaining an acceleration instruction for the electronic device; and according to the current switch state, performing accelerated processing on the background running process of the scanned electronic equipment by adopting an accelerated processing mode corresponding to the current switch state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different requirements of users can be met.

Description

Process processing method and device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a process processing method and apparatus.
Background
With the development of electronic technology, more and more APPs (applications) are installed in electronic equipment, and all APPs used by a user run in the background, and the running of the electronic equipment is too much, which causes slow running speed of the electronic equipment and poor user experience.
At present, the problem of slow running speed of the electronic device can be solved by performing corresponding processing on a background running process of the electronic device, and such processing may be referred to as accelerated processing. The existing acceleration processing mainly has two modes, wherein one mode is to perform cache cleaning on the electronic device, that is, after an acceleration instruction of a user is obtained, a running process of the electronic device is scanned, and then cache data of the running process of a background is cleared, so that the running speed of the electronic device is improved. And the other method is that after scanning, the background running process is subjected to packet stopping treatment, namely the background running process is closed, so that the running speed of the electronic equipment is increased.
The conventional electronic equipment is set to be one of the two modes, so that the flexibility of acceleration processing is low, and different requirements of users cannot be met.
Disclosure of Invention
The embodiment of the invention aims to provide a process processing method and a process processing device, so as to improve the running speed of a mobile terminal, improve the flexibility of processing and meet different accelerated processing requirements of users. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a process processing method, where the method includes:
detecting a current switch state of an auxiliary function of an electronic device after obtaining an acceleration instruction for the electronic device;
and according to the current switch state, performing accelerated processing on the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state.
Optionally, the current switch state includes an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is the on state, closing the scanned background running process of the electronic equipment;
and when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment.
Optionally, the current switch state includes an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing a first preset process of the scanned electronic equipment, and clearing cache data of a second preset process of the scanned electronic equipment, wherein the first preset process is a background running process which is not in a preset white list, and the second preset process is a background running process in the preset white list;
and when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment.
Optionally, the current switch state includes an on state and an off state;
before the step of performing the acceleration processing on the background running process of the scanned electronic device by adopting the acceleration processing mode corresponding to the current switch state according to the current switch state, the method comprises the following steps:
outputting the scanned background running process information of the electronic equipment;
acquiring a cleaning instruction sent by a user based on the background running process information, wherein the cleaning instruction carries a background running process identifier selected by the user;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing the background running process corresponding to the background running process identifier carried by the cleaning instruction, and clearing cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction;
and when the current switch state is the closing state, removing the cache data of the background running process corresponding to the background running process identification carried by the cleaning instruction.
Optionally, the method further includes:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
In a second aspect, an embodiment of the present invention provides a process processing apparatus, where the apparatus includes:
the auxiliary function detection module is used for detecting the current switch state of an auxiliary function of the electronic equipment after an acceleration instruction for the electronic equipment is obtained;
and the accelerated processing selection module is used for accelerating the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state.
Optionally, the current switch state includes an on state and an off state;
the accelerated processing selection module comprises:
the first closing unit is used for closing the scanned background running process of the electronic equipment when the current switch state is the opening state;
and the first clearing unit is used for clearing the scanned cache data of the background running process of the electronic equipment when the current switch state is the closing state.
Optionally, the current switch state includes an on state and an off state;
the accelerated processing selection module comprises:
a second closing unit, configured to close a scanned first preset process of the electronic device and clear cache data of a scanned second preset process of the electronic device when the current switch state is an on state, where the first preset process is a background running process that is not in a preset white list, and the second preset process is a background running process that is in the preset white list;
and the second clearing unit is used for clearing the scanned cache data of the background running process of the electronic equipment when the current switch state is the closing state.
Optionally, the current switch state includes an on state and an off state;
the device further comprises:
the process information output module is used for outputting the scanned background running process information of the electronic equipment before the step of performing accelerated processing on the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state;
a cleaning instruction obtaining module, configured to obtain a cleaning instruction sent by a user based on the background running process information, where the cleaning instruction carries a background running process identifier selected by the user;
the accelerated processing selection module comprises:
a third closing unit, configured to close the background running process corresponding to the background running process identifier carried by the cleaning instruction and clear the cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction when the current switch state is the on state;
and the third clearing unit is used for clearing the cache data of the background running process corresponding to the background running process identification carried by the clearing instruction when the current switch state is the closed state.
Optionally, the apparatus further comprises:
and the result information output module is used for outputting the acceleration processing result information so as to prompt the user that the acceleration processing is finished.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the method when executing the program stored in the memory.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned method steps.
According to the process processing method and device provided by the embodiment of the invention, after the acceleration instruction for the electronic equipment is obtained, the current switch state of the auxiliary function of the electronic equipment is detected, and then the acceleration processing is performed on the scanned background running process of the electronic equipment by adopting the acceleration processing mode corresponding to the current switch state according to the current switch state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart of a process handling method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a process handling method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a process handling method according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a process handling method according to an embodiment of the present invention;
fig. 5 is a first structural diagram of a process processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a second structure of a process processing apparatus according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a third structure of a process handling apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a fourth structure of a process processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to improve flexibility of acceleration processing and meet different acceleration processing requirements of users, embodiments of the present invention provide a process processing method and apparatus, an electronic device, and a computer storage medium.
It should be noted that the process processing method provided in the embodiment of the present invention may be applied to any electronic device with an auxiliary function, which is hereinafter referred to as an electronic device for short, for example, a mobile phone, a tablet computer, a smart watch, and the like, and is not limited herein.
First, a first processing flow of the process processing method according to the embodiment of the present invention is described below.
As shown in fig. 1, a process processing method includes:
s101, after an acceleration instruction for the electronic equipment is obtained, detecting the current on-off state of an auxiliary function of the electronic equipment;
and S102, according to the current switch state, performing acceleration processing on the scanned background running process of the electronic equipment by adopting an acceleration processing mode corresponding to the current switch state.
As can be seen, in the solution provided in the embodiment of the present invention, after the electronic device obtains the acceleration instruction for the electronic device, the current on-off state of the auxiliary function of the electronic device is detected, and then the acceleration processing is performed on the background running process of the scanned electronic device by using the acceleration processing mode corresponding to the current on-off state according to the current on-off state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
Specifically, after the electronic device is used for a period of time, the APPs used by the user during the period of time all run in the background of the electronic device, and the running speed of the electronic device is slow due to excessive running processes of the electronic device, for ensuring the running speed of the electronic device, in step S101, in an implementation manner, the electronic device may provide an acceleration instruction entry, such as an acceleration button, and then, when the user needs to increase the running speed of the electronic device, an acceleration instruction may be issued through the acceleration instruction entry, and then the electronic device may obtain the acceleration instruction.
In another embodiment, the electronic device may obtain the acceleration instruction at a preset time, which may be set by the user, for example, every 1 hour, every 3 hours, 12 points per day, etc., which is reasonable. Then the electronic device will obtain the acceleration command when the preset time is reached. Of course, in some cases, the acceleration instruction may also be sent by the user through another electronic device that establishes a communication connection with the electronic device, and it is reasonable that the acceleration instruction is obtained when the electronic device receives the acceleration instruction.
After the electronic device obtains the acceleration command, the current on-off state of the auxiliary function of the electronic device can be detected. It should be noted that the auxiliary function is an enhanced function that can be set by a user in the electronic device to assist the user in operating. It will be appreciated that the switch states generally include an on state and an off state. When the auxiliary function is in an open state, the electronic device which indicates that the user has authorized can perform some auxiliary operations, such as simulating user click operation, closing running process, and the like. When the auxiliary function is in the closed state, the fact that the user does not authorize the electronic equipment to execute the auxiliary operation is indicated.
In step S102, after the electronic device detects the current on-off state of the auxiliary function, the scanned background running process of the electronic device may be accelerated by using an acceleration processing mode corresponding to the current on-off state according to the setting state of the auxiliary function by the user, that is, the on-off state of the auxiliary function, so as to increase the running speed of the electronic device according to different requirements of the user.
Specifically, it is reasonable that the electronic device may scan the background running process while detecting the current on-off state of the auxiliary function, or after obtaining the acceleration instruction, and of course, may scan the background running process in real time.
As an implementation manner of the embodiment of the present invention, the method may further include:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
After the acceleration processing is finished, the electronic device may output the acceleration processing result to prompt the user that the acceleration processing is finished. For example, it is reasonable that the electronic device displays a prompt message such as "end of acceleration processing" on the display screen, or prompts the user to end the acceleration processing in a voice broadcast manner.
A second processing flow of the process processing method provided in the embodiment of the present invention is described below.
As shown in fig. 2, a process processing method includes:
s201, obtaining an acceleration instruction for the electronic equipment;
for the specific implementation of obtaining the acceleration instruction, the above step S101 has been described in detail, and the relevant points may be referred to the above step S101.
S202, detecting the current switch state of the auxiliary function of the electronic equipment, executing the step S203 when the current switch state is an on state, and executing the step S204 when the current switch state is an off state;
wherein the current switch state comprises an on state and an off state. When the current switch state of the auxiliary function of the electronic device is the on state, which indicates that the user has authorized the electronic device to perform some auxiliary operations, step S203 may be performed at this time. When the current on-off state of the auxiliary function of the electronic device is the off state, which indicates that the user does not authorize the electronic device to perform the auxiliary operation, step S204 may be performed at this time.
S203, closing the scanned background running process of the electronic equipment;
when the current switch state of the auxiliary function of the electronic equipment is the on state, it indicates that the user has authorized the electronic equipment to execute some auxiliary operations, and then the electronic equipment can close the scanned background running process, so as to improve the running speed of the electronic equipment.
And S204, clearing the scanned cache data of the background running process of the electronic equipment.
When the current switch state of the auxiliary function of the electronic device is the off state, it indicates that the user does not authorize the electronic device to execute the auxiliary operation, and in order to increase the running speed of the electronic device without violating the setting of the user, the electronic device may clear the cache data of the scanned background running process at this time, so as to increase the running speed of the electronic device, instead of closing the scanned background running process.
It can be seen that in the scheme provided in the embodiment of the present invention, after the electronic device obtains the acceleration instruction for the electronic device, the current on-off state of the auxiliary function of the electronic device is detected, and then the acceleration processing is performed on the background running process of the scanned electronic device by using an acceleration processing manner of closing or clearing the cache data according to the current on-off state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
As an implementation manner of the embodiment of the present invention, the method may further include:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
After the acceleration processing is finished, the electronic device may output the acceleration processing result to prompt the user that the acceleration processing is finished. For example, if the acceleration processing mode adopted by the electronic device is to close the background running process, the electronic device may output the processing result information in a form of a display screen or voice broadcast, and the processing result information may be information such as a name of the closed background running process. If the accelerated processing mode adopted by the electronic device is to clear the cache data of the background running process, the electronic device may output the processing result information in the form of a display screen or voice broadcast, and the processing result information may be a specific numerical value of the cleared cache data, such as 500kB, 1000kB, 1GB, and the like, which is reasonable.
A third processing flow of the process processing method provided in the embodiment of the present invention is described below.
As shown in fig. 3, a process processing method includes:
s301, obtaining an acceleration instruction for the electronic equipment;
for the specific implementation of obtaining the acceleration instruction, the above step S101 has been described in detail, and the relevant points may be referred to the above step S101.
S302, detecting the current switch state of the auxiliary function of the electronic equipment, executing step S303 when the current switch state is an on state, and executing step 304 when the current switch state is an off state;
wherein the current switch state comprises an on state and an off state. When the current switch state of the auxiliary function of the electronic device is the on state, which indicates that the user has authorized the electronic device to perform some auxiliary operations, step S303 may be performed at this time. When the current switch state of the auxiliary function of the electronic device is the off state, which indicates that the user does not authorize the electronic device to perform the auxiliary operation, step S304 may be performed at this time.
S303, closing the scanned first preset process of the electronic equipment, and clearing cache data of the scanned second preset process of the electronic equipment;
in some cases, some processes, while running in the background of the electronic device, are likely to be enabled by the user at any time, such as some chat application processes. At this time, even if the user sets the auxiliary function of the electronic device to be in the on state, generally, the user does not want the processes to be closed, so that the processes are enabled at any time for the convenience of the user, and the situation that when the user wants to enable a process, the process is already closed, and the user experience is affected is avoided. When detecting that the current switch state of the auxiliary function is the on state, the electronic device may close the scanned first preset process and clear the cache data of the scanned second preset process.
The first preset process is a background running process which is not in the preset white list, and the second preset process is a background running process in the preset white list. It should be noted that, in an embodiment, the preset white list may be a white list set by a user and stored in the electronic device, a background running process in the preset white list is obviously a process that the user does not want to close, and a background running process that is not in the preset white list is a process that can be closed.
In another embodiment, the preset white list may be obtained by analyzing big data, obtained in advance by the electronic device, of the usage behavior of each user with respect to each application program, so that it is obvious that most users do not want to close the background running process in the preset white list, and it can be reasonably inferred that the user of the electronic device does not want to close the background running process in the preset white list, and the background running process that is not in the preset white list is a process that can be closed.
S304, clearing the scanned cache data of the background running process of the electronic equipment.
When the current switch state of the auxiliary function of the electronic equipment is the off state, the fact that the user does not authorize the electronic equipment to perform auxiliary operation is indicated, and then the operation speed of the electronic equipment is increased without violating the setting of the user. Then, the electronic device may clear the cache data of the scanned background running process at this time, so as to improve the running speed of the electronic device.
Therefore, in the scheme provided by the embodiment of the invention, when the electronic equipment performs acceleration processing, different acceleration processing modes are adopted for the background running process according to the current switch state of the auxiliary function and the preset white list instead of the preset acceleration processing mode, so that the flexibility of acceleration processing is higher, the processes in the white list can be started by a user at any time, and the user experience is better.
As an implementation manner of the embodiment of the present invention, the method may further include:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
After the acceleration processing is finished, the electronic device may output the acceleration processing result to prompt the user that the acceleration processing is finished. For example, the electronic device may output the processing result information in a form of a display screen or voice broadcast, so as to prompt the user to speed up the end of the processing. The processing result information may be information such as a name of the closed background running process and a specific numerical value of the cleared cache data, for example, 500kB, 1000kB, 1GB, and the like, which is not specifically limited herein.
A fourth processing flow of the process processing method provided in the embodiment of the present invention is described below.
As shown in fig. 4, a process processing method includes:
s401, obtaining an acceleration instruction for the electronic equipment;
for the specific implementation of obtaining the acceleration instruction, the above step S101 has been described in detail, and the relevant points may be referred to the above step S101.
S402, outputting the scanned background running process information of the electronic equipment;
in order to further improve user experience, the electronic device may output the scanned background running process information of the electronic device, where the background running process information may include information such as a name and an occupied memory, which is not specifically limited herein, and may further include a user selection entry provided by the electronic device corresponding to each background running process, so that a user selects a background running process that the user wants to process.
For example, the electronic device may display information such as names of the background running processes and occupied memory through a display screen, and display a selection frame corresponding to each background running process for selection by a user.
S403, acquiring a cleaning instruction sent by a user based on the background running process information;
after the electronic device outputs the background running process information, the user can select the background running process to be processed, and then the electronic device obtains the cleaning instruction sent by the user. The cleaning instruction carries a background running process identifier selected by a user, wherein the background running process identifier can be any identifier uniquely corresponding to the background running process, and is not specifically limited herein.
S404, detecting the current switch state of the auxiliary function of the electronic equipment, executing the step S405 when the current switch state is an on state, and executing the step 406 when the current switch state is an off state;
wherein the current switch state comprises an on state and an off state. When the current switch state of the auxiliary function of the electronic device is the on state, which indicates that the user has authorized the electronic device to perform some auxiliary operations, step S405 may be performed at this time. When the current switch state of the auxiliary function of the electronic device is the off state, which indicates that the user does not authorize the electronic device to perform the auxiliary operation, step S406 may be performed at this time.
S405, closing the background running process corresponding to the background running process identifier carried by the cleaning instruction, and clearing cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction;
when the current on-off state of the auxiliary function is the on state, the electronic device can accelerate the background running process according to a cleaning instruction sent by a user, and specifically, the electronic device can close the background running process corresponding to the background running process identifier carried by the cleaning instruction. Furthermore, since the user has authorized the electronic device to perform the auxiliary operation, in order to further increase the operating speed of the electronic device, the electronic device may simultaneously clear the cache data of other background running processes, that is, the cache data of the background running process corresponding to the background running process identifier not carried by the clear instruction, so that the operating speed of the electronic device may be increased to the maximum extent on the premise of satisfying the user requirements.
S406, the cache data of the background running process corresponding to the background running process identification carried by the cleaning instruction is cleared.
When the current on-off state of the auxiliary function is the off state, the electronic device cannot close the background running process because the user does not authorize the electronic device to perform auxiliary operation, and meanwhile, the background running process selected by the user is a processable process, so that the electronic device can clear cache data of the background running process corresponding to the background running process identifier carried by the cleaning instruction, so as to ensure that the running speed of the electronic device is improved as much as possible on the premise of meeting the user requirements.
Therefore, in the scheme provided by the embodiment of the invention, when the electronic equipment performs acceleration processing, the information of the background running process is output, and different acceleration processing modes are adopted for the background running process according to the current switch state of the auxiliary function and the cleaning instruction sent by the user instead of the preset acceleration processing mode, so that the flexibility of the acceleration processing is higher, the processing requirement of the user on the background running process is met, and the user experience is better.
It should be noted that, the step of detecting the current switch state of the auxiliary function of the electronic device may be performed at any time after step S401, that is, may be performed simultaneously with step S402, may be performed simultaneously with step S403, may be performed before step S402, may be performed after step S402 and before step S403, which is reasonable, and the embodiment of the present invention is not limited specifically herein.
As an implementation manner of the embodiment of the present invention, the method may further include:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
After the acceleration processing is finished, the electronic device may output the acceleration processing result to prompt the user that the acceleration processing is finished. For example, the electronic device may output the processing result information in a form of a display screen or voice broadcast, so as to prompt the user to speed up the end of the processing. The processing result information may be information such as a name of the closed background running process and a specific numerical value of the cleared cache data, for example, 500kB, 1000kB, 1GB, and the like, which is not specifically limited herein.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a process processing apparatus, and a first structure of the process processing apparatus provided in the embodiment of the present invention is described below.
As shown in fig. 5, a process processing apparatus includes:
an auxiliary function detection module 510, configured to detect a current on-off state of an auxiliary function of the electronic device after obtaining an acceleration instruction for the electronic device;
and an accelerated processing selection module 520, configured to perform accelerated processing on the scanned background running process of the electronic device in an accelerated processing manner corresponding to the current switch state according to the current switch state.
As can be seen, in the solution provided in the embodiment of the present invention, after the electronic device obtains the acceleration instruction for the electronic device, the current on-off state of the auxiliary function of the electronic device is detected, and then the acceleration processing is performed on the background running process of the scanned electronic device by using the acceleration processing mode corresponding to the current on-off state according to the current on-off state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
and a result information output module (not shown in fig. 5) for outputting acceleration processing result information to prompt the user that the acceleration processing is finished.
A second structure of the process processing apparatus according to the embodiment of the present invention is described below.
As shown in fig. 6, a process processing apparatus includes:
an auxiliary function detection module 610, configured to detect a current on-off state of an auxiliary function of the electronic device after obtaining an acceleration instruction for the electronic device;
wherein the current switch state comprises an on state and an off state.
The accelerated process selection module 620 includes:
a first closing unit 6201, configured to close the scanned background running process of the electronic device when the current switch state is an on state;
a first clearing unit 6202, configured to clear the scanned cache data of the background running process of the electronic device when the current switch state is an off state.
It can be seen that in the scheme provided in the embodiment of the present invention, after the electronic device obtains the acceleration instruction for the electronic device, the current on-off state of the auxiliary function of the electronic device is detected, and then the acceleration processing is performed on the background running process of the scanned electronic device by using an acceleration processing manner of closing or clearing the cache data according to the current on-off state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
and a result information output module (not shown in fig. 6) for outputting acceleration processing result information to prompt the user that the acceleration processing is finished.
A third structure of the process processing apparatus according to the embodiment of the present invention is described below.
As shown in fig. 7, a process processing apparatus includes:
an auxiliary function detection module 710, configured to detect a current on-off state of an auxiliary function of the electronic device after obtaining an acceleration instruction for the electronic device;
wherein the current switch state comprises an on state and an off state.
The accelerated process selection module 720 includes:
a second closing unit 7201 for closing the scanned first preset process of the electronic device and clearing the cache data of the scanned second preset process of the electronic device when the current switch state is the on state;
the first preset process is a background running process which is not in a preset white list, and the second preset process is a background running process in the preset white list;
the second clearing unit 7202 is configured to clear the scanned cache data of the background running process of the electronic device when the current switch state is the off state.
Therefore, in the scheme provided by the embodiment of the invention, when the electronic equipment performs acceleration processing, different acceleration processing modes are adopted for the background running process according to the current switch state of the auxiliary function and the preset white list instead of the preset acceleration processing mode, so that the flexibility of acceleration processing is higher, the processes in the white list can be started by a user at any time, and the user experience is better.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
and a result information output module (not shown in fig. 7) for outputting acceleration processing result information to prompt the user that the acceleration processing is finished.
A fourth structure of the process processing apparatus according to the embodiment of the present invention is described below.
As shown in fig. 8, a process processing apparatus includes:
an auxiliary function detecting module 810, configured to detect a current on-off state of an auxiliary function of the electronic device after obtaining an acceleration instruction for the electronic device;
wherein the current switch state comprises an on state and an off state.
A process information output module 820, configured to output the scanned background running process information of the electronic device;
a cleaning instruction obtaining module 830, configured to obtain a cleaning instruction sent by a user based on the background running process information;
the cleaning instruction carries a background running process identifier selected by a user.
The accelerated process selection module 840 includes:
a third closing unit 8401, configured to close the background running process corresponding to the background running process identifier carried in the cleaning instruction and clear the cache data of the background running process corresponding to the background running process identifier not carried in the cleaning instruction when the current switch state is the on state;
a third clearing unit 8402, configured to clear the cache data of the background running process corresponding to the background running process identifier carried in the cleaning instruction when the current switch state is the off state.
Therefore, in the scheme provided by the embodiment of the invention, when the electronic equipment performs acceleration processing, the information of the background running process is output, and different acceleration processing modes are adopted for the background running process according to the current switch state of the auxiliary function and the cleaning instruction sent by the user instead of the preset acceleration processing mode, so that the flexibility of the acceleration processing is higher, the processing requirement of the user on the background running process is met, and the user experience is better.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
and a result information output module (not shown in fig. 8) for outputting acceleration processing result information to prompt the user that the acceleration processing is finished.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, which includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the following steps when executing the program stored in the memory 903:
detecting a current switch state of an auxiliary function of an electronic device after obtaining an acceleration instruction for the electronic device;
and according to the current switch state, performing accelerated processing on the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state.
Therefore, in the scheme provided by the embodiment of the invention, after the electronic device obtains the acceleration instruction, the current switch state of the auxiliary function of the electronic device is detected, and then the acceleration processing is performed on the background running process of the scanned electronic device by adopting the acceleration processing mode corresponding to the current switch state according to the current switch state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Wherein the current switch state comprises an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is the on state, closing the scanned background running process of the electronic equipment;
and when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment.
Wherein the current switch state comprises an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing a first preset process of the scanned electronic equipment, and clearing cache data of a second preset process of the scanned electronic equipment, wherein the first preset process is a background running process which is not in a preset white list, and the second preset process is a background running process in the preset white list;
and when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment.
Wherein the current switch state comprises an on state and an off state;
before the step of performing the acceleration processing on the background running process of the scanned electronic device by adopting the acceleration processing mode corresponding to the current switch state according to the current switch state, the method comprises the following steps:
outputting the scanned background running process information of the electronic equipment;
acquiring a cleaning instruction sent by a user based on the background running process information, wherein the cleaning instruction carries a background running process identifier selected by the user;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing the background running process corresponding to the background running process identifier carried by the cleaning instruction, and clearing cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction;
and when the current switch state is the closing state, removing the cache data of the background running process corresponding to the background running process identification carried by the cleaning instruction.
Wherein the method further comprises:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
detecting a current switch state of an auxiliary function of an electronic device after obtaining an acceleration instruction for the electronic device;
and according to the current switch state, performing accelerated processing on the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state.
It can be seen that, in the solution provided in the embodiment of the present invention, when the computer program is executed by the processor, after the acceleration instruction for the electronic device is obtained, the current switch state of the auxiliary function of the electronic device is detected, and then, according to the current switch state, the acceleration processing is performed on the background running process of the scanned electronic device by using the acceleration processing mode corresponding to the current switch state. Because the acceleration processing mode corresponding to the current switch state is adopted for acceleration processing, instead of the preset acceleration processing mode, the acceleration processing flexibility is higher, and different acceleration processing requirements of users can be met.
Wherein the current switch state comprises an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is the on state, closing the scanned background running process of the electronic equipment;
and when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment.
Wherein the current switch state comprises an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing a first preset process of the scanned electronic equipment, and clearing cache data of a second preset process of the scanned electronic equipment, wherein the first preset process is a background running process which is not in a preset white list, and the second preset process is a background running process in the preset white list;
and when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment.
Wherein the current switch state comprises an on state and an off state;
before the step of performing the acceleration processing on the background running process of the scanned electronic device by adopting the acceleration processing mode corresponding to the current switch state according to the current switch state, the method comprises the following steps:
outputting the scanned background running process information of the electronic equipment;
acquiring a cleaning instruction sent by a user based on the background running process information, wherein the cleaning instruction carries a background running process identifier selected by the user;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing the background running process corresponding to the background running process identifier carried by the cleaning instruction, and clearing cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction;
and when the current switch state is the closing state, removing the cache data of the background running process corresponding to the background running process identification carried by the cleaning instruction.
Wherein the method further comprises:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
For the above-mentioned apparatus, electronic device and computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1. A method for processing a process, the method comprising:
detecting a current switch state of an auxiliary function of an electronic device after obtaining an acceleration instruction for the electronic device; the auxiliary function is an enhanced function which can be set by a user in the electronic equipment and is used for assisting the user to operate;
according to the current switch state, performing acceleration processing on the scanned background running process of the electronic equipment by adopting an acceleration processing mode corresponding to the current switch state;
wherein the current switch state comprises an on state and an off state;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing a first preset process of the scanned electronic equipment, and clearing cache data of a second preset process of the scanned electronic equipment, wherein the first preset process is a background running process which is not in a preset white list, and the second preset process is a background running process in the preset white list; when the current switch state is the closing state, clearing the scanned cache data of the background running process of the electronic equipment;
or the like, or, alternatively,
before the step of performing acceleration processing on the scanned background running process of the electronic device according to the current switch state by adopting an acceleration processing mode corresponding to the current switch state, the method includes: outputting the scanned background running process information of the electronic equipment; acquiring a cleaning instruction sent by a user based on the background running process information, wherein the cleaning instruction carries a background running process identifier selected by the user;
the step of performing accelerated processing on the scanned background running process of the electronic device by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state comprises the following steps of:
when the current switch state is an on state, closing the background running process corresponding to the background running process identifier carried by the cleaning instruction, and clearing cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction; and when the current switch state is the closing state, removing the cache data of the background running process corresponding to the background running process identification carried by the cleaning instruction.
2. The method of claim 1, wherein the method further comprises:
and outputting acceleration processing result information to prompt a user that the acceleration processing is finished.
3. A process processing apparatus, the apparatus comprising:
the auxiliary function detection module is used for detecting the current switch state of an auxiliary function of the electronic equipment after an acceleration instruction for the electronic equipment is obtained; the auxiliary function is an enhanced function which can be set by a user in the electronic equipment and is used for assisting the user to operate;
the accelerated processing selection module is used for carrying out accelerated processing on the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state;
wherein the current switch state comprises an on state and an off state;
the accelerated processing selection module comprises: a second closing unit, configured to close a scanned first preset process of the electronic device and clear cache data of a scanned second preset process of the electronic device when the current switch state is an on state, where the first preset process is a background running process that is not in a preset white list, and the second preset process is a background running process that is in the preset white list; the second clearing unit is used for clearing the scanned cache data of the background running process of the electronic equipment when the current switch state is the closing state;
or the like, or, alternatively,
the device further comprises: the process information output module is used for outputting the scanned background running process information of the electronic equipment before the step of performing accelerated processing on the scanned background running process of the electronic equipment by adopting an accelerated processing mode corresponding to the current switch state according to the current switch state; a cleaning instruction obtaining module, configured to obtain a cleaning instruction sent by a user based on the background running process information, where the cleaning instruction carries a background running process identifier selected by the user;
the accelerated processing selection module comprises: a third closing unit, configured to close the background running process corresponding to the background running process identifier carried by the cleaning instruction and clear the cache data of the background running process corresponding to the background running process identifier not carried by the cleaning instruction when the current switch state is the on state; and the third clearing unit is used for clearing the cache data of the background running process corresponding to the background running process identification carried by the clearing instruction when the current switch state is the closed state.
4. The apparatus of claim 3, wherein the apparatus further comprises:
and the result information output module is used for outputting the acceleration processing result information so as to prompt the user that the acceleration processing is finished.
5. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-2 when executing a program stored in the memory.
6. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-2.
CN201710468556.7A 2017-06-20 2017-06-20 Process processing method and device Active CN107220093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710468556.7A CN107220093B (en) 2017-06-20 2017-06-20 Process processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710468556.7A CN107220093B (en) 2017-06-20 2017-06-20 Process processing method and device

Publications (2)

Publication Number Publication Date
CN107220093A CN107220093A (en) 2017-09-29
CN107220093B true CN107220093B (en) 2021-01-01

Family

ID=59950231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710468556.7A Active CN107220093B (en) 2017-06-20 2017-06-20 Process processing method and device

Country Status (1)

Country Link
CN (1) CN107220093B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688169B (en) * 2019-09-16 2021-10-08 腾讯科技(深圳)有限公司 Application program acceleration method and device, storage medium and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164229A (en) * 2013-04-08 2013-06-19 北京奇虎科技有限公司 Method and device for clearing progresses of mobile terminal
JP6244949B2 (en) * 2014-01-31 2017-12-13 富士通株式会社 Information processing apparatus, control method, and control program
CN104820545B (en) * 2015-04-30 2017-04-12 深圳市奇虎智能科技有限公司 Memory cleaning method and memory cleaning device of mobile terminal
CN105893278A (en) * 2016-03-30 2016-08-24 北京金山安全软件有限公司 System cache garbage cleaning method and device and terminal equipment
CN105975301B (en) * 2016-04-29 2018-09-04 北京小米移动软件有限公司 Memory method for cleaning and device, electronic equipment
CN106201572A (en) * 2016-06-23 2016-12-07 努比亚技术有限公司 Mobile terminal and internal memory releasing control method

Also Published As

Publication number Publication date
CN107220093A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN106921798B (en) Notification message processing method and device
CN106256116B (en) A kind of method and terminal controlling application program
CN110162343B (en) Application starting method and device, electronic equipment and storage medium
CN108804157A (en) Application program preloads method, apparatus, storage medium and terminal
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN108595224A (en) Application prompts method, apparatus, storage medium and terminal
JP7043604B2 (en) Notification reminding method, group addition method, device, terminal, and storage medium
CN104702782A (en) Short message management method and mobile terminal thereof
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN106022108A (en) Synchronous management method and terminal device
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN107423064A (en) Message treatment method, device, terminal device and storage medium
CN110851057A (en) Method and device for configuring configuration options of BIOS
CN107220093B (en) Process processing method and device
CN110659082A (en) Application program interface display method and device, terminal and storage medium
CN112596883B (en) Application switching method and device, storage medium and electronic equipment
CN107729136B (en) Processing priority configuration method and device based on FPGA
CN110858115A (en) Application display method, device, system, terminal and storage medium
CN104778040A (en) Photographing device
CN109462702B (en) Information processing method and electronic equipment
CN113992784A (en) Audio and video call method and device, computer equipment and storage medium
CN112673611B (en) Mobile terminal control method, mobile terminal control device and mobile terminal
CN108459838B (en) Information processing method and electronic equipment
CN111427642A (en) Data processing method and device, terminal equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant