WO2015120708A1 - 应用管理方法及装置 - Google Patents

应用管理方法及装置 Download PDF

Info

Publication number
WO2015120708A1
WO2015120708A1 PCT/CN2014/084574 CN2014084574W WO2015120708A1 WO 2015120708 A1 WO2015120708 A1 WO 2015120708A1 CN 2014084574 W CN2014084574 W CN 2014084574W WO 2015120708 A1 WO2015120708 A1 WO 2015120708A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
memory
managed
determined
module
Prior art date
Application number
PCT/CN2014/084574
Other languages
English (en)
French (fr)
Inventor
张康宗
罗勇
杨海英
肖超
Original Assignee
贝壳网际(北京)安全技术有限公司
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 贝壳网际(北京)安全技术有限公司 filed Critical 贝壳网际(北京)安全技术有限公司
Priority to US15/105,431 priority Critical patent/US10268515B2/en
Publication of WO2015120708A1 publication Critical patent/WO2015120708A1/zh

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/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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Definitions

  • the present invention relates to the field of application processing technologies, and in particular, to an application management method and apparatus. Background technique
  • the embodiment of the invention discloses an application management method and device, so as to improve the startup speed of the application, reduce the occurrence probability of the phenomenon that the application starts, the operation error, the crash, and the like, and improve the cleanliness of the user desktop.
  • the embodiment of the present invention discloses an application management method, which is applied to an electronic device, and the method includes:
  • the providing the memory resource for the determined to-be-managed application includes:
  • the memory resource is released to meet the memory requirement of the to-be-managed application determined by the startup.
  • the obtaining the memory size required for starting the determined to-be-managed application comprises:
  • the query obtains the memory size required for starting the determined application to be managed; or sends the memory query request information to the server, and obtains the required internal application to be managed from the server.
  • the size of the to-be-managed application is carried in the memory query request information.
  • the memory query request information further carries hardware information of the current electronic device
  • the server side comprehensively determines the memory size required to start the determined to-be-managed application according to the identifier of the application and the hardware information of the front electronic device according to the link information in the memory query request information.
  • the releasing the memory resource includes:
  • the memory resources occupied by the processes are sequentially released according to the time in which the processes are not used, from long to short.
  • the time that each process is not used is in the order of long to short, and then the operating system is exited according to each process.
  • the restart period is from long to short, and the memory resources occupied by each process are released in turn.
  • the application management method further includes:
  • the running status of the determined application to be managed is monitored, and if the application to be managed is detected to be finished running, the determined memory resources occupied by the to-be-managed application are released.
  • the application management method further includes:
  • an embodiment of the present invention discloses an application management apparatus, which is applied to an electronic device, where the apparatus includes: an application monitoring module, a to-be-managed application determining module, a folder establishing module, a shortcut operation identifier generating module, and a memory resource. Providing a module and an application startup module;
  • the application detecting module is configured to detect an application currently installed in the electronic device
  • the to-be-managed application determining module is configured to determine, according to a preset rule, an application to be managed from the detection result; and the folder establishing module is configured to establish an application management folder;
  • the shortcut operation identifier generating module is configured to generate, in the application management folder, the shortcut operation identifier of the determined application to be managed;
  • the memory resource providing module is configured to determine, after receiving an operation of the user for the shortcut operation identifier
  • the managed application provides memory resources
  • the application startup module is configured to start the determined to-be-managed application after receiving the operation of the identifier for the shortcut operation by the user.
  • the memory resource providing module includes: a memory requirement obtaining submodule, a memory determining submodule, and a memory releasing submodule;
  • the memory requirement obtaining sub-module is configured to obtain a memory size required for starting the determined to-be-managed application; and the memory determining sub-module is configured to determine whether the current remaining memory resource meets a memory requirement of the to-be-managed application determined by the startup. ;
  • the memory release submodule is configured to release the memory resource to meet the memory requirement of the to-be-managed application determined by the startup, if the determination result of the memory determination sub-module is negative.
  • the memory requirement obtaining submodule is configured to query, in a locally preset memory requirement list, a memory size required to start the determined application to be managed; or
  • the method is configured to send the memory query request information to the server, and obtain, by the server, the memory size required to start the determined application to be managed, where the memory query request information carries the determined identifier of the to-be-managed application.
  • the memory request obtaining information in the memory query request sent by the sub-module further carries hardware information of the current electronic device;
  • the server side comprehensively determines the memory size required to start the determined to-be-managed application according to the identifier of the application and the hardware information of the front electronic device according to the link information in the memory query request information.
  • the memory release submodule includes: a first release unit and a second release unit;
  • the memory release sub-module is configured to sequentially release the memory resources occupied by each process in the current electronic device according to the sequence of triggering the first release unit and then triggering the second release unit, to satisfy the determination determined by the startup.
  • the first release unit is configured to release a memory resource occupied by a process that is not restarted by the operating system after exiting;
  • the second release unit is configured to release a memory resource occupied by a process that is restarted by the operating system after exiting.
  • the first release unit is specifically used in the process of releasing the memory resources occupied by the process that is not restarted by the operating system after the exit, according to the time that each process is not used, from long to short. , in turn release the memory resources occupied by each process.
  • the second release unit is specifically configured to: in the process of releasing the memory resources occupied by the process restarted by the operating system after the exit, first, according to the time that each process is not used, from long to short Then, according to the period from the longest to the shortest, the cycle of restarting by the operating system after each process exits, sequentially releasing the memory resources occupied by each process.
  • the application management device further includes: an application status monitoring module;
  • the application state monitoring module is configured to monitor the determined running state of the to-be-managed application, and if the monitoring to-be-managed application ends running, release the determined memory resource occupied by the to-be-managed application.
  • the application management device further includes: an application recommendation request sending module and an application recommendation information receiving module; the application recommendation request sending module, configured to send an application recommendation request to the server, where the application recommendation request is Carrying the identified identification information of the application to be managed;
  • the application recommendation information receiving module is configured to receive application recommendation information determined by the server according to the application recommendation request information, and display the application recommendation information to the user.
  • the management of the determined to-be-managed application is implemented by generating the determined shortcut operation identifier of the to-be-managed application in the established application management folder, so that the user desktop is neat and convenient for the user to operate. .
  • the determined operation of the to-be-managed application to provide the memory resource may be triggered, and the operation of starting the determined to-be-managed application is triggered, and the determined to-be-managed application is started.
  • the memory resources required to start the application can be obtained by releasing memory resources, etc., which can effectively improve the startup speed of the application and reduce the probability of occurrences such as stuck, running errors, and crashes.
  • Embodiments of the present invention also provide a computer readable storage medium comprising computer instructions that, when executed, cause an application management method in accordance with an embodiment of the present invention to be performed.
  • FIG. 1 is a schematic flowchart of an application management method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for providing memory resources for a determined application to be managed in the embodiment shown in FIG. 1.
  • FIG. 3 is a schematic structural diagram of an application management apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a memory resource providing module in the embodiment shown in FIG. 3. detailed description
  • FIG. 1 is a schematic flowchart of an application management method according to an embodiment of the present disclosure, where the method is applied to an electronic device, include:
  • S102 Determine, according to a preset rule, an application to be managed from the detection result.
  • the preset rules may include the following:
  • the attribute information may be used to divide the application in the detection result into: a game application, an office application, a development application, and the like; and matching the application information in the detection result obtained by S101 with the application information in the locally stored application classification list, Obtaining classification information applied in the detection result, wherein the application classification list may store classification information of common applications, and the list may be stored locally after being obtained from the server, and updated periodically, or manually generated locally.
  • the present invention is only described by taking the above as an example, and does not limit the specific form of the preset rule. In practical applications, it may be set according to a specific situation.
  • the shortcut operation identifier of the determined to-be-managed application is generated in the application management folder; after receiving the operation of the shortcut operation identifier by the user, triggering an operation of providing a memory resource for the determined to-be-managed application, And an operation that triggers the activation of the to-be-managed application determined.
  • the user may trigger an operation of providing a memory resource for the determined application to be managed, and triggering an operation of starting the determined application to be managed by clicking a shortcut operation identifier in the application management folder.
  • the operation of providing the memory resource may be triggered first, and then the operation of starting the application may be triggered, or both may be triggered at the same time.
  • the operation of providing a memory resource for the determined application to be managed first, determining whether the current remaining memory resource can meet the memory requirement of the to-be-managed application determined by the startup, and if yes, indicating that there is no shortage of memory resources, If the information is not satisfied, the memory is insufficient. You need to release the memory resources through the memory release operation to ensure that the application can start normally.
  • the method may further include: monitoring the determined running state of the to-be-managed application, and if detecting that the to-be-managed application ends running, releasing the determined memory resource occupied by the to-be-managed application .
  • the memory resources may be insufficient, which may affect the startup and operation of other applications.
  • the Android operating system has the feature of not releasing the memory after exiting the application.
  • the memory resources can be released in time, and the memory resource shortage can be avoided to a certain extent.
  • the method may further include:
  • the server may classify according to the determined identifier of the application to be managed, and select related application information in the category to perform recommendation. For example, the server determines that the application to be managed includes the game type and the office application, and the server side can select the game application information and the office application information as the application recommendation information. To improve the accuracy of recommending information to users.
  • the management of the determined to-be-managed application is implemented by generating the determined shortcut operation identifier of the to-be-managed application in the established application management folder, so that the user desktop is neat and convenient for the user to operate. .
  • the determined operation of the to-be-managed application can be triggered by the determined shortcut operation identifier of the to-be-managed application, and the operation of starting the determined to-be-managed application is triggered, when the determined to-be-managed application is started,
  • the memory resources required to start the application can be obtained by releasing memory resources, etc., which can effectively improve the startup speed of the application and reduce the probability of occurrences such as stuck, running errors, and crashes.
  • FIG. 2 A schematic flowchart of a method for providing a memory resource by a to-be-managed application, including:
  • S104A Get the memory size required to start the determined application to be managed.
  • the memory size required to start the determined application to be managed may be obtained from the server by sending the memory query request information to the server.
  • the memory query request information needs to carry the determined identifier of the to-be-managed application, and the server determines, according to the determined identifier of the to-be-managed application, the memory size required to start the determined to-be-managed application.
  • the memory query request information may further carry hardware information of the current electronic device, and the server may comprehensively determine the determined start according to the determined identifier of the to-be-managed application and the hardware information of the current electronic device in the memory query request information.
  • the hardware information of the current electronic device may be information such as the size of the screen. When the screen of the current electronic device is large, the memory resource required to start the determined application to be managed is large, and when the screen of the current electronic device is small, the determined operation is started. The memory resources to be managed by the application are small.
  • the application does not limit the information carried in the memory query request information, and may be set according to specific conditions in an actual application.
  • the memory size required for starting the determined application to be managed may be obtained in a locally preset memory requirement list.
  • the preset memory requirement list may be a list that is obtained from the server and stored locally, and includes a plurality of application memory requirements.
  • the preset memory may be obtained according to the determined identifier of the to-be-managed application.
  • the size of the memory required to start the determined application to be managed is obtained in the demand list.
  • the preset memory requirement list may also be a locally generated memory demand list for the current electronic device according to the characteristics of the user.
  • the user when the user starts the determined application to be managed for the first time, the user needs to send the memory query request information to the server, and obtain the memory size required for starting the determined application to be managed from the server, and Update the memory requirement information to the memory requirements list.
  • the corresponding information can be obtained directly from the local preset memory requirement list without being obtained from the server.
  • S104B Determine whether the current remaining memory resource meets the memory requirement of the to-be-managed application determined by the startup. If not, execute S104C, otherwise, execute S104D.
  • S104C The memory resource is released to meet the memory requirement of the to-be-managed application determined by the startup.
  • the memory resource occupied by the process that is not restarted by the operating system after the exit is released may be released, and then the memory resources occupied by the process restarted by the operating system after the exit is released, and the current memory resources are sequentially released.
  • the memory resources occupied by each process in the electronic device, to meet the memory requirements of the application to be managed determined by the startup: a process that is not restarted by the operating system after exiting;
  • the memory resources occupied by each process may be sequentially released according to the length of each process that is not used.
  • the time that each process is not used may be in the order of long to short, and then the cycle restarted by the operating system after each process is exited.
  • the memory resources occupied by each process are released in sequence.
  • the period of restarting process A is 10 seconds
  • the period of restarting process B is 20 seconds.
  • the memory resources occupied by process B are preferentially released.
  • FIG. 3 is a schematic structural diagram of an application management apparatus according to an embodiment of the present disclosure, where the apparatus is applied to an electronic device,
  • the application detecting module 301 is configured to detect an application currently installed in the electronic device
  • the to-be-managed application determining module 302 is configured to determine, according to a preset rule, an application to be managed from the detection result, and a folder establishing module 303, configured to establish an application management folder;
  • a shortcut operation identifier generating module 304 configured to generate, in the application management folder, the shortcut operation identifier of the determined to-be-managed application;
  • the memory resource providing module 305 is configured to: after receiving the operation of the user for the shortcut operation identifier, provide a memory resource for the determined to-be-managed application;
  • the application startup module 306 is configured to start the determined to-be-managed application after receiving the operation of the user for the shortcut operation identifier.
  • the apparatus may further include: an application status monitoring module (not shown).
  • the application status monitoring module is configured to monitor the determined running status of the to-be-managed application, and if the monitoring is to be managed to end, release the determined memory resource occupied by the to-be-managed application.
  • the apparatus may further include: an application recommendation request sending module and an application recommendation information receiving module (not shown).
  • the application recommendation request sending module is configured to send an application recommendation request to the server, where the application recommendation request carries the determined identification information of the to-be-managed application; and the application recommendation information receiving module is configured to receive The application recommendation information determined by the server according to the application recommendation request information, and displaying the application recommendation information to the user.
  • the management of the determined to-be-managed application is implemented by generating the determined shortcut operation identifier of the to-be-managed application in the established application management folder, so that the user desktop is neat and convenient for the user to operate. .
  • the determined operation of the to-be-managed application can be triggered by the determined shortcut operation identifier of the to-be-managed application, and the operation of starting the determined to-be-managed application is triggered, when the determined to-be-managed application is started,
  • the memory resources required to start the application can be obtained by releasing memory resources, etc., which can effectively improve the startup speed of the application and reduce the probability of occurrences such as stuck, running errors, and crashes.
  • FIG. 4 is a schematic structural diagram of a memory resource providing module in the embodiment shown in FIG.
  • the memory requirement obtaining sub-module 3051 is configured to obtain a memory size required for starting the determined to-be-managed application.
  • the memory determining sub-module 3052 is configured to determine whether the current remaining memory resource meets a memory requirement of the to-be-managed application determined by the startup.
  • the memory release sub-module 3053 is configured to: when the determination result of the memory determination sub-module 3052 is negative, release the memory resource to meet the memory requirement of the to-be-managed application determined by the startup.
  • the memory requirement obtaining submodule 3051 is configured to query, in a locally preset memory requirement list, a memory size required to start the determined application to be managed; or
  • the method is configured to send the memory query request information to the server, and obtain, by the server, the memory size required to start the determined application to be managed, where the memory query request information carries the determined identifier of the to-be-managed application.
  • the memory query request information sent by the memory requirement obtaining sub-module 3051 may further carry hardware information of the current electronic device; the server end, according to the link information in the memory query request information, corresponding to the identifier of the application and the front electronic device
  • the hardware information comprehensively determines the memory size required to start the determined application to be managed.
  • the memory release sub-module 3053 may include: a first release unit and a second release unit (not shown).
  • the memory release sub-module 3053 is configured to sequentially release the memory resources occupied by each process in the current electronic device according to the sequence of first triggering the first release unit and then triggering the second release unit, to satisfy the startup determination.
  • the memory requirement of the to-be-managed application is configured to release the memory resource occupied by the process that is not restarted by the operating system after exiting; the second release unit is configured to release the process that is to be restarted by the operating system after exiting Memory resources.
  • the first release unit is specifically configured to release the memory resources occupied by the process that is not restarted by the operating system after the exiting, and the time period in which each process is not used is released in order from long to short.
  • the second release unit is specifically configured to: in the process of releasing the memory resources occupied by the process restarted by the operating system after the exit, first, according to the time in which each process is not used, from long to short, and then according to After the processes are exited, the operating system is restarted in the order of long to short, and the memory resources occupied by each process are released in turn.
  • the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.
  • Embodiments of the present invention also provide a computer readable storage medium comprising computer instructions that, when executed, cause an application management method in accordance with an embodiment of the present invention to be performed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

公开了一种应用管理方法及装置,应用于电子设备,所述方法包括:对电子设备中当前已安装的应用进行检测;根据预设规则,从检测结果中确定待管理应用;建立应用管理文件夹;在所述应用管理文件夹中生成所确定的待管理应用的快捷操作标识;在接收到用户针对所述快捷操作标识的操作后,触发为所确定的待管理应用提供内存资源的操作,以及触发启动所确定的待管理应用的操作。能够有效提高应用的启动速度,降低卡顿、运行出错、崩溃等现象的出现概率,并提高了用户桌面的整洁度。

Description

应用管理方法及装置 技术领域
本发明涉及应用处理技术领域, 特别涉及一种应用管理方法及装置。 背景技术
随着电子设备硬件性能的逐步提高, 能够支持的应用越来越多, 用户通常会在电子设备 中安装多个应用, 以便于使用。 然而, 这些应用的图标通常直接排布在桌面上, 使得用户桌 面杂乱、 不整洁。
另外, 在电子设备中运行各个应用时, 需占用一定内存资源, 若系统不能及时释放内存 资源,会导致当前剩余内存资源不足,在启动内存需求大的应用时易出现启动速度慢、卡顿、 甚至运行出错、 崩溃等现象。 发明内容
本发明实施例公开了一种应用管理方法及装置, 以提高应用的启动速度、 降低应用启动 时卡顿、 运行出错、 崩溃等现象的出现概率, 并提高用户桌面的整洁度。
为达到上述目的, 本发明实施例公开了一种应用管理方法, 应用于电子设备, 所述方法 包括:
对电子设备中当前已安装的应用进行检测;
根据预设规则, 从检测结果中确定待管理应用;
建立应用管理文件夹;
在所述应用管理文件夹中生成所确定的待管理应用的快捷操作标识;在接收到用户针对 所述快捷操作标识的操作后, 触发为所确定的待管理应用提供内存资源的操作, 以及触发启 动所确定的待管理应用的操作。
较佳的, 所述为所确定的待管理应用提供内存资源, 包括:
获得启动所确定的待管理应用所需的内存大小;
确定当前剩余内存资源是否满足启动所确定的待管理应用的内存需求;
若不满足, 则释放内存资源, 以满足启动所确定的待管理应用的内存需求。
较佳的, 所述获得启动所确定的待管理应用所需的内存大小, 包括:
在本地预设的内存需求列表中, 查询获得启动所确定的待管理应用所需的内存大小; 或 向服务器端发送内存查询请求信息,从服务器端获得启动所确定的待管理应用所需的内 存大小, 所述内存查询请求信息中, 携带所确定的待管理应用的标识。
较佳的, 所述内存查询请求信息中, 还携带当前电子设备的硬件信息;
所述服务器端,根据内存查询请求信息中的链接信息对应应用的标识以及前电子设备的 硬件信息, 综合确定启动所确定的待管理应用所需的内存大小。
较佳的, 所述释放内存资源, 包括:
按照先释放退出后不会被操作系统重启的进程占用的内存资源,后释放退出后会被操作 系统重启的进程占用的内存资源的顺序,依次释放当前电子设备中各个进程所占用的内存资 源, 至满足启动所确定的待管理应用的内存需求:
退出后不会被操作系统重启的进程;
退出后会被操作系统重启的进程。
较佳的, 在释放所述退出后不会被操作系统重启的进程占用的内存资源的过程中, 按照 各个进程未被使用的时间由长到短的顺序, 依次释放各个进程占用的内存资源。
较佳的, 在释放所述退出后会被操作系统重启的进程占用的内存资源的过程中, 先按照 各个进程未被使用的时间由长到短的顺序,再按照各个进程退出后被操作系统重启的周期由 长到短的顺序, 依次释放各个进程占用的内存资源。
较佳的, 所述应用管理方法还包括:
对所确定的待管理应用的运行状态进行监测, 如果监测到待管理应用结束运行, 则释放 所确定的待管理应用占用的内存资源。
较佳的, 所述应用管理方法还包括:
向服务器端发送应用推荐请求, 其中, 所述应用推荐请求中, 携带所确定的待管理应用 的标识信息;
接收服务器端根据所述应用推荐请求信息确定的应用推荐信息,并向用户展示所述应用 推荐信息。
为达到上述目的, 本发明实施例公开了一种应用管理装置, 应用于电子设备, 所述装置 包括: 应用监测模块、 待管理应用确定模块、 文件夹建立模块、 快捷操作标识生成模块、 内 存资源提供模块和应用启动模块;
所述应用检测模块, 用于对电子设备中当前已安装的应用进行检测;
所述待管理应用确定模块, 用于根据预设规则, 从检测结果中确定待管理应用; 所述文件夹建立模块, 用于建立应用管理文件夹;
所述快捷操作标识生成模块,用于在所述应用管理文件夹中生成所确定的待管理应用的 快捷操作标识;
所述内存资源提供模块, 用于在接收到用户针对所述快捷操作标识的操作后, 为所确定 的待管理应用提供内存资源;
所述应用启动模块, 用于在接收到用户针对所述快捷操作该标识的操作后, 启动所确定 的待管理应用。
较佳的, 所述内存资源提供模块, 包括: 内存需求获得子模块、 内存确定子模块 和内存释放子模块;
所述内存需求获得子模块, 用于获得启动所确定的待管理应用所需的内存大小; 所述内存确定子模块,用于确定当前剩余内存资源是否满足启动所确定的待管理应用 的内存需求;
所述内存释放子模块, 用于在所述内存确定子模块的确定结果为否的情况下, 释 放内存资源, 以满足启动所确定的待管理应用的内存需求。
较佳的, 所述内存需求获得子模块, 用于在本地预设的内存需求列表中, 查询获得启 动所确定的待管理应用所需的内存大小; 或
用于向服务器端发送内存查询请求信息,从服务器端获得启动所确定的待管理应用所需 的内存大小, 所述内存查询请求信息中, 携带所确定的待管理应用的标识。
较佳的, 所述内存需求获得子模块发送的内存查询请求信息中, 还携带当前电子设 备的硬件信息;
所述服务器端,根据内存查询请求信息中的链接信息对应应用的标识以及前电子设备的 硬件信息, 综合确定启动所确定的待管理应用所需的内存大小。
较佳的, 所述内存释放子模块, 包括: 第一释放单元和第二释放单元;
所述内存释放子模块, 用于按照先触发所述第一释放单元, 后触发所述第二释放 单元的顺序, 依次释放当前电子设备中各个进程所占用的内存资源, 至满足启动所确 定的待管理应用的内存需求;
所述第一释放单元, 用于释放退出后不会被操作系统重启的进程占用的内存资 源;
所述第二释放单元, 用于释放退出后会被操作系统重启的进程占用的内存资源。 较佳的, 所述第一释放单元, 具体用于在释放所述退出后不会被操作系统重启的进程 占用的内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺序, 依次释放各个进 程占用的内存资源。
较佳的, 所述第二释放单元, 具体用于在释放所述退出后会被操作系统重启的进程占用 的内存资源的过程中, 先按照各个进程未被使用的时间由长到短的顺序, 再按照各个进程退 出后被操作系统重启的周期由长到短的顺序, 依次释放各个进程占用的内存资源。
较佳的, 所述应用管理装置还包括: 应用状态监测模块; 所述应用状态监测模块, 用于对所确定的待管理应用的运行状态进行监测, 如果监测待 管理应用结束运行, 则释放所确定的待管理应用占用的内存资源。
较佳的, 所述应用管理装置还包括: 应用推荐请求发送模块和应用推荐信息接收模块; 所述应用推荐请求发送模块, 用于向服务器端发送应用推荐请求, 其中, 所述应用推荐 请求中, 携带所确定的待管理应用的标识信息;
所述应用推荐信息接收模块,用于接收服务器端根据所述应用推荐请求信息确定的应用 推荐信息, 并向用户展示所述应用推荐信息。
由以上可见, 本方案中, 通过在建立的应用管理文件夹中生成所确定的待管理应用的快 捷操作标识的方式,实现对所确定的待管理应用的管理,使得用户桌面整洁、便于用户操作。 另外, 在接收到用户针对所述快捷操作标识的操作后, 可触发所确定的待管理应用提供内存 资源的操作, 以及触发启动所确定的待管理应用的操作, 在启动所确定的待管理应用时, 可 通过释放内存资源等方式获得启动该应用所需的内存资源, 能够有效提高应用的启动速度, 降低卡顿、 运行出错、 崩溃等现象的出现概率。
本发明实施例还提供了一种计算机可读存储介质, 包括计算机指令, 当所述计算机指 令被执行时, 使得执行根据本发明实施例的应用管理方法。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术 描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些 附图获得其他的附图。
图 1为本发明实施例提供的一种应用管理方法的流程示意图;
图 2为图 1所示实施例中为所确定的待管理应用提供内存资源的方法的流程示意图; 图 3为本发明实施例提供的一种应用管理装置的结构示意图;
图 4为图 3所示实施例中内存资源提供模块的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、完整地描 述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明 中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明实施例提供的一种应用管理方法的流程示意图, 该方法应用于电子设备, 包括:
S101 : 对电子设备中当前已安装的应用进行检测。
S102: 根据预设规则, 从检测结果中确定待管理应用。
本步骤中, 预设规则可以包括以下几种:
对 S101得到的检测结果中的应用的内存需求进行排序后,选择内存需求较高的前若干个 应用作为待管理应用;
从 S101得到的检测结果中, 获得各个应用的属性信息, 并根据各个应用的属性信息对检 测结果中的应用进行分类, 选择每一分类中的若干个应用作为待管理应用, 例如, 根据应用 的属性信息可以将检测结果中的应用分为: 游戏类应用、 办公类应用、 开发类应用等等; 将 S101得到的检测结果中的应用信息与本地存储的应用分类列表中的应用信息进行匹 配, 获得检测结果中应用的分类信息, 其中, 应用分类列表中可存储常见应用的分类信息, 该列表可以是从服务器端获得后存储在本地, 并定期更新的, 也可以是在本地手动生成的。
需要说明的是,本发明只是以上述为例进行说明,并不对预设规则的具体形式进行限定, 实际应用中, 可根据具体情况设置。
S103: 建立应用管理文件夹。
本步骤中, 在建立管理文件夹时, 可以只建立一个文件夹, 也可以根据待管理应用的分 类信息建立多个文件夹, 以便于用户管理当前已安装的应用。
S104: 在所述应用管理文件夹中生成所确定的待管理应用的快捷操作标识; 在接收到用 户针对所述快捷操作标识的操作后, 触发为所确定的待管理应用提供内存资源的操作, 以及 触发启动所确定的待管理应用的操作。
具体的, 用户可以通过点击应用管理文件夹中的快捷操作标识的方式, 触发为所确定的 待管理应用提供内存资源的操作, 和触发启动所确定的待管理应用的操作。通过该方式启动 所确定的待管理应用时, 可以先触发提供内存资源的操作, 再触发启动应用的操作, 也可以 两者同时被触发。 其中, 为所确定的待管理应用提供内存资源的操作, 首先, 判断当前剩余 内存资源是否能够满足启动所确定的待管理应用的内存需求, 若满足, 则说明不存在内存资 源不足的情况,若不满足,则说明存在内存不足的情况,需通过内存释放操作释放内存资源, 以保证应用能够正常启动。
在本发明的一个具体实施例中, 该方法还可以包括: 对所确定的待管理应用的运行状态 进行监测, 如果监测到待管理应用结束运行, 则释放所确定的待管理应用占用的内存资源。
在应用运行过程中, 若不及时释放占用的内存资源, 易造成内存资源不足的情况, 影响 其它应用的启动和运行。
实际应用中, 安卓操作系统具有退出应用后不主动释放内存的特点, 这种情况下, 若通 过上述的应用管理文件夹管理安卓操作系统中的应用, 则可以及时释放内存资源, 一定程度 上可以避免内存资源不足的情况。
在本发明的另一个具体实施例中, 该方法还可以包括:
向服务器端发送应用推荐请求, 其中, 所述应用推荐请求中, 携带所确定的待管理应用 的标识信息;
接收服务器端根据所述应用推荐请求信息确定的应用推荐信息,并向用户展示所述应用 推荐信息。
具体的, 服务器端可以根据所确定的待管理应用的标识进行分类, 并选择该分类中的相 关应用信息进行推荐。 例如, 服务器端通过分析所确定的待管理应用的标识信息得知, 待管 理应用中包括: 游戏类和办公类应用, 则服务器端可以选择游戏类应用信息及办公类应用信 息作为应用推荐信息, 以提高向用户推荐信息的精准度。
由以上可见, 本方案中, 通过在建立的应用管理文件夹中生成所确定的待管理应用的快 捷操作标识的方式,实现对所确定的待管理应用的管理,使得用户桌面整洁、便于用户操作。 另外,由于通过所确定的待管理应用的快捷操作标识可触发所确定的待管理应用提供内存资 源的操作, 以及触发启动所确定的待管理应用的操作, 在启动所确定的待管理应用时, 可通 过释放内存资源等方式获得启动该应用所需的内存资源,能够有效提高应用的启动速度, 降 低卡顿、 运行出错、 崩溃等现象的出现概率。
在本发明的另一实施例中,提供了上述 S104中为所确定的待管理应用提供内存资源的一 种具体实现方式, 具体参见图 2, 图 2为图 1所示实施例中为所确定的待管理应用提供内存资 源的方法的流程示意图, 包括:
S104A: 获得启动所确定的待管理应用所需的内存大小。
在本发明的一个具体实施例中, 可以通过向服务器端发送内存查询请求信息的方式, 从 服务器端获得启动所确定的待管理应用所需的内存大小。
其中, 内存查询请求信息中, 需携带所确定的待管理应用的标识, 服务器端根据所确定 的待管理应用的标识确定启动所确定的待管理应用所需的内存大小。
另外, 内存查询请求信息中, 还可以携带当前电子设备的硬件信息, 服务器端可以根据 内存查询请求信息中的所确定的待管理应用的标识以及当前电子设备的硬件信息,综合确定 启动所确定的待管理应用所需的内存大小。当前电子设备的硬件信息可以为屏幕的大小等信 息, 当当前电子设备的屏幕大时, 启动所确定的待管理应用需要的内存资源较大, 而当当前 电子设备的屏幕小时, 启动所确定的待管理应用需要的内存资源较小。
需要说明的是, 本申请并不对内存查询请求信息中所携带的信息进行限定, 实际应用中 可以根据具体情况进行设置。 在本发明的另一个具体实施例中, 可以在本地预设的内存需求列表中, 查询获得启动所 确定的待管理应用所需的内存大小。
其中, 预设的内存需求列表可以是从服务器端获得并存储在本地的, 包含多种应用内存 需求的列表, 这种情况下, 可根据所确定的待管理应用的标识从该预设的内存需求列表中获 得启动所确定的待管理应用所需的内存大小。
预设的内存需求列表还可以是根据用户的特点,在本地生成的针对当前电子设备的内存 需求列表。这种情况下, 用户在第一次启动所确定的待管理应用时, 需通过向服务器端发送 内存查询请求信息的方式, 从服务器端获得启动所确定的待管理应用所需的内存大小, 并将 该内存需求信息更新到内存需求列表中。 当用户再次启动该所确定的待管理应用时, 可直接 从本地预设的内存需求列表中获得相应信息, 而无需从服务器端获得。
S104B : 确定当前剩余内存资源是否满足启动所确定的待管理应用的内存需求, 若不满 足, 执行 S104C, 否则, 执行 S104D。
S104C: 释放内存资源, 以满足启动所确定的待管理应用的内存需求。
实际应用中, 在释放内存资源时, 可以按照先释放退出后不会被操作系统重启的进程占 用的内存资源, 后释放退出后会被操作系统重启的进程占用的内存资源的顺序, 依次释放当 前电子设备中各个进程所占用的内存资源, 至满足启动所确定的待管理应用的内存需求: 退出后不会被操作系统重启的进程;
退出后会被操作系统重启的进程。
其中, 在释放退出后不会被操作系统重启的进程占用的内存资源的过程中, 可以按照各 个进程未被使用的时间由长到短的顺序, 依次释放各个进程占用的内存资源。
在释放所述退出后会被操作系统重启的进程占用的内存资源的过程中,可以先按照各个 进程未被使用的时间由长到短的顺序,再按照各个进程退出后被操作系统重启的周期由长到 短的顺序, 依次释放各个进程占用的内存资源。 例如, 进程 A退出后重启的周期为 10秒, 而 进程 B退出后重启的周期为 20秒, 则优先释放进程 B占用的内存资源。
需要说明的是, 在释放内存资源的过程中, 若按照优先级, 只释放部分进程占用的内存 资源即可满足启动所确定的待管理应用的内存需求, 则可只释放部分进程占用的内存资源。
S104D: 结束本流程。
由以上可见, 本方案中, 在当前剩余内存资源不能满足启动所确定的待管理应用的内存 需求的情况下, 通过按照优先级依次释放各个进程占用的内存资源, 至满足启动所确定的待 管理应用的内存需求的方式释放内存资源, 提高了内存释放效率, 可有效防止部分内存频繁 重启。
图 3为本发明实施例提供的一种应用管理装置的结构示意图, 该装置应用于电子设备, 包括: 应用监测模块 301、 待管理应用确定模块 302、 文件夹建立模块 303、 快捷操作标识生 成模块 304、 内存资源提供模块 305和应用启动模块 306。
其中, 应用检测模块 301, 用于对电子设备中当前已安装的应用进行检测;
待管理应用确定模块 302, 用于根据预设规则, 从检测结果中确定待管理应用; 文件夹建立模块 303, 用于建立应用管理文件夹;
快捷操作标识生成模块 304, 用于在所述应用管理文件夹中生成所确定的待管理应用的 快捷操作标识;
内存资源提供模块 305, 用于在接收到用户针对所述快捷操作标识的操作后, 为所确定 的待管理应用提供内存资源;
应用启动模块 306, 用于在接收到用户针对所述快捷操作标识的操作后, 启动所确定的 待管理应用。
在本发明的一个具体实施例中, 该装置还可以包括: 应用状态监测模块(图中未示出)。 应用状态监测模块, 用于对所确定的待管理应用的运行状态进行监测, 如果监测待管理结束 运行, 则释放所确定的待管理应用占用的内存资源。
在本发明的另一具体实施例中, 该装置还可以包括: 应用推荐请求发送模块和应用推荐 信息接收模块 (图中未示出)。
具体的, 应用推荐请求发送模块, 用于向服务器端发送应用推荐请求, 其中, 所述应用 推荐请求中, 携带所确定的待管理应用的标识信息; 所述应用推荐信息接收模块, 用于接收 服务器端根据所述应用推荐请求信息确定的应用推荐信息, 并向用户展示所述应用推荐信 息。
由以上可见, 本方案中, 通过在建立的应用管理文件夹中生成所确定的待管理应用的快 捷操作标识的方式,实现对所确定的待管理应用的管理,使得用户桌面整洁、便于用户操作。 另外,由于通过所确定的待管理应用的快捷操作标识可触发所确定的待管理应用提供内存资 源的操作, 以及触发启动所确定的待管理应用的操作, 在启动所确定的待管理应用时, 可通 过释放内存资源等方式获得启动该应用所需的内存资源,能够有效提高应用的启动速度, 降 低卡顿、 运行出错、 崩溃等现象的出现概率。
在本发明的另一实施例中, 提供了上述内存资源提供模块 305的一种具体实现方式, 具 体参见图 4, 图 4为图 3所示实施例中内存资源提供模块的结构示意图, 包括: 内存需求获得 子模块 3051、 内存确定子模块 3052和内存释放子模块 3053。
其中, 内存需求获得子模块 3051, 用于获得启动所确定的待管理应用所需的内存大小; 内存确定子模块 3052,用于确定当前剩余内存资源是否满足启动所确定的待管理应用的 内存需求; 内存释放子模块 3053, 用于在所述内存确定子模块 3052的确定结果为否的情况下, 释放 内存资源, 以满足启动所确定的待管理应用的内存需求。
在本发明一实施例中, 内存需求获得子模块 3051, 用于在本地预设的内存需求列表中, 查询获得启动所确定的待管理应用所需的内存大小; 或
用于向服务器端发送内存查询请求信息,从服务器端获得启动所确定的待管理应用所需 的内存大小, 所述内存查询请求信息中, 携带所确定的待管理应用的标识。
具体的, 内存需求获得子模块 3051发送的内存查询请求信息中, 还可以携带当前电子设 备的硬件信息; 所述服务器端, 根据内存查询请求信息中的链接信息对应应用的标识以及前 电子设备的硬件信息, 综合确定启动所确定的待管理应用所需的内存大小。
在本发明的另一实施例中, 内存释放子模块 3053可以包括: 第一释放单元和第二释放单 元 (图中未示出)。
其中, 内存释放子模块 3053, 用于按照先触发所述第一释放单元, 后触发所述第二释放 单元的顺序, 依次释放当前电子设备中各个进程所占用的内存资源, 至满足启动所确定的待 管理应用的内存需求; 第一释放单元, 用于释放退出后不会被操作系统重启的进程占用的内 存资源; 第二释放单元, 用于释放退出后会被操作系统重启的进程占用的内存资源。
具体的, 第一释放单元, 具体用于在释放所述退出后不会被操作系统重启的进程占用的 内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺序, 依次释放各个进程占用 的内存资源。
具体的, 第二释放单元, 具体用于在释放所述退出后会被操作系统重启的进程占用的内 存资源的过程中, 先按照各个进程未被使用的时间由长到短的顺序, 再按照各个进程退出后 被操作系统重启的周期由长到短的顺序, 依次释放各个进程占用的内存资源。
由以上可见, 本方案中, 在当前剩余内存资源不能满足启动所确定的待管理应用的内存 需求的情况下, 通过按照优先级依次释放各个进程占用的内存资源, 至满足启动所确定的待 管理应用的内存需求的方式释放内存资源, 提高了内存释放效率, 可有效防止部分内存频繁 重启。
对于装置实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之处 参见方法实施例的部分说明即可。
本发明实施例还提供了一种计算机可读存储介质, 包括计算机指令, 当所述计算机指 令被执行时, 使得执行根据本发明实施例的应用管理方法。
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将一个实体或者 操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这 种实际的关系或者顺序。 而且, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖非排他性 的包含, 从而使得包括一系列要素的过程、 方法、 物品或者设备不仅包括那些要素, 而且还 包括没有明确列出的其他要素, 或者是还包括为这种过程、 方法、物品或者设备所固有的要 素。 在没有更多限制的情况下, 由语句 "包括一个 ...... "限定的要素, 并不排除在包括所述要 素的过程、 方法、 物品或者设备中还存在另外的相同要素。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过 程序来指令相关的硬件来完成, 所述的程序可以存储于计算机可读取存储介质中, 这里所称 得的存储介质, 如: ROM/RAM, 磁碟、 光盘等。
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范围。凡在本发明 的精神和原则之内所作的任何修改、 等同替换、 改进等, 均包含在本发明的保护范围内。

Claims

权利要求书
1、 一种应用管理方法, 其特征在于, 应用于电子设备, 所述方法包括:
对电子设备中当前已安装的应用进行检测;
根据预设规则, 从检测结果中确定待管理应用;
建立应用管理文件夹;
在所述应用管理文件夹中生成所确定的待管理应用的快捷操作标识;在接收到用户针对 所述快捷操作标识的操作后, 触发为所确定的待管理应用提供内存资源的操作, 以及触发启 动所确定的待管理应用的操作。
2、根据权利要求 1所述的方法,其特征在于,所述为所确定的待管理应用提供内存资源, 包括:
获得启动所确定的待管理应用所需的内存大小;
确定当前剩余内存资源是否满足启动所确定的待管理应用的内存需求;
若不满足, 则释放内存资源, 以满足启动所确定的待管理应用的内存需求。
3、根据权利要求 2所述的方法, 其特征在于, 所述获得启动所确定的待管理应用所需的 内存大小, 包括:
在本地预设的内存需求列表中, 查询获得启动所确定的待管理应用所需的内存大小; 或 向服务器端发送内存查询请求信息,从服务器端获得启动所确定的待管理应用所需的内 存大小, 所述内存查询请求信息中, 携带所确定的待管理应用的标识。
4、 根据权利要求 3所述的方法, 其特征在于, 所述内存查询请求信息中, 还携带当前电 子设备的硬件信息;
所述服务器端,根据内存查询请求信息中的链接信息对应应用的标识以及前电子设备的 硬件信息, 综合确定启动所确定的待管理应用所需的内存大小。
5、 根据权利要求 2~4中任一项所述的方法, 其特征在于, 所述释放内存资源, 包括: 按照先释放退出后不会被操作系统重启的进程占用的内存资源,后释放退出后会被操作 系统重启的进程占用的内存资源的顺序,依次释放当前电子设备中各个进程所占用的内存资 源, 至满足启动所确定的待管理应用的内存需求:
退出后不会被操作系统重启的进程;
退出后会被操作系统重启的进程。
6、根据权利要求 5所述的方法, 其特征在于, 在释放所述退出后不会被操作系统重启的 进程占用的内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺序, 依次释放各 个进程占用的内存资源。
7、根据权利要求 5所述的方法, 其特征在于, 在释放所述退出后会被操作系统重启的进 程占用的内存资源的过程中, 先按照各个进程未被使用的时间由长到短的顺序, 再按照各个 进程退出后被操作系统重启的周期由长到短的顺序, 依次释放各个进程占用的内存资源。
8、 根据权利要求 2~7中任一项所述的方法, 其特征在于, 所述方法还包括:
对所确定的待管理应用的运行状态进行监测, 如果监测到待管理应用结束运行, 则释放 所确定的待管理应用占用的内存资源。
9、 根据权利要求 1~8中任一项所述的方法, 其特征在于, 所述方法还包括:
向服务器端发送应用推荐请求, 其中, 所述应用推荐请求中, 携带所确定的待管理应用 的标识信息;
接收服务器端根据所述应用推荐请求信息确定的应用推荐信息,并向用户展示所述应用 推荐信息。
10、一种应用管理装置, 其特征在于, 应用于电子设备, 所述装置包括: 应用监测模块、 待管理应用确定模块、 文件夹建立模块、 快捷操作标识生成模块、 内存资源提供模块和应用 启动模块;
所述应用检测模块, 用于对电子设备中当前已安装的应用进行检测;
所述待管理应用确定模块, 用于根据预设规则, 从检测结果中确定待管理应用; 所述文件夹建立模块, 用于建立应用管理文件夹;
所述快捷操作标识生成模块,用于在所述应用管理文件夹中生成所确定的待管理应用的 快捷操作标识;
所述内存资源提供模块, 用于在接收到用户针对所述快捷操作标识的操作后, 为所确定 的待管理应用提供内存资源;
所述应用启动模块, 用于在接收到用户针对所述快捷操作该标识的操作后, 启动所确定 的待管理应用。
11、 根据权利要求 10所述的装置, 其特征在于, 所述内存资源提供模块, 包括: 内 存需求获得子模块、 内存确定子模块和内存释放子模块;
所述内存需求获得子模块, 用于获得启动所确定的待管理应用所需的内存大小; 所述内存确定子模块,用于确定当前剩余内存资源是否满足启动所确定的待管理应用 的内存需求;
所述内存释放子模块, 用于在所述内存确定子模块的确定结果为否的情况下, 释 放内存资源, 以满足启动所确定的待管理应用的内存需求。
12、 根据权利要求 11所述的装置, 其特征在于,
所述内存需求获得子模块, 用于在本地预设的内存需求列表中, 查询获得启动所确 定的待管理应用所需的内存大小; 或 用于向服务器端发送内存查询请求信息,从服务器端获得启动所确定的待管理应用所需 的内存大小, 所述内存查询请求信息中, 携带所确定的待管理应用的标识。
13、 根据权利要求 12所述的装置, 其特征在于,
所述内存需求获得子模块发送的内存查询请求信息中,还携带当前电子设备的硬件 息;
所述服务器端,根据内存查询请求信息中的链接信息对应应用的标识以及前电子设备的 硬件信息, 综合确定启动所确定的待管理应用所需的内存大小。
14、 根据权利要求 11~13中任一项所述的装置, 其特征在于, 所述内存释放子模块, 包括: 第一释放单元和第二释放单元;
所述内存释放子模块, 用于按照先触发所述第一释放单元, 后触发所述第二释放 单元的顺序, 依次释放当前电子设备中各个进程所占用的内存资源, 至满足启动所确 定的待管理应用的内存需求;
所述第一释放单元, 用于释放退出后不会被操作系统重启的进程占用的内存资 源;
所述第二释放单元, 用于释放退出后会被操作系统重启的进程占用的内存资源。
15、 根据权利要求 14所述的装置, 其特征在于,
所述第一释放单元, 具体用于在释放所述退出后不会被操作系统重启的进程占用的 内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺序, 依次释放各个进程占用 的内存资源。
16、 根据权利要求 14所述的装置, 其特征在于,
所述第二释放单元,具体用于在释放所述退出后会被操作系统重启的进程占用的内存资 源的过程中, 先按照各个进程未被使用的时间由长到短的顺序, 再按照各个进程退出后被操 作系统重启的周期由长到短的顺序, 依次释放各个进程占用的内存资源。
17、 根据权利要求 11~16中任一项所述的装置, 其特征在于, 所述装置还包括: 应用状 态监测模块;
所述应用状态监测模块, 用于对所确定的待管理应用的运行状态进行监测, 如果监测待 管理应用结束运行, 则释放所确定的待管理应用占用的内存资源。
18、 根据权利要求 10~17中任一项所述的装置, 其特征在于, 所述装置还包括: 应用推 荐请求发送模块和应用推荐信息接收模块;
所述应用推荐请求发送模块, 用于向服务器端发送应用推荐请求, 其中, 所述应用推荐 请求中, 携带所确定的待管理应用的标识信息;
所述应用推荐信息接收模块,用于接收服务器端根据所述应用推荐请求信息确定的应用 推荐信息, 并向用户展示所述应用推荐信息。
19、 一种计算机可读存储介质, 包括计算机指令, 当所述计算机指令被执行时, 使得执 行权利要求 1~9中任一项所述的应用管理方法。
PCT/CN2014/084574 2014-02-14 2014-08-15 应用管理方法及装置 WO2015120708A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/105,431 US10268515B2 (en) 2014-02-14 2014-08-15 Releasing resources from processes in a particular order to provide required resources to start an application

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410052568.8 2014-02-14
CN201410052568.8A CN103778007B (zh) 2014-02-14 2014-02-14 一种应用管理方法及装置

Publications (1)

Publication Number Publication Date
WO2015120708A1 true WO2015120708A1 (zh) 2015-08-20

Family

ID=50570283

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084574 WO2015120708A1 (zh) 2014-02-14 2014-08-15 应用管理方法及装置

Country Status (3)

Country Link
US (1) US10268515B2 (zh)
CN (1) CN103778007B (zh)
WO (1) WO2015120708A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377372A (zh) * 2019-07-25 2019-10-25 南京中孚信息技术有限公司 目标应用的次进程退出方法、装置及电子设备
CN111913707A (zh) * 2020-08-06 2020-11-10 上海连尚网络科技有限公司 运行进程的复用方法和装置

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778007B (zh) * 2014-02-14 2018-06-08 北京猎豹移动科技有限公司 一种应用管理方法及装置
CN104077191A (zh) * 2014-07-18 2014-10-01 广州金山网络科技有限公司 一种用于管理内存资源的方法及装置
CN106293924B (zh) * 2015-05-20 2019-09-17 Tcl集团股份有限公司 安卓系统的内存管理方法及装置
CN105550035A (zh) * 2015-12-04 2016-05-04 小米科技有限责任公司 后台进程控制方法及装置
CN106549880A (zh) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 一种终端的资源分配方法及终端设备
CN110020275B (zh) * 2017-08-22 2022-01-04 武汉斗鱼网络科技有限公司 一种直播中礼物面板加载方法及系统
CN108307236A (zh) * 2018-02-01 2018-07-20 深圳创维-Rgb电子有限公司 一种智能电视优化内存的方法、存储介质及智能电视
CN110389905B (zh) * 2018-04-20 2023-12-19 伊姆西Ip控股有限责任公司 资源释放方法、资源分配方法、设备和计算机程序产品
WO2020231196A1 (en) * 2019-05-14 2020-11-19 Samsung Electronics Co., Ltd. Method and system for predicting and optimizing resource utilization of ai applications in an embedded computing system
CN112015525B (zh) * 2019-05-29 2024-07-12 上海哔哩哔哩科技有限公司 任务进程阻塞管理方法
CN111078406B (zh) * 2019-12-10 2023-01-10 Oppo(重庆)智能科技有限公司 内存管理方法、装置、存储介质及电子设备
CN113835992B (zh) * 2020-06-23 2023-10-20 抖音视界有限公司 内存泄露的处理方法、装置、电子设备及计算机存储介质
CN112667408A (zh) * 2021-01-19 2021-04-16 北京字节跳动网络技术有限公司 一种内存分配方法及终端设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154374A1 (en) * 2009-12-18 2011-06-23 Electronics And Telecommunications Research Institute Apparatus and method for managing customized application
CN102929601A (zh) * 2012-09-28 2013-02-13 北京小米科技有限责任公司 一种应用程序管理方法及装置
CN103019770A (zh) * 2012-11-21 2013-04-03 北京荣之联科技股份有限公司 一种应用程序快速启动管理系统及方法
CN103324536A (zh) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 终端和应用程序保护方法
CN103778007A (zh) * 2014-02-14 2014-05-07 贝壳网际(北京)安全技术有限公司 一种应用管理方法及装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203737B2 (en) * 2001-10-31 2007-04-10 Microsoft Corporation Computer system with file association and application retrieval
US7143413B2 (en) * 2002-05-15 2006-11-28 Hewlett-Packard Development Company, L.P. Method and system for allocating system resources among applications using weights
EP1387593A3 (en) * 2002-07-31 2005-06-15 Matsushita Electric Industrial Co., Ltd. Information processing terminal and information processing method
JP2005202523A (ja) * 2004-01-13 2005-07-28 Sony Corp コンピュータ装置及びプロセス制御方法
JP5083757B2 (ja) * 2007-04-19 2012-11-28 インターナショナル・ビジネス・マシーンズ・コーポレーション データをキャッシュする技術
JP5159377B2 (ja) * 2008-03-12 2013-03-06 キヤノン株式会社 情報処理装置及び情報処理方法
US8078158B2 (en) * 2008-06-26 2011-12-13 Seven Networks, Inc. Provisioning applications for a mobile device
US8291192B2 (en) * 2008-10-30 2012-10-16 Kyocera Document Solutions, Inc. Memory management system
US8990534B2 (en) * 2012-05-31 2015-03-24 Apple Inc. Adaptive resource management of a data processing system
US9489236B2 (en) * 2012-10-31 2016-11-08 Microsoft Technology Licensing, Llc Application prioritization
CN102984580B (zh) * 2012-11-12 2016-04-20 北京奇虎科技有限公司 内存清理方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154374A1 (en) * 2009-12-18 2011-06-23 Electronics And Telecommunications Research Institute Apparatus and method for managing customized application
CN103324536A (zh) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 终端和应用程序保护方法
CN102929601A (zh) * 2012-09-28 2013-02-13 北京小米科技有限责任公司 一种应用程序管理方法及装置
CN103019770A (zh) * 2012-11-21 2013-04-03 北京荣之联科技股份有限公司 一种应用程序快速启动管理系统及方法
CN103778007A (zh) * 2014-02-14 2014-05-07 贝壳网际(北京)安全技术有限公司 一种应用管理方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377372A (zh) * 2019-07-25 2019-10-25 南京中孚信息技术有限公司 目标应用的次进程退出方法、装置及电子设备
CN111913707A (zh) * 2020-08-06 2020-11-10 上海连尚网络科技有限公司 运行进程的复用方法和装置
CN111913707B (zh) * 2020-08-06 2024-02-20 上海连尚网络科技有限公司 运行进程的复用方法和装置

Also Published As

Publication number Publication date
US20170004013A1 (en) 2017-01-05
US10268515B2 (en) 2019-04-23
CN103778007A (zh) 2014-05-07
CN103778007B (zh) 2018-06-08

Similar Documents

Publication Publication Date Title
WO2015120708A1 (zh) 应用管理方法及装置
US10346210B2 (en) Push signaling to run jobs on available servers
KR102277715B1 (ko) 가상 머신들을 관리하는 장치 및 방법
CN100447746C (zh) 使用动态启动映像和虚拟盘的计算机集群虚拟化的系统和方法
US10476742B1 (en) Classification of auto scaling events impacting computing resources
WO2015120707A1 (zh) 锁屏状态下启动应用的方法及装置
JP2010055211A (ja) 複数のサービス構成要素に対応するアクションの実行を管理するためのコンピュータ・システム、並びにその方法及びコンピュータ・プログラム
CN107656705B (zh) 一种计算机存储介质和一种数据迁移方法、装置及系统
WO2018233630A1 (zh) 故障发现
US20130086584A1 (en) Control device, control method, and control program
CN112148505A (zh) 数据跑批系统、方法、电子设备和存储介质
US20150019722A1 (en) Determining, managing and deploying an application topology in a virtual environment
US10929259B2 (en) Testing framework for host computing devices
US9727394B2 (en) Establishing causality order of computer trace records
WO2009046650A1 (fr) Procédé et dispositif permettant l'affichage de tâches de téléchargement
WO2016115896A1 (zh) 虚拟网络功能vnf的管理方法及装置
CN111309437A (zh) 一种逻辑卷的异步删除方法、系统及装置
CN110196749A (zh) 虚拟机的恢复方法及装置、存储介质及电子装置
CN106453544B (zh) 一种云环境及其监控方法、系统
TW201426348A (zh) 虛擬機標籤分類系統及方法
JP6501924B2 (ja) アラートを解除する方法及びサーバー
CN115580522A (zh) 一种容器云平台运行状态的监控方法及装置
WO2013097176A1 (zh) 一种用户体验指标监控方法及监控虚拟机
CN105787359A (zh) 进程守护方法和装置
CN112783613B (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: 14882240

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15105431

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 02.12.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14882240

Country of ref document: EP

Kind code of ref document: A1