CN107402804B - background process control method and device, storage medium and electronic equipment - Google Patents

background process control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107402804B
CN107402804B CN201710643059.6A CN201710643059A CN107402804B CN 107402804 B CN107402804 B CN 107402804B CN 201710643059 A CN201710643059 A CN 201710643059A CN 107402804 B CN107402804 B CN 107402804B
Authority
CN
China
Prior art keywords
list
background
background process
background processes
account
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
CN201710643059.6A
Other languages
Chinese (zh)
Other versions
CN107402804A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710643059.6A priority Critical patent/CN107402804B/en
Publication of CN107402804A publication Critical patent/CN107402804A/en
Priority to PCT/CN2018/094503 priority patent/WO2019024646A1/en
Application granted granted Critical
Publication of CN107402804B publication Critical patent/CN107402804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/461Saving or restoring of program or task context

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a background process control method and device, a storage medium and electronic equipment. The background process control method comprises the following steps: forming a first list by the background process on the white list; dividing a plurality of levels according to the categories of the background processes on the first list, and dividing each background process into corresponding levels; setting different priorities according to the levels and the running conditions of the background processes, and forming a second list according to the priorities; and calculating the total duration of the background processes on the account synchronization second list, if the total duration is greater than the first preset duration, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer. Background processes are effectively controlled, the background processes with high account synchronization priority are prioritized, and account synchronization efficiency is improved.

Description

Background process control method and device, storage medium and electronic equipment
Technical Field
the invention relates to the technical field of mobile equipment, in particular to a background process control method and device, a storage medium and electronic equipment.
background
With the rapid development of electronic device technology, the functions of electronic devices are stronger and more applications are more and more.
Currently, background process management and control for account synchronization is to detect whether a background process belongs to a white list, if the background process belongs to the white list, the account is synchronized with the background process, and when the number of the background processes for account synchronization is too many, the account synchronization operation of the background process cannot be effectively managed and controlled.
Disclosure of Invention
The embodiment of the invention provides a background process control method and device, a storage medium and electronic equipment, which can effectively control background application programs and improve account synchronization efficiency.
the embodiment of the invention provides a background process control method, which is applied to electronic equipment and comprises the following steps:
forming a first list by the background process on the white list; dividing a plurality of levels according to the categories of the background processes on the first list, and dividing each background process into corresponding levels;
Setting different priorities according to the levels and the running conditions of the background processes, and forming a second list according to the priorities;
And calculating the total time length of the background processes in the second list synchronized by the account, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account if the total time length is longer than a first preset time length, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer.
An embodiment of the present invention further provides a background process management and control device, including:
The first list forming module is used for forming a background process on the white list into a first list; the hierarchy dividing module is used for dividing a plurality of hierarchies according to the categories of the background processes on the first list and dividing each background process into a corresponding hierarchy;
The priority setting module is used for setting different priorities according to the levels and the operating conditions of the background processes and forming a second list according to the priorities;
and the synchronization module is used for calculating the total time length of background processes on the second list synchronized by the account, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account if the total time length is longer than a first preset time length, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer.
The embodiment of the present invention further provides a storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute steps of implementing any one of the background process management and control methods provided in the embodiments of the present invention.
An embodiment of the present invention further provides an electronic device, including:
A memory storing executable program code;
A processor coupled with the memory;
The processor calls the executable program code stored in the memory to execute any background process control method provided by the embodiment of the invention.
According to the background process control method, the background process control device, the storage medium and the terminal, priority sequencing is carried out on background processes, then the total duration of account number synchronization background processes is calculated, if the total duration is longer than a first preset duration, the account number synchronization priority is higher than the background process with a preset threshold value, a buffer is arranged, and the background process with the priority lower than the preset threshold value is stored in the buffer. Background processes are effectively controlled, the background processes with high account synchronization priority are prioritized, and account synchronization efficiency is improved.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic flowchart of a background process management and control method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating a first list formed in a background process management and control method according to an embodiment of the present invention.
fig. 3 is a schematic diagram illustrating forming a second list in the background process management and control method according to the embodiment of the present invention.
Fig. 4 is another schematic flow chart of the background process management and control method according to the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an alarm clock reminding device according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. 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.
The terms "first" and "second", etc. in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. A process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a background process control method and device, a storage medium and electronic equipment.
In the embodiment of the present invention, the background process management and control apparatus will be described from the perspective of the background process management and control apparatus, and the background process management and control apparatus may be specifically integrated in an electronic device having an arithmetic capability, such as a tablet, a PC, a mobile phone, and the like, which has a storage unit and is equipped with a microprocessor. A background process management and control method comprises the following steps: forming a first list by the background process on the white list; dividing a plurality of levels according to the categories of the background processes on the first list, and dividing each background process into corresponding levels; setting different priorities according to the levels and the running conditions of the background processes, and forming a second list according to the priorities; and calculating the total duration of the background processes on the account synchronization second list, if the total duration is greater than the first preset duration, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a background process management and control method according to an embodiment of the present invention. The background process control method can comprise the following steps:
In step S101, background processes on the white list form a first list.
referring to fig. 2, fig. 2 is a schematic diagram illustrating a first list formed in a background process management and control method according to an embodiment of the present invention. And if the background process is not on the white list, the Tianmao, the Aiqiyi and the calendar are removed. In this embodiment, first, all background processes are acquired, and then, whether the background processes are on the white list is detected, and the background processes on the white list form a first list. And (4) primarily screening the background processes, and removing the background processes which are not on the white list.
The white list in the embodiment of the invention can be set by a system in advance, or can be set by a user, the background process on the white list can carry out account synchronization, and the account synchronization cannot be carried out if the background process is not on the white list. And the account synchronization operation is optimized, and the pertinence and the efficiency of account synchronization are improved. The white list can not be modified at will and can be modified only by authorization of a user, so that malicious software is prevented from tampering the white list, and the authority of the malicious software is improved.
In step S102, a plurality of levels are divided according to the categories of the background processes on the first list, and each background process is divided into a corresponding level.
It is understood that the background process root on the first list may be divided into a plurality of categories, such as by function, and may include social communication categories, such as QQ, WeChat, microblog, post, etc.; video and audio playing, such as Tencent video, Aiqiyi, Youkou video, and the like; financial, such as banking, stock, online wallet, etc.; then, levels are set according to the importance of each category, for example, the levels are sequentially arranged in a descending manner according to the levels of financial, social communication and video and audio playing, or the levels can be arranged according to the preference of the user.
The background process root on the first list can be divided into various categories, such as the categories according to the security level of the background process, and the categories with high security, such as bank service and payment service; categories of moderate security, such as shopping applications, network gaming applications, and the like; a category with low security, such as a browser application, etc.
In some embodiments, the interface page number of the display interface is acquired; if the interface page number is larger than one page, the background process corresponding to the main screen interface page of the display interface is set as a first level, and other background processes set levels according to the operation times of the interface page where the background process is located and the main screen interface page. Specifically, for example, the display interface of the mobile terminal has a plurality of pages, which are switched from left to right or up and down by sliding, wherein the display interface that enters after the mobile terminal is started or returns to the main menu is a main screen interface page, and the upper application program is an application program frequently used or more important by the user; the background process corresponding to the main screen interface page is set as a first level, the display interface page reached by the main screen interface page once is operated as a second level, the display interface page reached by the main screen interface page twice is operated as a third level, and so on, and the level of the background process is set by the method of the embodiment.
In some embodiments, position information on a display interface and a background process corresponding to the position information are acquired; and setting the levels of different position information of the display interface according to the handedness of the user, and setting the levels of corresponding background processes according to the levels of the position information. Specifically, the position information on the display interface is obtained first, a range in which one application program is displayed on the display interface may be set as one display unit, the display interface is divided according to the display units, and the coordinate determination position information is set for each display unit. The method comprises the steps of collecting handedness of a user, wherein the handedness comprises frequent one-handed operation or two-handed operation, the one-handed operation is left-handed operation or right-handed operation, for example, a display interface comprises 16 application icons which are 4 rows and 4 columns, the position of the third row is set to be a first level, the level is set according to the distance from the position, namely the positions above, below, left and right of the position are set to be a second level, the position which is obliquely adjacent to the position of the first level is set to be a third level, and the position on the leftmost side is set to be a fourth level. The position where the user presses the application program first after the screen is lightened can be collected as a first hierarchy, and hierarchies of other positions are set according to the distance from the position. And then setting the corresponding background process level according to the position information level.
If the application program in some position is a folder and the file comprises a plurality of application programs, the application program in the folder can be set as the hierarchy of the position; the application program in the folder can also be set as the next level of the position, and compared with the application program directly called by the display interface, the application program in the folder needs one more step of operation and is adjusted down by one level, so that the priority of the background process corresponding to the directly called application program is favorably embodied.
The method of this embodiment can also be implemented in combination with the above embodiment, and when the display interface is a plurality of pages, each page of the display interface is subdivided into layers by using the method of this embodiment.
in step S103, different priorities are set according to the hierarchy and the operating condition of each background process, and a second list is formed according to the priorities.
referring to fig. 3, fig. 3 is a schematic diagram illustrating forming a second list in the background process management and control method according to the embodiment of the present invention. In this embodiment, the large priority is first divided according to the hierarchy of the background processes, and the priority of the background process with the high hierarchy is greater than that of the background process with the low hierarchy. When the levels of the background processes are the same, the priorities of the background processes are subdivided according to the running conditions of the background processes, and then the background processes are arranged according to the priorities to form a second list.
In some embodiments, the hierarchy, the use frequency, the historical use duration and the last use time of each background process are obtained; and if the levels of the background processes are the same, calculating the priorities of the background processes according to the use frequency, the historical use duration and the last use time and preset weights.
specifically, in the foregoing embodiment, the hierarchical division of the background processes inevitably includes multiple background processes at the same level, and at this time, the priority of each background process may be calculated according to a preset weight by using the frequency, the historical use duration, and the last use time of each background process, and then the priority is placed in the second list. The use frequency can be one day use frequency, three days use frequency, one week use frequency or one month use frequency, the background processes of the same level are sorted by calculating the use frequency, corresponding scores are given according to the sorting sequence, and 1 integral is obtained, wherein the score is the first rank of the highest use frequency; the historical use duration can be the use duration of one day, the use duration of three days, the use duration of one week or the use duration of one month, the background processes of the same level are sorted by calculating the use duration, corresponding scores are given according to the sorted order, and 1 integral is obtained if the use duration is the highest; sorting the last use time and the current time, and giving corresponding scores according to the sorting sequence, if the most recently used score is first, obtaining 1 integral; and adding the integrals of the use frequency, the historical use time and the last use time, wherein the lower the integral is, the higher the priority is.
it should be noted that, in this embodiment, the ranking of the usage frequencies may be calculated by combining the usage frequency of one day, the usage frequency of three days, the usage frequency of one week, and the usage frequency of one month, and as described above, the usage frequencies of each time period are respectively ranked, and then the ranking according to the ranking of the ranking is added to obtain a new combined ranking. The frequency of use of the day and the frequency of use of the week can be given higher weight, such as the frequency of use of the day and the frequency of use of the week respectively account for one third of the weight, and the frequency of use of the three days and the frequency of use of the month respectively account for one sixth of the weight, because the frequency of use of the day directly reflects the current operating condition, the difference of the application program operated on the weekend and the working day of the week is larger, and the frequency of use of the week is closer to the use period of the user.
In step S104, the total duration of the background processes on the second list synchronized by the account is calculated, and if the total duration is longer than the first preset duration, the account synchronizes the background processes with the priority higher than the preset threshold in the second list, and a buffer is set, and the background processes with the priority lower than the preset threshold in the second list are stored in the buffer.
it can be understood that, before the background process on the second list of account synchronization, the total duration of account synchronization is calculated, and if the total duration is less than the first preset duration, account synchronization is directly performed. If the total duration is longer than the first preset duration, a longer time is needed for account synchronization, the operation efficiency, the network condition and the like of the electronic equipment are reduced for a long time, and meanwhile, the power consumption of the electronic equipment is increased. At this time, the background processes with the priority higher than the preset threshold in the second list may be synchronized by the account number first, and the background processes with the priority lower than the preset threshold in the second list are stored in the buffer.
The total time length for account synchronization can be calculated according to the total data volume, the current network condition and the residual electric quantity of account synchronization. Furthermore, the total time length can be corrected according to the historical account synchronization data. The first preset time can be obtained according to the total data volume of the account synchronization, the current system operation efficiency, and the remaining power, and may be set to 5 minutes, 10 minutes, 30 minutes, or the like.
Wherein the preset threshold may be a priority value of a background process in the middle of the second list; or synchronizing the background processes according to a second list account according to the setting of the first preset time length, wherein the priority value of the background process which is closest to and less than the first preset time length is a preset threshold value; the priority values of the background processes at two thirds of the second list can be set according to the proportion, for example, the priority values of the background processes at two thirds of the second list are set as a preset threshold, and of course, other proportions, such as six tenths, one third and the like, can be set; a fixed value can also be set, and the fixed value is set by counting the historical account synchronous records of the electronic equipment.
It should be noted that the system may also close the background process according to the second list. Specifically, the background processes outside the white list may be closed first, and then the background processes may be closed from the tail end of the second list until the system efficiency reaches a reasonable state, for example, the system utilization rate is lower than 40%, or the background processes on the second list are all closed.
In summary, in the background process management and control method provided by the embodiment of the present invention, the background process is first obtained, and preliminary screening is performed according to the white list, so that the background processes on the white list form a first list; then, dividing a plurality of levels according to the categories of the background processes on the first list, and dividing each background process into corresponding levels; setting different priorities according to the hierarchy and the operating condition of each background process, and forming a second list according to the priorities, wherein the priorities are preliminarily divided according to the hierarchy, and then the priorities are divided according to the operating condition of each process; and then, calculating the total duration of the background processes on the account synchronization second list, if the total duration is greater than the first preset duration, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the priority account, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer. And if the total duration of the background processes on the account synchronization second list is less than a second preset duration, synchronizing the background processes in the cache by the account. According to the embodiment of the invention, the refined priority is set for the background processes, the second list is formed, the background processes are synchronized according to the account numbers in the second list, the background processes are effectively controlled, the background processes with high priority are synchronized by the prior account, and the important background processes can be ensured to be synchronized by the prior account numbers; the unimportant background process does not influence the use of the electronic equipment by a user, the use peak period of the electronic equipment is staggered, and the account synchronization efficiency is improved.
referring to fig. 4, fig. 4 is another schematic flow chart of a background process management and control method according to an embodiment of the present invention. Step S201, step S202, step S203, and step S204 in fig. 4 are the same as step S101, step S102, step S103, and step S104 in fig. 1, respectively, and are not repeated herein.
In step S205, the total duration of the background processes on the second list of account synchronization is recalculated, and if the new total duration is less than the second preset duration, the background processes in the account synchronization buffer are updated.
And when the account number synchronizes the background processes with the priority higher than the preset threshold value in the second list for a period of time, recalculating the total duration of the background processes on the account number synchronization second list, and if the new total duration is less than the second preset duration, synchronizing the background processes in the cache. The second preset time duration may be set according to the current system operation efficiency, the network condition, and the remaining power, and if the current system operation efficiency is high, the network condition is good, and the battery is sufficient, the second preset time duration may be set to be half of the first preset time duration, or to be smaller than the first preset time duration. The second preset time may also be the time obtained by subtracting the time of the background process in the account synchronization buffer from the first preset time. The background process in the account synchronization buffer also needs to detect the running state of the system, and the background process in the account synchronization buffer is only carried out in an idle state.
According to the background process control method provided by the embodiment of the invention, if the total duration of the background processes on the second list of the account synchronization is less than the second preset duration, the account synchronizes the background processes in the buffer. The background processes are set with the refined priority and form a second list, the background processes are synchronized according to the account numbers in the second list, the background processes are effectively controlled, the background processes with high priority are synchronized by priority accounts, and important background processes can be ensured to be synchronized by priority account numbers; the unimportant background process does not influence the use of the electronic equipment by a user, the use peak period of the electronic equipment is staggered, and the account synchronization efficiency is improved.
In order to better implement the background process management and control method provided by the embodiment of the present invention, an embodiment of the present invention further provides a device based on the background process management and control method. The meaning of the noun is the same as that in the background process management and control method, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a background process management and control apparatus according to an embodiment of the present invention, where the background process management and control apparatus 300 according to an embodiment of the present invention includes a first list forming module 301, a hierarchical dividing module 302, a priority setting module 303, and a synchronization module 304.
A first list forming module 301 is configured to form a first list by a background process on the white list.
it will be appreciated that the first list forming module 301 first obtains all background processes and then detects whether the background processes are on the white list, the background processes on the white list forming the first list. And (4) primarily screening the background processes, and removing the background processes which are not on the white list.
The white list in the embodiment of the invention can be set by a system in advance, or can be set by a user, the background process on the white list can carry out account synchronization, and the account synchronization cannot be carried out if the background process is not on the white list. And the account synchronization operation is optimized, and the pertinence and the efficiency of account synchronization are improved. The white list can not be modified at will and can be modified only by authorization of a user, so that malicious software is prevented from tampering the white list, and the authority of the malicious software is improved.
The hierarchical division module 302 is configured to divide a plurality of hierarchies according to the categories of the background processes on the first list, and divide each background process into a corresponding hierarchy.
It is understood that the background process root on the first list may be divided into a plurality of categories, such as by function, and may include social communication categories, such as QQ, WeChat, microblog, post, etc.; video and audio playing, such as Tencent video, Aiqiyi, Youkou video, and the like; financial, such as banking, stock, online wallet, etc.; then, levels are set according to the importance of each category, for example, the levels are sequentially arranged in a descending manner according to the levels of financial, social communication and video and audio playing, or the levels can be arranged according to the preference of the user.
the background process root on the first list can be divided into various categories, such as the categories according to the security level of the background process, and the categories with high security, such as bank service and payment service; categories of moderate security, such as shopping applications, network gaming applications, and the like; a category with low security, such as a browser application, etc.
in some embodiments, the hierarchical classification module 302 obtains the interface page number of the display interface; if the interface page number is larger than one page, the background process corresponding to the main screen interface page of the display interface is set as a first level, and other background processes set levels according to the operation times of the interface page where the background process is located and the main screen interface page. Specifically, for example, the display interface of the mobile terminal has a plurality of pages, which are switched from left to right or up and down by sliding, wherein the display interface that enters after the mobile terminal is started or returns to the main menu is a main screen interface page, and the upper application program is an application program frequently used or more important by the user; the background process corresponding to the main screen interface page is set as a first level, the display interface page reached by the main screen interface page once is operated as a second level, the display interface page reached by the main screen interface page twice is operated as a third level, and so on, and the level of the background process is set by the method of the embodiment.
In some embodiments, the hierarchical partitioning module 302 obtains the location information on the display interface and a background process corresponding to the location information; and setting the levels of different position information of the display interface according to the handedness of the user, and setting the levels of corresponding background processes according to the levels of the position information. Specifically, the position information on the display interface is obtained first, a range in which one application program is displayed on the display interface may be set as one display unit, the display interface is divided according to the display units, and the coordinate determination position information is set for each display unit. The method comprises the steps of collecting handedness of a user, wherein the handedness comprises frequent one-handed operation or two-handed operation, the one-handed operation is left-handed operation or right-handed operation, for example, a display interface comprises 16 application icons which are 4 rows and 4 columns, the position of the third row is set to be a first level, the level is set according to the distance from the position, namely the positions above, below, left and right of the position are set to be a second level, the position which is obliquely adjacent to the position of the first level is set to be a third level, and the position on the leftmost side is set to be a fourth level. The position where the user presses the application program first after the screen is lightened can be collected as a first hierarchy, and hierarchies of other positions are set according to the distance from the position. And then setting the corresponding background process level according to the position information level.
If the application program in some position is a folder and the file comprises a plurality of application programs, the application program in the folder can be set as the hierarchy of the position; the application program in the folder can also be set as the next level of the position, and compared with the application program directly called by the display interface, the application program in the folder needs one more step of operation and is adjusted down by one level, so that the priority of the background process corresponding to the directly called application program is favorably embodied.
The method of this embodiment can also be implemented in combination with the above embodiment, and when the display interface is a plurality of pages, each page of the display interface is subdivided into layers by using the method of this embodiment.
the priority setting module 303 is configured to set different priorities according to the hierarchy and the operating condition of each background process, and form a second list according to the priorities.
It can be understood that the priority setting module 303 first divides the priority into a plurality of levels according to the level of the background process, and the priority of the background process with a higher level is higher than that of the background process with a lower level. When the levels of the background processes are the same, the priorities of the background processes are subdivided according to the running conditions of the background processes, and then the background processes are arranged according to the priorities to form a second list.
In some embodiments, the priority setting module 303 obtains the hierarchy, the usage frequency, the historical usage duration, and the last usage time of each background process; and if the levels of the background processes are the same, calculating the priorities of the background processes according to the use frequency, the historical use duration and the last use time and preset weights.
Specifically, in the foregoing embodiment, the hierarchical division of the background processes inevitably includes multiple background processes at the same level, and at this time, the priority of each background process may be calculated according to a preset weight by using the frequency, the historical use duration, and the last use time of each background process, and then the priority is placed in the second list. The use frequency can be one day use frequency, three days use frequency, one week use frequency or one month use frequency, the background processes of the same level are sorted by calculating the use frequency, corresponding scores are given according to the sorting sequence, and 1 integral is obtained, wherein the score is the first rank of the highest use frequency; the historical use duration can be the use duration of one day, the use duration of three days, the use duration of one week or the use duration of one month, the background processes of the same level are sorted by calculating the use duration, corresponding scores are given according to the sorted order, and 1 integral is obtained if the use duration is the highest; sorting the last use time and the current time, and giving corresponding scores according to the sorting sequence, if the most recently used score is first, obtaining 1 integral; and adding the integrals of the use frequency, the historical use time and the last use time, wherein the lower the integral is, the higher the priority is.
It should be noted that, in this embodiment, the ranking of the usage frequencies may be calculated by combining the usage frequency of one day, the usage frequency of three days, the usage frequency of one week, and the usage frequency of one month, and as described above, the usage frequencies of each time period are respectively ranked, and then the ranking according to the ranking of the ranking is added to obtain a new combined ranking. The frequency of use of the day and the frequency of use of the week can be given higher weight, such as the frequency of use of the day and the frequency of use of the week respectively account for one third of the weight, and the frequency of use of the three days and the frequency of use of the month respectively account for one sixth of the weight, because the frequency of use of the day directly reflects the current operating condition, the difference of the application program operated on the weekend and the working day of the week is larger, and the frequency of use of the week is closer to the use period of the user.
The synchronization module 304 is configured to calculate a total duration of background processes on the second list synchronized by the account, synchronize, if the total duration is greater than a first preset duration, a background process with a priority higher than a preset threshold in the second list, set a buffer, and store, in the buffer, a background process with a priority lower than the preset threshold in the second list.
It can be understood that, before the account synchronizes the background process on the second list, the synchronization module 304 calculates the total duration of account synchronization, and if the total duration is less than the first preset duration, the account synchronization is directly performed. If the total duration is longer than the first preset duration, a longer time is needed for account synchronization, the operation efficiency, the network condition and the like of the electronic equipment are reduced for a long time, and meanwhile, the power consumption of the electronic equipment is increased. At this time, the background processes with the priority higher than the preset threshold in the second list may be synchronized by the account number first, and the background processes with the priority lower than the preset threshold in the second list are stored in the buffer.
The total time length for account synchronization can be calculated according to the total data volume, the current network condition and the residual electric quantity of account synchronization. Furthermore, the total time length can be corrected according to the historical account synchronization data. The first preset time can be obtained according to the total data volume of the account synchronization, the current system operation efficiency, and the remaining power, and may be set to 5 minutes, 10 minutes, 30 minutes, or the like.
Wherein the preset threshold may be a priority value of a background process in the middle of the second list; or synchronizing the background processes according to a second list account according to the setting of the first preset time length, wherein the priority value of the background process which is closest to and less than the first preset time length is a preset threshold value; the priority values of the background processes at two thirds of the second list can be set according to the proportion, for example, the priority values of the background processes at two thirds of the second list are set as a preset threshold, and of course, other proportions, such as six tenths, one third and the like, can be set; a fixed value can also be set, and the fixed value is set by counting the historical account synchronous records of the electronic equipment.
In some embodiments, the synchronization module 304 is further configured to recalculate the total duration of the background processes on the second list in account synchronization, and if the new total duration is less than a second preset duration, synchronize the background processes in the cache. When the account synchronizes the background processes with the priority higher than the preset threshold in the second list for a period of time, the synchronization module 304 recalculates the total duration of the background processes on the account synchronization second list, and if the new total duration is less than the second preset duration, the account synchronizes the background processes in the buffer. The second preset time duration may be set according to the current system operation efficiency, the network condition, and the remaining power, and if the current system operation efficiency is high, the network condition is good, and the battery is sufficient, the second preset time duration may be set to be half of the first preset time duration, or to be smaller than the first preset time duration. The second preset time may also be the time obtained by subtracting the time of the background process in the account synchronization buffer from the first preset time. The background process in the account synchronization buffer also needs to detect the running state of the system, and the background process in the account synchronization buffer is only carried out in an idle state.
It should be noted that the background process management and control device may further include a closing module, configured to close the background process according to the second list. Specifically, the background processes outside the white list may be closed first, and then the background processes may be closed from the tail end of the second list until the system efficiency reaches a reasonable state, for example, the system utilization rate is lower than 40%, or the background processes on the second list are all closed.
In summary, in the background process management and control apparatus provided in the embodiment of the present invention, the background process is first obtained, then the first list forming module 301 performs preliminary screening according to the white list, and forms the background process on the white list into the first list; next, the hierarchy dividing module 302 divides a plurality of hierarchies according to the categories of the background processes on the first list, and divides each background process into a corresponding hierarchy; the priority setting module 303 sets different priorities according to the hierarchy and the operating condition of each background process, and forms a second list according to the priorities, wherein the priorities are primarily divided according to the hierarchy, and then the priorities are divided according to the operating condition of each process; then, the synchronization module 304 calculates the total duration of background processes on the second list synchronized by the account, and if the total duration is longer than the first preset duration, the priority account synchronizes the background processes with the priority higher than the preset threshold in the second list, and sets a buffer, and stores the background processes with the priority lower than the preset threshold in the second list in the buffer. And if the total duration of the background processes on the account synchronization second list is less than a second preset duration, synchronizing the background processes in the cache by the account. According to the embodiment of the invention, the refined priority is set for the background processes, the second list is formed, the background processes are synchronized according to the account numbers in the second list, the background processes are effectively controlled, the background processes with high priority are synchronized by the prior account, and the important background processes can be ensured to be synchronized by the prior account numbers; the unimportant background process does not influence the use of the electronic equipment by a user, the use peak period of the electronic equipment is staggered, and the account synchronization efficiency is improved.
the embodiment of the invention also provides the electronic device 400. The electronic device 400 may be a smart phone, a tablet computer, or the like. As shown in fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 400 includes: a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the whole electronic device 400 by using various interfaces and lines, performs various functions of the electronic device 400 and processes data by running or loading an application program stored in the memory 402 and calling the data stored in the memory 402, thereby performing overall monitoring of the electronic device 400.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
Forming a first list by the background process on the white list; dividing a plurality of levels according to the categories of the background processes on the first list, and dividing each background process into corresponding levels;
Setting different priorities according to the levels and the running conditions of the background processes, and forming a second list according to the priorities;
And calculating the total duration of the background processes on the account synchronization second list, if the total duration is greater than the first preset duration, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing instructions executable in the processor 401. The application programs may constitute various functional modules. The processor 401 executes various functional applications and data processing by running an application program stored in the memory 402.
In some embodiments, referring to fig. 7 together, fig. 7 is another schematic structural diagram of an electronic device, and the electronic device 400 further includes: radio frequency circuit 403, display 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a server or other electronic devices through a wireless communication network.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the terminal, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The audio circuit 407 may provide an audio interface between the user and the terminal through a speaker, microphone.
The sensor 408 is used to collect external environmental information. The sensor 28 may include one or more of an ambient light sensor, an acceleration sensor, a gyroscope, and the like.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 7, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, the embodiment of the present invention provides an electronic device, where the electronic device first obtains a background process, and performs preliminary screening according to a white list, so as to form a first list for the background process on the white list; then, dividing a plurality of levels according to the categories of the background processes on the first list, and dividing each background process into corresponding levels; setting different priorities according to the hierarchy and the operating condition of each background process, and forming a second list according to the priorities, wherein the priorities are preliminarily divided according to the hierarchy, and then the priorities are divided according to the operating condition of each process; and then, calculating the total duration of the background processes on the account synchronization second list, if the total duration is greater than the first preset duration, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the priority account, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer. And if the total duration of the background processes on the account synchronization second list is less than a second preset duration, synchronizing the background processes in the cache by the account. According to the embodiment of the invention, the refined priority is set for the background processes, the second list is formed, the background processes are synchronized according to the account numbers in the second list, the background processes are effectively controlled, the background processes with high priority are synchronized by the prior account, and the important background processes can be ensured to be synchronized by the prior account numbers; the unimportant background process does not influence the use of the electronic equipment by a user, the use peak period of the electronic equipment is staggered, and the account synchronization efficiency is improved.
The embodiment of the present invention further provides a storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the background process management and control method according to any of the above embodiments.
it should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable medium, which may include but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The background process control method, the background process control device, the storage medium and the electronic device provided by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation manner of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A background process control method is applied to electronic equipment, and is characterized by comprising the following steps:
Forming a first list by the background process on the white list;
Acquiring the interface page number of a display interface;
if the interface page number is larger than one page, setting the background process corresponding to the main screen interface page of the display interface as a first level, and setting the levels by other background processes according to the operation times of the interface page where the background process is located and the main screen interface page;
Setting different priorities according to the levels and the running conditions of the background processes, and forming a second list according to the priorities;
and calculating the total time length of the background processes in the second list synchronized by the account, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account if the total time length is longer than a first preset time length, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer.
2. The background process management and control method according to claim 1, wherein an account synchronizes the background processes in the second list, in which the priority is higher than a preset threshold, and then further comprising:
And recalculating the total duration of the background processes on the account synchronization second list, and if the new total duration is less than a second preset duration, synchronizing the background processes in the cache by the account.
3. A background process management and control method according to claim 1 or 2, wherein the method further comprises:
Acquiring position information on the display interface and a background process corresponding to the position information;
and setting the levels of different position information of the display interface according to the handedness of a user, and setting the levels of corresponding background processes according to the levels of the position information.
4. The background process management and control method according to claim 1, wherein setting different priorities according to the hierarchy and the usage status of each background process includes:
Acquiring the hierarchy, the use frequency, the historical use duration and the last use time of each background process;
and if the levels of the background processes are the same, calculating the priorities of the background processes according to the use frequency, the historical use duration and the last use time and preset weights.
5. A background process management and control device is characterized by comprising:
The first list forming module is used for forming a background process on the white list into a first list;
The hierarchy dividing module is used for acquiring the interface page number of the display interface; if the interface page number is larger than one page, setting the background process corresponding to the main screen interface page of the display interface as a first level, and setting the levels by other background processes according to the operation times of the interface page where the background process is located and the main screen interface page;
the priority setting module is used for setting different priorities according to the levels and the operating conditions of the background processes and forming a second list according to the priorities;
And the synchronization module is used for calculating the total time length of background processes on the second list synchronized by the account, synchronizing the background processes with the priority higher than a preset threshold value in the second list by the account if the total time length is longer than a first preset time length, setting a buffer, and storing the background processes with the priority lower than the preset threshold value in the second list in the buffer.
6. The background process management and control device according to claim 5, wherein the synchronization module is further configured to recalculate a total duration of background processes on the second list synchronized by the account, and if the new total duration is less than a second preset duration, synchronize the background processes in the buffer by the account.
7. A background process management and control apparatus according to claim 5, wherein the hierarchical partitioning apparatus is further configured to obtain a folder, an application program, and location information corresponding to the folder and the application program on the display interface; and setting the levels of different position information of the display interface according to the handedness of a user, and setting the levels of the folders and the application programs according to the levels of the position information.
8. The background process management and control device according to claim 5, wherein the priority setting device is further configured to obtain a hierarchy, a use frequency, a historical use duration, and a last use time of each background process; and if the levels of the background processes are the same, calculating the priorities of the background processes according to the use frequency, the historical use duration and the last use time and preset weights.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform a background process management method according to any one of claims 1-4.
10. An electronic device, comprising:
A memory storing executable program code;
A processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the background process management and control method according to any one of claims 1 to 4.
CN201710643059.6A 2017-07-31 2017-07-31 background process control method and device, storage medium and electronic equipment Active CN107402804B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710643059.6A CN107402804B (en) 2017-07-31 2017-07-31 background process control method and device, storage medium and electronic equipment
PCT/CN2018/094503 WO2019024646A1 (en) 2017-07-31 2018-07-04 Application management and control method, apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710643059.6A CN107402804B (en) 2017-07-31 2017-07-31 background process control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107402804A CN107402804A (en) 2017-11-28
CN107402804B true CN107402804B (en) 2019-12-10

Family

ID=60401830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710643059.6A Active CN107402804B (en) 2017-07-31 2017-07-31 background process control method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN107402804B (en)
WO (1) WO2019024646A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402804B (en) * 2017-07-31 2019-12-10 Oppo广东移动通信有限公司 background process control method and device, storage medium and electronic equipment
CN108089935B (en) * 2017-11-29 2021-04-09 维沃移动通信有限公司 Application program management method and mobile terminal
CN110018899B (en) * 2018-01-10 2021-09-07 华为技术有限公司 Method and device for recycling memory
CN108805559B (en) * 2018-07-25 2023-12-15 努比亚技术有限公司 Two-dimensional code pushing method, mobile terminal and computer readable storage medium
CN110069328B (en) * 2019-03-25 2021-11-09 维沃移动通信有限公司 Application closing method and terminal equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105793A (en) * 2006-07-11 2008-01-16 阿里巴巴公司 Data processing method and system of data library
CN101604259A (en) * 2009-06-10 2009-12-16 深圳市共进电子有限公司 A kind of method of the multi-process synchronous scheduling based on embedded system
CN103327037A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Data synchronizing method and device
CN104317843A (en) * 2014-10-11 2015-01-28 上海瀚之友信息技术服务有限公司 Data synchronism ETL (Extract Transform Load) system
CN104937582A (en) * 2013-02-27 2015-09-23 惠普发展公司,有限责任合伙企业 Data synchronization
CN105847408A (en) * 2016-05-05 2016-08-10 北京奇虎科技有限公司 Data synchronization method and device and equipment
CN105930493A (en) * 2016-05-04 2016-09-07 北京思特奇信息技术股份有限公司 Method and system for data synchronization between different databases
CN105978947A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Same account number login equipment number control method and mobile terminal
CN106933534A (en) * 2015-12-31 2017-07-07 阿里巴巴集团控股有限公司 A kind of method of data synchronization and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8886976B2 (en) * 2011-04-11 2014-11-11 Microsoft Corporation Management of background tasks
CN102196097A (en) * 2011-05-19 2011-09-21 中兴通讯股份有限公司 Method and device for automatically closing idle programs of mobile communication terminal background
CN103914342A (en) * 2013-01-06 2014-07-09 联想(北京)有限公司 Electronic equipment process control method, system and electronic equipment
CN106125882B (en) * 2016-06-15 2019-04-26 深圳市万普拉斯科技有限公司 A kind of management method and electronic equipment of application program
CN107402804B (en) * 2017-07-31 2019-12-10 Oppo广东移动通信有限公司 background process control method and device, storage medium and electronic equipment
CN107450952B (en) * 2017-07-31 2019-08-06 Oppo广东移动通信有限公司 Using management-control method, device, storage medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105793A (en) * 2006-07-11 2008-01-16 阿里巴巴公司 Data processing method and system of data library
CN101604259A (en) * 2009-06-10 2009-12-16 深圳市共进电子有限公司 A kind of method of the multi-process synchronous scheduling based on embedded system
CN103327037A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Data synchronizing method and device
CN104937582A (en) * 2013-02-27 2015-09-23 惠普发展公司,有限责任合伙企业 Data synchronization
CN104317843A (en) * 2014-10-11 2015-01-28 上海瀚之友信息技术服务有限公司 Data synchronism ETL (Extract Transform Load) system
CN106933534A (en) * 2015-12-31 2017-07-07 阿里巴巴集团控股有限公司 A kind of method of data synchronization and device
CN105978947A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Same account number login equipment number control method and mobile terminal
CN105930493A (en) * 2016-05-04 2016-09-07 北京思特奇信息技术股份有限公司 Method and system for data synchronization between different databases
CN105847408A (en) * 2016-05-05 2016-08-10 北京奇虎科技有限公司 Data synchronization method and device and equipment

Also Published As

Publication number Publication date
CN107402804A (en) 2017-11-28
WO2019024646A1 (en) 2019-02-07

Similar Documents

Publication Publication Date Title
CN107402804B (en) background process control method and device, storage medium and electronic equipment
CN107545404B (en) Bill reminding method and device
CN108111687B (en) Display control method and related product
US20160357616A1 (en) Application management method and application management apparatus
CN102087575A (en) Electronic device and method for dynamic arrangement of icons
CN106648747A (en) Method and device for processing pre-loading of process
CN107679718A (en) List distribution method, equipment and computer-readable recording medium
CN107733984A (en) A kind of method, terminal and computer-readable recording medium for pushing screen locking information
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN107222790A (en) A kind of method, terminal and computer-readable recording medium for sending barrage
CN112947830A (en) Popup window display method and device, computer equipment and storage medium
EP3525101B1 (en) Data backup method, apparatus, storage medium, and terminal
CN112328136A (en) Comment information display method, comment information display device, comment information display equipment and comment information storage medium
CN106991179A (en) Data-erasure method, device and mobile terminal
CN109766508B (en) Information auditing method and device and electronic equipment
KR20190043635A (en) Method and device for identity authentication
WO2024093784A1 (en) Method and apparatus for displaying notification message, and electronic device
CN107943562A (en) Information storage means, device, storage medium and electronic equipment
US11429660B2 (en) Photo processing method, device and computer equipment
CN113271360A (en) Recommendation method and device of application program, electronic device and medium
CN108399266A (en) Data pick-up method, apparatus, electronic equipment and computer readable storage medium
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN106227752A (en) A kind of photograph sharing method and terminal
CN115016735A (en) Control method, device and medium for distributed cache system
CN110263175B (en) Information classification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant