WO2018018690A1 - 一种进程清理方法及移动终端 - Google Patents

一种进程清理方法及移动终端 Download PDF

Info

Publication number
WO2018018690A1
WO2018018690A1 PCT/CN2016/097045 CN2016097045W WO2018018690A1 WO 2018018690 A1 WO2018018690 A1 WO 2018018690A1 CN 2016097045 W CN2016097045 W CN 2016097045W WO 2018018690 A1 WO2018018690 A1 WO 2018018690A1
Authority
WO
WIPO (PCT)
Prior art keywords
open
application
time
historical
parameter
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.)
Ceased
Application number
PCT/CN2016/097045
Other languages
English (en)
French (fr)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2018018690A1 publication Critical patent/WO2018018690A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Definitions

  • the present invention relates to the field of mobile communications technologies, and in particular, to a process cleaning method and a mobile terminal.
  • the embodiment of the invention discloses a process cleaning method and a mobile terminal, which can improve the efficiency of cleaning the mobile phone process.
  • the first aspect of the embodiment of the present invention discloses a process cleaning method, including:
  • a second aspect of the embodiment of the present invention discloses a mobile terminal, including:
  • Obtaining a unit configured to obtain a reference open parameter of the application and a current open parameter of the currently open application
  • a determining unit configured to determine whether the current open parameter acquired by the acquiring unit meets the reference open parameter
  • the cleaning unit is configured to: when the determining unit determines that the current open parameter meets the reference open parameter, clear the process of the application.
  • the mobile terminal when the mobile terminal acquires the current open parameter of the currently open application to meet the reference open parameter, the mobile terminal automatically clears the process of the application. It can be seen that implementing the embodiments of the present invention can improve the efficiency of cleaning the mobile phone process compared to manually restarting the mobile phone by the user or cleaning the mobile phone process by using third party software.
  • FIG. 1 is a schematic flow chart of a process cleaning method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • FIG. 4 is a computer system based on the Von Neumann system for running the above process cleaning method according to an embodiment of the present invention.
  • the embodiment of the invention discloses a process cleaning method and a mobile terminal, which can improve the efficiency of cleaning the mobile phone process. The details are described below separately.
  • the embodiment of the present invention can be applied to when the user opens an application and the mobile phone appears to be stuck, the mobile phone automatically cleans up the application process and reopens the application.
  • FIG. 1 is a schematic flowchart diagram of a process cleaning method according to an embodiment of the present invention. As shown in FIG. 1, the process cleaning method may include the following steps.
  • the mobile terminal acquires a reference open parameter of the application.
  • the mobile terminal may include user equipment running an Android operating system, an iOS operating system, a Windows operating system, or other operating systems, such as a mobile phone, a mobile computer, a tablet, a Personal Digital Assistant (PDA), and the like.
  • Android operating system an iOS operating system
  • Windows operating system or other operating systems, such as a mobile phone, a mobile computer, a tablet, a Personal Digital Assistant (PDA), and the like.
  • PDA Personal Digital Assistant
  • the opening parameter may refer to a parameter involved in opening the application, such as a time required to open the application, 2s, 3s, etc., or an instruction sent by the mobile terminal when the application is started, etc., which is not implemented in the embodiment of the present invention. limited. For example, when the application is opened, the mobile terminal pops up a dialog box, "The application is normally open” or "The application is opened slowly, causing the mobile phone to jam".
  • the reference open parameter may be an open parameter preset by the user in the mobile terminal or the server, or the mobile terminal is set at the factory as a reference. For example, if the user combines his or her actual situation, the time required to open the application is greater than 2 s as the reference open parameter, or the mobile phone is set at the factory to pop up the dialog box of the mobile phone, "The application is opened slowly and the mobile phone is stuck" As the reference, the parameters are turned on and the like.
  • the mobile terminal acquires a current open parameter that currently starts the application.
  • the current open parameter may refer to an open parameter when the application is currently turned on. For example, if the time required to open the application is 3s, the current open parameter may be 3s; for example, if the application is currently opened, the dialog box "The application is opened slowly causes the mobile phone to jam", then The current open parameter is the dialog box "The application is opened too slowly, causing the phone to jam".
  • step S103 The mobile terminal determines whether the current open parameter meets the reference open parameter. If the current open parameter meets the reference open parameter, step S104 is performed, otherwise the process ends.
  • the mobile terminal may determine that the current open parameter satisfies the reference open parameter. For example, if the currently open parameter is currently open the application, the dialog box "The application is opened slowly causes the mobile phone to jam", and the reference open parameter means that the pop-up includes “too slow” when the application is opened or The dialog box of keywords such as "Carton” may determine that the current open parameter satisfies the reference open parameter or the like.
  • the mobile terminal cleans up the process of the application.
  • the mobile terminal obtains a reference open time of the application, and if the mobile terminal determines that the current open time of the current application is greater than the reference open time, the mobile terminal clears the process of the application.
  • the mobile terminal can count the number of times the history is enabled for the application and the history open time required to open the application each time the history is enabled. If the history open times is greater than the preset number of open times, then the history is based on the history. The number of open times and the history open time counts the historical average open time of the application, and calculates the reference open time based on the historical average open time. Alternatively, if the number of historical open times is less than or equal to the preset number of times of opening, the mobile terminal may further query the minimum value of the historical open time in the set of the historical open time, and use the minimum value as The reference open time.
  • the number of historical open times may refer to the number of times the application is installed from the mobile terminal to the current total of being turned on, or the number of times the current application is turned on in total from a specific time set by the user.
  • the application is installed on the mobile terminal on Monday
  • the history open times may be the number of times the application is always turned on from Monday to the current, that is, this Friday; for example, the application is installed on the mobile terminal on Monday.
  • the user setting calculates the number of historical opening times from this Wednesday, the history opening number may be the number of times the application is turned on from Wednesday to the current, that is, the total number of times this Friday is turned on.
  • the application is installed on the mobile terminal on Monday.
  • the application is opened once a week on Monday, 3 times on Tuesday, and 2 on this Wednesday.
  • the number of open times on this Thursday is 2 and the current number of open times on this Friday is 2,
  • the historical open time may refer to the time required to open the application each time the number of historical launches of the application. As shown in Table 2, the time required to open the application on Monday is 1 second; the first time to open the application on Tuesday is 1 second, and the second time to open the application is 3 seconds and The time required to open the application for the third time is 2 seconds; the time required to open the application for the first time on Wednesday is 2 seconds and the time required to open the application for the second time is 1 second; Thursday first The time required to open the application is 1 second and the time required to open the application for the second time is 3 seconds; the first time to open the application on Friday is 1 second, the second time it is turned on The time required for the application is 2 seconds and the time required to open the application for the third time is 2 seconds.
  • the mobile terminal determines that the history open time of the application is greater than the preset number of times of opening, calculates the historical average open time of the application according to the historical open time and the historical open time, and starts according to the historical average.
  • the time calculation calculates the reference open time.
  • the preset number of times of opening may be a threshold of the number of times the user presets in the mobile phone or the server, such as 6 times.
  • the mobile terminal can calculate the historical average open time t average of the application according to the historical open time required to open the application in the history open count and the history open count:
  • the mobile terminal may further add some parameters in the historical average open time t average to obtain the reference start time t refer , such as adding parameters k and b to the t average to obtain the t refer , wherein the user may
  • the mobile terminal may further query the minimum of the historical open time in the set of the historical open time.
  • the mobile terminal can also automatically re-open the application and obtain a re-opening time required to re-open the application. If the re-opening time is greater than the reference open time, the The mobile terminal closes the application.
  • This reopen time can be the time required to reopen the application. For example, if the re-opening time is 1.5 s and the reference open time is 1, the mobile terminal closes the application.
  • the mobile terminal may further receive an instruction input by the user to start the application. For example, a user can click on an application's icon on the phone's desktop to open the application.
  • step S101 and step S102 in the embodiment of the present invention may be interchanged, that is, the mobile terminal may perform step S102 and then perform step S101, which is not limited in the embodiment of the present invention.
  • the mobile terminal when the mobile terminal acquires the current open parameter of the currently open application to satisfy the reference open parameter, the mobile terminal automatically cleans up the process of the application. It can be seen that implementing the method described in FIG. 1 can improve the efficiency of cleaning the mobile phone process compared to the process of manually restarting the mobile phone or clearing the mobile phone by the third party software.
  • FIG. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal shown in FIG. 2 may include:
  • the obtaining unit 201 is configured to acquire a reference open parameter of the application and a current open parameter of the currently open application.
  • the opening parameter may refer to a parameter involved in opening the application, such as a time required to open the application 2s, 3s, etc., or an instruction sent by the mobile terminal when the application is started, and the like. Not limited. For example, when the application is opened, the mobile terminal pops up a dialog box, "The application is normally open” or "The application is opened slowly, causing the mobile phone to jam".
  • the reference open parameter may be an open parameter preset by the user or set by the mobile terminal at the factory as a reference. For example, if the user combines his or her actual situation, the time required to open the application is greater than 2 s as the reference open parameter, or the mobile phone is set at the factory to pop up the dialog box of the mobile phone, "The application is opened slowly and the mobile phone is stuck" As the reference, the parameters are turned on and the like.
  • the current open parameter may refer to an open parameter when the application is currently turned on. For example, if the time required to open the application is 3s, the current open parameter may be 3s; for example, if the application is currently opened, the dialog box "The application is opened slowly causes the mobile phone to jam", then The current open parameter is the dialog box "The application is opened too slowly, causing the phone to jam".
  • the obtaining unit 201 is specifically configured to count the number of historical opening times of the application and the historical opening time required to open the application each time the number of historical opening times. It is determined whether the number of historical open times is greater than the preset number of open times threshold. If the historical number of times of opening is greater than the preset number of times of opening, the historical average opening time of the application is calculated according to the historical opening time and the historical opening time, and the reference opening time is calculated according to the historical average opening time. . If the historical number of times of opening is less than or equal to the preset number of times of opening, querying the minimum value in the set of historical opening times, and calculating the reference opening time according to the minimum value, the history opening time set includes the history opening time.
  • the determining unit 202 is configured to determine whether the current open parameter acquired by the acquiring unit 201 satisfies the reference open parameter.
  • the mobile terminal may determine that the current open parameter satisfies the reference open parameter. For example, if the currently open parameter is currently open the application, the dialog box "The application is opened slowly causes the mobile phone to jam", and the reference open parameter means that the pop-up includes “too slow” when the application is opened or The dialog box of keywords such as "Carton” may determine that the current open parameter satisfies the reference open parameter or the like.
  • the parameter includes a time; the determining unit 202 is configured to detect whether the current open time acquired by the acquiring unit is greater than the reference open time; and when detecting that the current open time is greater than the reference open time, determining The current open parameter satisfies the reference open parameter.
  • the cleaning unit 203 is configured to clear the process of the application when the determining unit 202 determines that the current open parameter satisfies the reference open parameter.
  • FIG. 3 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • the mobile terminal shown in FIG. 3 is optimized by the mobile terminal shown in FIG. 2.
  • the mobile terminal shown in FIG. 3 may further include:
  • the restarting unit 204 is configured to re-open the application after the cleaning unit 203 cleans up the application process, and obtain the re-opening time required to re-open the application.
  • the determining unit 202 is further configured to determine whether the re-opening time is greater than the reference open time.
  • the closing unit 205 is configured to close the application when the determining unit 202 determines that the reopening time is greater than the reference opening time.
  • the restarting unit 204 is further configured to: after the closing unit 205 closes the application, receive an open command input by the user to start the application.
  • Figure 4 illustrates a von Neumann system based computer system 4 running the above process cleanup method.
  • the computer system 4 can be a user terminal device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer or a personal computer.
  • an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included.
  • the external input interface 1001 can include a touch screen 10016, and optionally can include a network interface 10018.
  • the memory 1003 may include an external memory 10032 (eg, a hard disk, an optical disk, or a floppy disk, etc.) and an internal memory 10034.
  • the output interface 1004 can include a display screen 10042 and an audio/horn 10044 device.
  • the operation of the method is based on a computer program, the program file of which is stored in the external memory 10032 of the aforementioned von Neumann system-based computer system 10, and is loaded into the internal memory 10034 at runtime, It is then compiled into a machine code and then passed to the processor 1002 for execution, so that the logical acquisition unit 201, the determination unit 202, the cleaning unit 203, the restart unit 204, and the shutdown unit are formed in the von Neumann system-based computer system 10. 205, and the parameters input during the execution of the process cleaning method are received by the external input interface 1001, and transferred to the cache in the memory 1003, and then input to the processor 1002 for processing, and the processed result data is cached in the memory 1003. Subsequent processing is performed or passed to the output interface 1004 for output.
  • the memory 1003 stores a plurality of instructions that are executed by the processor 1002 to effect process cleanup. Specifically, the processor 1002 acquires a reference open parameter of the application; the processor 1002 acquires a current open parameter that currently opens the application; and the processor 1002 determines whether the current open parameter satisfies the reference The parameter is turned on, and if the current open parameter satisfies the reference open parameter, the processor 1002 cleans up the process of the application.
  • the parameter includes a time; the processor 1002 detects whether the current open time is greater than the reference open time; and when detecting that the current open time is greater than the reference open time, The processor 1002 determines that the current open parameter satisfies the reference open parameter.
  • the processor 1002 counts the number of historical open times of the application and the historical open time required to open the application each time the number of historical open times; the processor 1002 determines Whether the number of times the history is opened is greater than the threshold of the preset number of times of opening; if the number of historically opened times is greater than the preset number of times of opening, the processor 1002 calculates the number of historical opening times and the historical opening time.
  • the historical average open time of the application is started, and the reference open time is calculated according to the historical average open time; if the historical open count is less than or equal to the preset open count threshold, the processing is performed.
  • the device 1002 queries the minimum value of the historical open time in the set of the historical open time, and calculates the reference open time according to the minimum value, where the historical open time set includes the historical open time.
  • the processor 1002 re-opens the application and acquires a re-opening time required to re-open the application; the processor 1002 determines whether the re-opening time is greater than the reference open time, and if the re-opening time is greater than the reference open time, shutting down the application.
  • the processor 1002 receives an open command input by a user to open the application.
  • the units in the mobile terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-Time Programmable Read-Only Memory
  • EEPROM Electronically-Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory

Landscapes

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

Abstract

本发明实施例公开了一种进程清理方法及移动终端,其中,该方法包括:获取应用程序的参考开启参数;获取当前开启所述应用程序的当前开启参数;判断所述当前开启参数是否满足所述参考开启参数,若所述当前开启参数满足所述参考开启参数,则清理所述应用程序的进程。实施本发明实施例,能够提高清理手机进程的效率。

Description

一种进程清理方法及移动终端
本申请要求于2016年7月28日提交中国专利局,申请号为201610612549.5、发明名称为“一种进程清理方法及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信技术领域,尤其涉及一种进程清理方法及移动终端。
背景技术
在安卓手机中,太多无用的进程和服务在后台运行会占用用户的手机内存,从而导致手机内存不足、手机卡顿的情况发生。通常,用户会通过关机或第三方软件来清理手机进程。比如,当用户发现手机上网卡、或开启APP所需的时间较长时,用户会重启手机来清理手机后台运行的进程或通过第三方软件自主选择手机进程进行清理。但是,实践中发现,通过用户手动重启手机或第三方软件来清理手机进程的效率较低。
发明内容
本发明实施例公开了一种进程清理方法及移动终端,能够提高清理手机进程的效率。
本发明实施例第一方面公开了一种进程清理方法,包括:
获取应用程序的参考开启参数;
获取当前开启所述应用程序的当前开启参数;
判断所述当前开启参数是否满足所述参考开启参数,若所述当前开启参数满足所述参考开启参数,则清理所述应用程序的进程。
本发明实施例第二方面公开了一种移动终端,包括:
获取单元,设置为获取应用程序的参考开启参数和当前开启所述应用程序的当前开启参数;
判断单元,设置为判断所述获取单元获取的所述当前开启参数是否满足所述参考开启参数;
清理单元,设置为在所述判断单元判断所述当前开启参数满足所述参考开启参数时,清理所述应用程序的进程。
本发明实施例中,当移动终端获取当前开启应用程序的当前开启参数满足参考开启参数时,则该移动终端自动清理该应用程序的进程。可见,与通过用户手动重启手机或通过第三方软件来清理手机进程相比,实施本发明实施例能够提高清理手机进程的效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种进程清理方法的流程示意图;
图2是本发明实施例公开的一种移动终端的结构示意图;
图3是本发明实施例公开的另一种移动终端的结构示意图;
图4是本发明实施例公开的一种运行上述进程清理方法的基于冯诺依曼体系的计算机系统。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
本发明实施例公开了一种进程清理方法及移动终端,能够提高清理手机进程的效率。以下分别进行详细说明。
本发明实施例可以应用于当用户打开某个应用程序而出现手机出现卡顿时,该手机会自动清理该应用程序的进程,并重新打开该应用程序。
请参见图1,图1为本发明实施例公开的一种进程清理方法的流程示意图。如图1所示,该进程清理方法可以包括以下步骤。
S101、移动终端获取应用程序的参考开启参数。
该移动终端可以包括运行Android操作系统、iOS操作系统、Windows操作系统或其他操作系统的用户设备,例如移动电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant, PDA)等。
开启参数可以指在开启该应用程序时所涉及到的参数,比如开启该应用程序所需的时间2s、3s等、或开启该应用程序时该移动终端所发送的指令等,本发明实施例不作限定。比如在开启该应用程序时该移动终端弹出对话框“该应用程序正常开启”或“该应用程序开启过缓导致手机卡顿”等。
该参考开启参数可以是用户预设在移动终端或服务器中、或移动终端在出厂时已设置好可以作为参考的开启参数。比如用户结合自己的实际情况将开启该应用程序所需的时间大于2s作为该参考开启参数,或手机在出厂时已设置好将手机弹出的对话框“该应用程序开启过缓导致手机卡顿”作为该参考开启参数等。
S102、该移动终端获取当前开启该应用程序的当前开启参数。
该当前开启参数可以指当前开启该应用程序时的开启参数。比如当前开启该应用程序时所需要的时间为3s,则该当前开启参数可以为3s;再比如,若当前开启该应用程序时弹出对话框“该应用程序开启过缓导致手机卡顿”,则该当前开启参数为对话框“该应用程序开启过缓导致手机卡顿”等。
S103、该移动终端判断该当前开启参数是否满足该参考开启参数,若该当前开启参数满足该参考开启参数,则执行步骤S104,否则结束本流程。
若该当前开启参数为当前开启该应用程序时所需的时间3s,且该参考开启参数为开启该应用程序所需的时间大于2s,则该移动终端可以判断该当前开启参数满足该参考开启参数;再比如,若当前开启参数为当前开启该应用程序时弹出对话框“该应用程序开启过缓导致手机卡顿”,且该参考开启参数指在开启该应用程序时弹出包含“过缓”或“卡顿”等关键词的对话框,则该移动终端可以判断该当前开启参数满足该参考开启参数等。
S104、该移动终端清理该应用程序的进程。
可选的,该移动终端获取该应用程序的参考开启时间,若该移动终端判断当前开启该应用程序的当前开启时间大于该参考开启时间时,则该移动终端清理该应用程序的进程。
其中该移动终端可以统计开启该应用程序的历史开启次数以及该历史开启次数中每次开启该应用程序所需的历史开启时间,若该历史开启次数大于预设的开启次数阈值,则根据该历史开启次数和该历史开启时间计算开启该应用程序的历史平均开启时间,并根据该历史平均开启时间计算该参考开启时间。或者,可选的,若该历史开启次数小于或等于预设的开启次数阈值,该移动终端还可以在该历史开启时间组成的集合中查询该历史开启时间的最小值,并将该最小值作为该参考开启时间。
该历史开启次数可以指该从该应用程序安装在该移动终端到当前总共被开启的次数,或从用户所设置的某一具体时间开始到当前该应用程序总共被开启的次数等。比如,该应用程序在周一安装在该移动终端,该历史开启次数可以为该应用程序从周一到当前即本周五总共被开启的次数;再比如,该应用程序在周一安装在该移动终端,且用户设置从本周三开始计算该历史开启次数,则该历史开启次数可以为该应用程序从周三到当前即本周五总共被开启的次数等。
举例来说,如表1所示,应用程序在周一的时候被安装在该移动终端,在周一该应用程序的开启次数为1次,本周二开启次数为3次,本周三开启次数2次,本周四开启次数为2次和当前本周五开启次数为2次,则该应用程序的历史开启次数可以统计本周一到本周五总共被开启的次数1+3+2+2+2=10次;或该应用程序的历史开启次数还可以为从用户设置的本周三开始到当前本周五总共被开启的次数2+2+2=6次等。
表1
时间 开启次数
周一 1
周二 3
周三 2
周四 2
周五 3
该历史开启时间可以指在该应用程序的该历史启动次数中,每次开启该应用程序所需的时间。如表2所示,周一开启该应用程序所需的时间为1秒;周二第一次开启该应用程序所需的时间为1秒,第二次开启该应用程序所需的时间为3秒和第三次开启该应用程序所需的时间为2秒;周三第一次开启该应用程序所需的时间为2秒和第二次开启该应用程序所需的时间为1秒;周四第一次开启该应用程序所需的时间为1秒和第二次开启该应用程序所需的时间为3秒;周五第一次开启该应用程序所需的时间为1秒,第二次开启该应用程序所需的时间为2秒和第三次开启该应用程序所需的时间为2秒。
表2
Figure WO40092-appb-I000001
当移动终端判断该应用程序的历史开启次数大于该预设的开启次数阈值时,则该移动终端根据该历史开启次数和该历史开启时间计算开启该应用程序的历史平均开启时间以及根据历史平均开启时间计算计算得出该参考开启时间。其中,该预设的开启次数阈值可以是用户预先设置在手机或服务器中的开启次数阈值,比如6次等。结合表2举例来说,若该预设开启次数阈值为5次,且该应用程序的该历史开启次数为从周一到周五总共被开启的次数之和1+3+2+2+2=10次,则该移动终端可以根据该历史开启次数和该历史开启次数中每次开启该应用程序所需的该历史开启时间计算开启该应用程序的历史平均开启时间taverage
taverage=(1+1+3+2+2+1+1+3+1+2+2)/(1+3+2+2+2)=1.9s
另外,该移动终端还可以在该历史平均开启时间taverage中增加某些参数来得到该参考开始时间trefer,比如在该taverage增加参数k和b来得到该trefer,其中用户可以根据自己的需求对k和b设定,比如k=2,b=1等:
trefer=ktaverage+b
可选的,若该移动终端判断该应用程序的历史开启次数小于或等于该预设的开启次数阈值时,则该移动终端还可以在该历史开启时间组成的集合中查询该历史开启时间的最小值,并将该最小值作为该参考开启时间。即,若该历史开启时间组成的集合A={t1,t2 ,t3……,tn},则参考开启时间trefer=min{t1,t2 ,t3……,tn}。结合表2举例来说,若该预设开启次数阈值为11次,且该应用程序的该历史开启次数为从周一到周五总共被开启的次数之和1+3+2+2+2=10次,则该移动终端可以在该历史开启时间组成的集合{1,1,3,2,2,1,1,3,1,2,2}中查询该历史开启时间的最小值作为该参考开启时间即trefer=min{1,1,3,2,2,1,1,3,1,2,2}=1,即表2中该参考开启时间trefer还可以为1。
在该移动终端清理该应用程序进程之后,该移动终端还可以自动重新开启该应用程序,并获取重新开启该应用程序所需的重新开启时间,若该重新开启时间大于该参考开启时间,则该移动终端关闭该应用程序。
该重新开启时间可以指重新开启该应用程序所需的时间。比如,若该重新开启时间为1.5s,参考开启时间为1,则该移动终端关闭该应用程序。
可选的,该移动终端还可以判断该重新开启时间是否大于参考开启时间的a倍,若该重新开启时间大于该参考开启时间的a倍,则该移动终端关闭该应用程序。即若该重新开启时间tagain>atrefer,则该移动终端关闭该应用程序,其中用户可根据自己的需求对a设定,比如a=2等。
可选的,在该移动终端关闭该应用程序之后,该移动终端还可以接收用户输入的指令来开启该应用程序。比如,用户可以在手机桌面上点击应用程序的图标来开启该应用程序。
需要说明的是,本发明实施例中步骤S101和步骤S102的顺序可互换,即该移动终端可以先执行步骤S102再执行步骤S101,本发明实施例不作限定。
在图1所描述的方法中,当移动终端获取当前开启应用程序的当前开启参数满足参考开启参数时,则该移动终端自动清理该应用程序的进程。可见,实施图1描述的方法,与通过用户手动重启手机或通过第三方软件来清理手机进程相比,实施本发明实施例能够提高清理手机进程的效率。
请参见图2,图2是本发明实施例公开的一种移动终端的结构示意图。其中,图2所示的移动终端可以包括:
获取单元201,设置为获取应用程序的参考开启参数和当前开启该应用程序的当前开启参数。
该开启参数可以指在开启该应用程序时所涉及到的参数,比如开启该应用程序所需的时间2s、3s等、或开启该应用程序时该移动终端所发送的指令等,本发明实施例不作限定。比如在开启该应用程序时该移动终端弹出对话框“该应用程序正常开启”或“该应用程序开启过缓导致手机卡顿”等。
该参考开启参数可以是用户预设的、或移动终端在出厂时已设置好可以作为参考的开启参数。比如用户结合自己的实际情况将开启该应用程序所需的时间大于2s作为该参考开启参数,或手机在出厂时已设置好将手机弹出的对话框“该应用程序开启过缓导致手机卡顿”作为该参考开启参数等。
该当前开启参数可以指当前开启该应用程序时的开启参数。比如当前开启该应用程序时所需要的时间为3s,则该当前开启参数可以为3s;再比如,若当前开启该应用程序时弹出对话框“该应用程序开启过缓导致手机卡顿”,则该当前开启参数为对话框“该应用程序开启过缓导致手机卡顿”等。
可选的,该获取单元201,具体设置为统计开启该应用程序的历史开启次数以及该历史开启次数中每次开启该应用程序所需的历史开启时间。判断该历史开启次数是否大于该预设的开启次数阈值。若该历史开启次数大于该预设的开启次数阈值,则根据该历史开启次数和该历史开启时间计算开启该应用程序的历史平均开启时间,并根据该历史平均开启时间计算得出该参考开启时间。若该历史开启次数小于或等于该预设的开启次数阈值,则查询该历史开启时间集合中的最小值,并根据该最小值计算得出该参考开启时间,该历史开启时间集合包括该历史开启时间。
判断单元202,设置为判断该获取单元201获取的该当前开启参数是否满足该参考开启参数。
若该当前开启参数为当前开启该应用程序时所需的时间3s,且该参考开启参数为开启该应用程序所需的时间大于2s,则该移动终端可以判断该当前开启参数满足该参考开启参数;再比如,若当前开启参数为当前开启该应用程序时弹出对话框“该应用程序开启过缓导致手机卡顿”,且该参考开启参数指在开启该应用程序时弹出包含“过缓”或“卡顿”等关键词的对话框,则该移动终端可以判断该当前开启参数满足该参考开启参数等。
可选的,该参数包括时间;该判断单元202,具体设置为检测该获取单元获取的该当前开启时间是否大于该参考开启时间;当检测该当前开启时间大于该参考开启时间时,则判断出该当前开启参数满足该参考开启参数。
清理单元203,设置为在该判断单元202判断该当前开启参数满足该参考开启参数时,清理该应用程序的进程。
可见,实施图2描述的移动终端,能够提高清理手机进程的效率。
请参见图3,图3为本发明实施例公开的另一种移动终端的结构示意图,其中,图3所示的移动终端是由图2所示的移动终端进行优化得到的。与图2所示的移动终端相比,图3所示的移动终端还可以包括:
重启单元204,设置为在该清理单元203清理该应用程序的进程之后重新开启该应用程序,以及获取重新开启该应用程序所需的重新开启时间。
该判断单元202,还设置为判断该重新开启时间是否大于该参考开启时间。
关闭单元205,设置为在该判断单元202判断该重新开启时间大于该参考开启时间时,关闭该应用程序。
可选的,该重启单元204,还设置为在该关闭单元205关闭该应用程序之后,接收用户输入的开启指令来开启该应用程序。
可见,实施图3描述的移动终端,能够提高清理手机进程的效率。
图4展示了一种运行上述进程清理方法的基于冯诺依曼体系的计算机系统4。该计算机系统4可以是智能手机、平板电脑、掌上电脑,笔记本电脑或个人电脑等用户终端设备。具体的,可包括通过系统总线连接的外部输入接口1001、处理器1002、存储器1003和输出接口1004。其中,外部输入接口1001可包括触控屏10016,可选的还可以包括网络接口10018。存储器1003可包括外存储器10032(例如硬盘、光盘或软盘等)和内存储器10034。输出接口1004可包括显示屏10042和音响/喇叭10044等设备。
在本实施例中,本方法的运行基于计算机程序,该计算机程序的程序文件存储于前述基于冯诺依曼体系的计算机系统10的外存储器10032中,在运行时被加载到内存储器10034中,然后被编译为机器码之后传递至处理器1002中执行,从而使得基于冯诺依曼体系的计算机系统10中形成逻辑上的获取单元201、判断单元202、清理单元203、重启单元204及关闭单元205,且在上述进程清理方法执行过程中输入的参数均通过外部输入接口1001接收,并传递至存储器1003中缓存,然后输入到处理器1002中进行处理,处理的结果数据或缓存于存储器1003中进行后续地处理,或被传递至输出接口1004进行输出。
在本发明的实施例中,所述存储器1003存储多个指令,所述多个指令被所述处理器1002所执行以实现进程清理。具体而言,所述处理器1002获取应用程序的参考开启参数;所述处理器1002获取当前开启所述应用程序的当前开启参数;所述处理器1002判断所述当前开启参数是否满足所述参考开启参数,若所述当前开启参数满足所述参考开启参数,则所述处理器1002清理所述应用程序的进程。
在进一步的实施例中,所述参数包括时间;所述处理器1002检测所述当前开启时间是否大于所述参考开启时间;当检测所述当前开启时间大于所述参考开启时间时,则所述处理器1002判断出所述当前开启参数满足所述参考开启参数。
在进一步的实施例中,所述处理器1002统计开启所述应用程序的历史开启次数以及所述历史开启次数中每次开启所述应用程序所需的历史开启时间;所述处理器1002判断所述历史开启次数是否大于所述预设的开启次数阈值;若所述历史开启次数大于所述预设的开启次数阈值,则所述处理器1002根据所述历史开启次数和所述历史开启时间计算开启所述应用程序的历史平均开启时间,并根据所述历史平均开启时间计算得出所述参考开启时间;若所述历史开启次数小于或等于所述预设的开启次数阈值,则所述处理器1002在所述历史开启时间组成的集合中查询所述历史开启时间的最小值,并根据所述最小值计算得出所述参考开启时间,所述历史开启时间集合包括所述历史开启时间。
在进一步的实施例中,在所述清理所述应用程序的进程之后,所述处理器1002重新开启所述应用程序,以及获取重新开启所述应用程序所需的重新开启时间;所述处理器1002判断所述重新开启时间是否大于所述参考开启时间,若所述重新开启时间大于所述参考开启时间,则关闭所述应用程序。
在进一步的实施例中,在所述关闭所述应用程序之后,所述处理器1002接收用户输入的开启指令来开启所述应用程序。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例移动终端中的单元可以根据实际需要进行合并、划分和删减。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。
以上对本发明实施例公开的一种进程清理方法及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (10)

  1. 一种进程清理方法,其特征在于,所述方法包括:
    获取应用程序的参考开启参数;
    获取当前开启所述应用程序的当前开启参数;
    判断所述当前开启参数是否满足所述参考开启参数,若所述当前开启参数满足所述参考开启参数,则清理所述应用程序的进程。
  2. 根据权利要求1所述的方法,其特征在于,所述参数包括时间;所述判断所述当前开启参数是否满足所述参考开启参数,包括:
    检测所述当前开启时间是否大于所述参考开启时间;
    当检测所述当前开启时间大于所述参考开启时间时,则判断出所述当前开启参数满足所述参考开启参数。
  3. 根据权利要求2所述的方法,其特征在于,所述获取应用程序的参考开启参数,包括:
    统计开启所述应用程序的历史开启次数以及所述历史开启次数中每次开启所述应用程序所需的历史开启时间;
    判断所述历史开启次数是否大于所述预设的开启次数阈值;
    若所述历史开启次数大于所述预设的开启次数阈值,则根据所述历史开启次数和所述历史开启时间计算开启所述应用程序的历史平均开启时间,并根据所述历史平均开启时间计算得出所述参考开启时间;
    若所述历史开启次数小于或等于所述预设的开启次数阈值,则在所述历史开启时间组成的集合中查询所述历史开启时间的最小值,并根据所述最小值计算得出所述参考开启时间,所述历史开启时间集合包括所述历史开启时间。
  4. 根据权利要求3所述的方法,其特征在于,所述清理所述应用程序的进程之后,所述方法还包括:
    重新开启所述应用程序,以及获取重新开启所述应用程序所需的重新开启时间;
    判断所述重新开启时间是否大于所述参考开启时间,若所述重新开启时间大于所述参考开启时间,则关闭所述应用程序。
  5. 根据权利要求4所述的方法,其特征在于,所述关闭所述应用程序之后,所述方法还包括:
    接收用户输入的开启指令来开启所述应用程序。
  6. 一种移动终端,其特征在于,所述移动终端包括:
    获取单元,设置为获取应用程序的参考开启参数和当前开启所述应用程序的当前开启参数;
    判断单元,设置为判断所述获取单元获取的所述当前开启参数是否满足所述参考开启参数;
    清理单元,设置为在所述判断单元判断所述当前开启参数满足所述参考开启参数时,清理所述应用程序的进程。
  7. 根据权利要求6所述的移动终端,其特征在于,所述参数包括时间;所述判断单元,具体设置为检测所述获取单元获取的所述当前开启时间是否大于所述参考开启时间;当检测所述当前开启时间大于所述参考开启时间时,则判断出所述当前开启参数满足所述参考开启参数。
  8. 根据权利要求7所述的移动终端,其特征在于,所述获取单元,具体设置为统计开启所述应用程序的历史开启次数以及所述历史开启次数中每次开启所述应用程序所需的历史开启时间;
    判断所述历史开启次数是否大于所述预设的开启次数阈值;
    若所述历史开启次数大于所述预设的开启次数阈值,则根据所述历史开启次数和所述历史开启时间计算开启所述应用程序的历史平均开启时间,并根据所述历史平均开启时间计算得出所述参考开启时间;
    若所述历史开启次数小于或等于所述预设的开启次数阈值,则在所述历史开启时间组成的集合中查询所述历史开启时间的最小值,并根据所述最小值计算得出所述参考开启时间,所述历史开启时间集合包括所述历史开启时间。
  9. 根据权利要求8所述的移动终端,其特征在于,所述移动终端还包括:
    重启单元,设置为在所述清理单元清理所述应用程序的进程之后重新开启所述应用程序,以及获取重新开启所述应用程序所需的重新开启时间;
    所述判断单元,还设置为判断所述重新开启时间是否大于所述参考开启时间;
    关闭单元,设置为在所述判断单元判断所述重新开启时间大于所述参考开启时间时,关闭所述应用程序。
  10. 根据权利要求9所述的移动终端,其特征在于,所述重启单元,还设置为在所述关闭单元关闭所述应用程序之后,接收用户输入的开启指令来开启所述应用程序。
PCT/CN2016/097045 2016-07-28 2016-08-27 一种进程清理方法及移动终端 Ceased WO2018018690A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610612549.5 2016-07-28
CN201610612549.5A CN106293910B (zh) 2016-07-28 2016-07-28 一种进程清理方法及移动终端

Publications (1)

Publication Number Publication Date
WO2018018690A1 true WO2018018690A1 (zh) 2018-02-01

Family

ID=57663256

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097045 Ceased WO2018018690A1 (zh) 2016-07-28 2016-08-27 一种进程清理方法及移动终端

Country Status (2)

Country Link
CN (1) CN106293910B (zh)
WO (1) WO2018018690A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298549A (zh) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 移动终端中应用程序的清理方法、装置和移动终端
CN104503750A (zh) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 进程清理方法及装置
CN104714874A (zh) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 一种移动终端内存智能优化的方法及移动终端
CN104731302A (zh) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 一种移动终端省电操作的方法及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937863B (zh) * 2012-09-19 2017-04-05 小米科技有限责任公司 基于移动终端的应用程序控制方法、装置和一种移动终端
CN103024538A (zh) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 内存管理方法及系统
CN105786519B (zh) * 2016-03-17 2021-04-09 瑞芯微电子股份有限公司 安卓设备程序管理方法和安卓设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731302A (zh) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 一种移动终端省电操作的方法及系统
CN104298549A (zh) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 移动终端中应用程序的清理方法、装置和移动终端
CN104503750A (zh) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 进程清理方法及装置
CN104714874A (zh) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 一种移动终端内存智能优化的方法及移动终端

Also Published As

Publication number Publication date
CN106293910B (zh) 2020-02-18
CN106293910A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
CN103530235B (zh) 移动终端中清理内存的方法及装置
WO2017012404A1 (zh) 群组管理方法、终端和存储介质
WO2014079322A1 (zh) 音频流媒体的跟踪方法及系统、存储介质
CN105760229A (zh) 一种清除后台运行程序的方法、装置及移动终端
CN106250180B (zh) 一种odex优化控制方法及移动终端
WO2012155709A1 (zh) 一种动态推送用户个人标签的方法和系统、存储介质
CN108427598A (zh) 消息处理方法、装置、终端及存储介质
WO2017166036A1 (zh) 一种资源统计方法、装置及终端
CN107317928B (zh) 信息处理方法、移动终端及计算机可读存储介质
CN107301086A (zh) 进程处理方法、装置、移动终端及计算机可读取存储介质
CN103500106A (zh) 启动移动通讯终端中应用程序的方法及装置
CN111597009B (zh) 应用程序显示的方法、装置及终端设备
WO2018094839A1 (zh) 一种移动终端预装应用的安装方法及装置
WO2018018690A1 (zh) 一种进程清理方法及移动终端
WO2018058779A1 (zh) 文件打开方法及系统
WO2017219534A1 (zh) 一种应用程序的处理方法及系统
WO2021134237A1 (zh) 一种视频录制方法、装置及计算机可读存储介质
US20180366104A1 (en) Adjust output characteristic
WO2020000742A1 (zh) 一种去重流量记录方法、装置、服务器及存储介质
CN107992626A (zh) 缓存清理方法、装置、终端及存储介质
CN107707759A (zh) 终端控制方法、装置以及系统、存储介质
US11094327B2 (en) Audible input transcription
WO2019218434A1 (zh) 程序的启动方法、用户设备、存储介质及装置
CN109658930B (zh) 语音信号处理方法、电子装置及计算机可读存储介质
CN110874730B (zh) 信息处理方法、信息处理装置及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16910269

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16910269

Country of ref document: EP

Kind code of ref document: A1