CN106802829A - Resource management method and device - Google Patents
Resource management method and device Download PDFInfo
- Publication number
- CN106802829A CN106802829A CN201611265290.8A CN201611265290A CN106802829A CN 106802829 A CN106802829 A CN 106802829A CN 201611265290 A CN201611265290 A CN 201611265290A CN 106802829 A CN106802829 A CN 106802829A
- Authority
- CN
- China
- Prior art keywords
- resource
- application
- processing task
- mobile terminal
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
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)
Abstract
Description
技术领域technical field
本发明涉及资源管理技术领域,具体涉及一种资源管理方法及设备。The present invention relates to the technical field of resource management, in particular to a resource management method and equipment.
背景技术Background technique
随着智能手机的大量普及应用,智能手机能够支持的应用越来越多,功能越来越强大,智能手机向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。另一方面,现有的智能手机在功能的易用性、电池使用时间、系统资源利用率等方面还存在着不足。个性化的功能、高效能仍然是智能手机用户和系统开发者追求的目标。如何在给用户提供良好交互方式和使用体验的同时,提高系统效能是系统开发者面临的挑战。With the popularization and application of smart phones, smart phones can support more and more applications, and their functions are becoming more and more powerful. Smart phones are developing in the direction of diversification and personalization, and become an indispensable electronic product in users' lives. On the other hand, existing smart phones still have deficiencies in terms of ease of use of functions, battery life, and system resource utilization. Personalized functions and high performance are still the goals pursued by smartphone users and system developers. How to improve system performance while providing users with good interaction and experience is a challenge for system developers.
越来越多的研究表明,软件如何运行以及用户如何使用智能手机,是决定系统能耗和效率的关键要素。A growing body of research shows that how software runs and how users use their smartphones is a key factor in determining a system's power consumption and efficiency.
发明内容Contents of the invention
本发明实施例提供了一种资源管理方法及设备,可以提高移动终端运行应用的流畅性,提高移动终端针对应用的高频处理任务的资源管理效率。Embodiments of the present invention provide a resource management method and device, which can improve the fluency of running applications on a mobile terminal, and improve the resource management efficiency of the mobile terminal for high-frequency processing tasks of applications.
第一方面,本发明实施例提供一种资源管理方法,应用于安装有应用的移动终端,所述方法包括:In a first aspect, an embodiment of the present invention provides a resource management method, which is applied to a mobile terminal installed with an application, and the method includes:
获取所述应用的至少一个处理任务所调用的资源的使用记录;Obtain usage records of resources invoked by at least one processing task of the application;
根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源;Configuring the preset resource of the mobile terminal as a customized resource of the at least one processing task of the application according to the use record of the resource called by the at least one processing task of the application;
在检测到所述应用启用时,调用所述定制资源以完成所述应用的至少一个处理任务。When it is detected that the application is enabled, the custom resource is invoked to complete at least one processing task of the application.
第二方面,本发明实施例提供了一种资源管理装置,该装置具有实现上述方法设计中移动终端的行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an embodiment of the present invention provides a resource management device, which has a function of realizing the behavior of the mobile terminal in the design of the above method. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.
该资源管理装置包括处理单元和通信单元,所述处理单元用于通过所述通信单元获取所述应用的至少一个处理任务所调用的资源的使用记录;以及用于根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源;以及用于在检测到所述应用启用时,通过所述通信单元调用所述定制资源以完成所述应用的至少一个处理任务。The resource management device includes a processing unit and a communication unit, the processing unit is configured to obtain, through the communication unit, a usage record of resources invoked by at least one processing task of the application; A usage record of the resource invoked by the task, configuring the preset resource of the mobile terminal as a customized resource of at least one processing task of the application; and invoking by the communication unit when the application is detected to be enabled The resource is customized to complete at least one processing task of the application.
第三方面,本发明实施例提供了一种移动终端,所述移动终端包括处理器、存储器、收发器和总线;In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a processor, a memory, a transceiver, and a bus;
所述处理器通过所述总线与所述存储器、所述收发器相互通信;The processor communicates with the memory and the transceiver through the bus;
所述存储器存储可执行程序指令,所述处理器用于调用所述存储中的可执行程序代码,执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤。The memory stores executable program instructions, and the processor is used to invoke the stored executable program codes to execute some or all of the steps described in any method of the first aspect of the embodiments of the present invention.
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储有用于计算机设备执行的程序代码,该程序代码具体包括指令,所述指令用于执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program code for execution by a computer device, the program code specifically includes instructions, and the instructions are used to execute Part or all of the steps described in any method of the first aspect of the embodiment of the present invention.
可以看出,本发明实施例中,移动终端首先获取应用的至少一个处理任务所调用的资源的使用记录,其次,根据应用的至少一个处理任务所调用的资源的使用记录,将移动终端的预设资源配置为应用的至少一个处理任务的定制资源,在检测到应用启用时,调用定制资源以完成应用的至少一个处理任务。由于应用的高频处理任务针对定制资源具有独占权或优先占用权,故而能够避免该应用启用过程中因资源不足而造成卡顿的情况发生,有利于提高移动终端运行应用的流畅性,提高移动终端针对应用的高频处理任务的资源管理效率。It can be seen that, in the embodiment of the present invention, the mobile terminal first obtains the use record of the resource called by at least one processing task of the application, and secondly, according to the use record of the resource called by the at least one processing task of the application, the mobile terminal's preset Assuming that the resource is configured as a custom resource for at least one processing task of the application, when it is detected that the application is activated, the custom resource is invoked to complete the at least one processing task of the application. Since the high-frequency processing tasks of the application have the exclusive right or the priority right to occupy the customized resources, it can avoid the occurrence of the freeze caused by insufficient resources in the process of launching the application, which is conducive to improving the fluency of running the application on the mobile terminal and improving the mobility of the mobile terminal. The resource management efficiency of the terminal for high-frequency processing tasks of applications.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1A是本发明实施例提供的一种资源管理方法的流程示意图;FIG. 1A is a schematic flowchart of a resource management method provided by an embodiment of the present invention;
图1B是本发明实施例提供的一种针对处理任务设置界面的交互状态示例图;FIG. 1B is an example diagram of an interactive state of an interface for setting a processing task provided by an embodiment of the present invention;
图2是本发明实施例公开的另一种资源管理方法的流程示意图;FIG. 2 is a schematic flowchart of another resource management method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种资源管理方法的流程示意图;FIG. 3 is a schematic flowchart of another resource management method disclosed in an embodiment of the present invention;
图4A是本发明实施例公开的一种资源管理装置的结构示意图;FIG. 4A is a schematic structural diagram of a resource management device disclosed in an embodiment of the present invention;
图4B是本发明实施例公开的一种移动终端的结构示意图;FIG. 4B is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention;
图5是本发明实施例公开的另一种移动终端的结构示意图。Fig. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本发明实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为移动终端。下面对本发明实施例进行详细介绍。The mobile terminals involved in the embodiments of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals. The following describes the embodiments of the present invention in detail.
请参阅图1A,图1A是本发明实施例提供了一种资源管理方法的流程示意图,应用于安装有应用的移动终端,如图所示,本资源管理方法包括:Please refer to FIG. 1A. FIG. 1A is a schematic flowchart of a resource management method provided by an embodiment of the present invention, which is applied to a mobile terminal installed with an application. As shown in the figure, the resource management method includes:
S101,移动终端获取所述应用的至少一个处理任务所调用的资源的使用记录。S101. The mobile terminal acquires a usage record of resources invoked by at least one processing task of the application.
其中,所述应用包括移动终端安装的各种应用,如微信应用、爱奇艺、UC浏览器等,且该应用可以由用户预设设置,也可以由移动终端根据预设策略进行选取,预设策略例如可以是选取预设时段内应用的使用参数(如次数、频率、时长等)大于预设参数的目标应用,根据该预设策略确定的应用可以是用户常用的热点应用,如微信应用等,本发明实施例对移动终端如何选取该应用的具体实现方式不做唯一限定。Wherein, the applications include various applications installed on the mobile terminal, such as WeChat application, iQiyi, UC browser, etc., and the application can be preset by the user, or can be selected by the mobile terminal according to a preset strategy. The setting strategy can be, for example, selecting a target application whose usage parameters (such as times, frequency, duration, etc.) within a preset period of time are greater than the preset parameters, and the application determined according to the preset strategy can be a popular application commonly used by users, such as WeChat applications etc., the embodiment of the present invention does not uniquely limit the specific implementation manner of how the mobile terminal selects the application.
其中,所述应用的至少一个处理任务所调用的资源的使用记录具体可以包括处理任务的类型、处理任务所调用的资源数量、处理任务的运行时长、耗电量、消耗流量等等。Wherein, the usage record of resources invoked by at least one processing task of the application may specifically include the type of processing task, the quantity of resources invoked by the processing task, the running time of the processing task, power consumption, traffic consumption, and the like.
在一个可能的示例中,所述资源包括以下资源中的至少一种:In a possible example, the resources include at least one of the following resources:
处理资源、存储资源、显示资源、音频资源、通信资源。Processing resources, storage resources, display resources, audio resources, communication resources.
可以理解的是,所述移动终端获取所述应用的至少一个处理任务所调用的资源的使用记录的实现方式可以是多种多样的,本发明实施例不做唯一限定。It can be understood that there may be various implementation manners for the mobile terminal to obtain the usage record of the resource invoked by the at least one processing task of the application, which is not limited in this embodiment of the present invention.
举例来说,如图1B所示,在一个可能的示例中,所述移动终端获取所述应用的至少一个处理任务所调用的资源的使用记录的具体实现方式可以是:For example, as shown in FIG. 1B , in a possible example, the specific implementation manner for the mobile terminal to obtain the usage record of the resources invoked by at least one processing task of the application may be:
所述移动终端输出处理任务设置界面,所述处理任务设置界面至少包括以下处理任务:图像处理任务、视频处理任务、语音处理任务以及文字处理任务;The mobile terminal outputs a processing task setting interface, and the processing task setting interface includes at least the following processing tasks: image processing tasks, video processing tasks, voice processing tasks and word processing tasks;
所述移动终端在检测到针对所述处理任务设置界面中的至少一个处理任务的选取操作时,获取所述应用的至少一个处理任务所调用的资源的使用记录。When the mobile terminal detects a selection operation for at least one processing task in the processing task setting interface, it acquires a usage record of resources invoked by at least one processing task of the application.
其中,所述至少一个处理任务例如可以是语音处理任务,或者视频处理任务等等。Wherein, the at least one processing task may be, for example, a voice processing task, or a video processing task, and so on.
可见,移动终端通过提供可视化交互界面,引导用户自主设定需要配置定制资源的应用的处理任务,使得用户可以直接参与到定制资源的配置过程中,有利于提高处理任务与用户的关联性,提高用户使用黏度。It can be seen that by providing a visual interactive interface, the mobile terminal guides users to independently set the processing tasks of applications that need to configure customized resources, so that users can directly participate in the configuration process of customized resources, which is conducive to improving the relevance between processing tasks and users, and improving user viscosity.
又举例来说,在一个可能的示例中,所述移动终端获取所述应用的至少一个处理任务所调用的资源的使用记录的具体实现方式可以是:所述移动终端确定所述应用的多种处理任务中的每一种处理任务所调用的资源在所述应用所调用的资源中的占比,所述多种处理任务至少包括图像处理任务、视频处理任务、语音处理任务以及文字处理任务;所述移动终端获取占比大于预设占比阈值的至少一个处理任务所调用的资源的使用记录。As another example, in a possible example, the specific implementation manner for the mobile terminal to obtain the usage record of the resources invoked by at least one processing task of the application may be: the mobile terminal determines multiple The proportion of resources called by each processing task in the resources called by the application, the multiple processing tasks include at least image processing tasks, video processing tasks, voice processing tasks and word processing tasks; The mobile terminal acquires usage records of resources invoked by at least one processing task whose proportion is greater than a preset proportion threshold.
可见,移动终端通过为占比大于预设占比阈值的至少一个处理任务配置定制资源,可以准确识别出应用中的高频处理任务,有利于提高识别高频处理任务的准确度。It can be seen that by configuring customized resources for at least one processing task whose proportion is greater than the preset proportion threshold, the mobile terminal can accurately identify high-frequency processing tasks in the application, which is conducive to improving the accuracy of identifying high-frequency processing tasks.
S102,所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源。S102. The mobile terminal configures preset resources of the mobile terminal as customized resources of the at least one processing task of the application according to usage records of resources called by the at least one processing task of the application.
可以理解的是,所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源的实现方式可以是多种多样的,本发明实施例不做唯一限定。It can be understood that the mobile terminal configures the preset resource of the mobile terminal as the implementation of the custom resource of the at least one processing task of the application according to the use record of the resource called by the at least one processing task of the application There may be various manners, and the embodiment of the present invention does not make a unique limitation.
在一个可能的示例中,所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源的实现方式可以是:所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,确定所述应用的至少一个处理任务的参考资源调用时段和参考资源调用量;所述移动终端确定资源调用量大于或等于所述参考资源调用量的所述移动终端的预设资源;所述移动终端将所述预设资源配置为所述应用的至少一个处理任务在所述参考资源调用时段的专用资源。In a possible example, the mobile terminal configures the preset resource of the mobile terminal as the customized resource of the at least one processing task of the application according to the use record of the resource called by the at least one processing task of the application The implementation method may be: the mobile terminal determines the reference resource invocation period and the reference resource invocation amount of at least one processing task of the application according to the usage records of the resources invoked by the at least one processing task of the application; The terminal determines the preset resource of the mobile terminal whose resource call amount is greater than or equal to the reference resource call amount; the mobile terminal configures the preset resource as at least one processing task of the application when the reference resource call Dedicated resources for time slots.
其中,专用资源是指专门用于处理特定处理任务(即所述至少一个处理任务)的资源,该专用资源不会作为其他处理任务的运行资源,具体为一种专属资源。参考资源调用时段是指资源平均调用参数(如次数、频率、时长)大于预设调用参数的时段,如微信应用的语音处理任务在18点至22点之间的资源平均调用参数大于预设调用参数,则18点至22点为微信应用的语音处理任务的参考调用时段。参考调用量是指应用的至少一个任务的平均资源调用数量,如假设资源为处理资源(如手机的运行内存),根据微信应用的语音处理任务所调用处理资源的100个使用记录确定出语音处理任务所调用处理资源的平均处理资源调用数量为800MB,则微信应用的语音处理任务的参考调用量为800MB。Wherein, the dedicated resource refers to a resource specially used to process a specific processing task (ie, the at least one processing task), and the dedicated resource will not be used as a running resource for other processing tasks, and is specifically a dedicated resource. The reference resource call time period refers to the time period when the average resource call parameters (such as times, frequency, and duration) are greater than the preset call parameters. For example, the average resource call parameters of the voice processing task of the WeChat application between 18:00 and 22:00 are greater than the preset call parameters parameter, then 18:00 to 22:00 is the reference calling period for the voice processing task of the WeChat application. The reference call amount refers to the average number of resource calls of at least one task of the application. For example, assuming that the resource is a processing resource (such as the running memory of the mobile phone), the voice processing is determined based on 100 usage records of the processing resources called by the voice processing task of the WeChat application. The average number of processing resources called by the task is 800MB, so the reference call amount of the voice processing task of the WeChat application is 800MB.
此外,可以理解的是,所述移动终端将所述预设资源配置为所述应用的至少一个处理任务在所述参考资源调用时段的专用资源的具体实现方式可以是多种多样的,本发明实施例不做唯一限定。In addition, it can be understood that there may be various specific implementation manners in which the mobile terminal configures the preset resource as a dedicated resource for at least one processing task of the application during the reference resource invocation period. Examples are not uniquely limited.
例如,所述移动终端可以建立所述应用的至少一个处理任务的任务标识和所述预设资源之间的对应关系,相应的,在该应用的资源调用策略中加入关于该对应关系的使用过程,且使用条件为检测到当前系统时间处于所述参考资源调用时段。For example, the mobile terminal may establish a correspondence between the task identifier of at least one processing task of the application and the preset resource, and correspondingly, add a usage process related to the correspondence in the resource invocation policy of the application , and the use condition is that it is detected that the current system time is in the reference resource invocation period.
又如,所述移动终端可以为该应用新增定制资源池,在该定制资源池中加入预设资源,相应的,在该应用的资源调用策略中加入关于该定制资源池的使用策略,使用条件为检测到当前系统时间处于所述参考资源调用时段。As another example, the mobile terminal may add a custom resource pool for the application, and add preset resources to the custom resource pool. Correspondingly, add a usage policy about the custom resource pool to the resource invocation policy of the application, and use The condition is that it is detected that the current system time is in the reference resource invocation period.
可见,本可能的示例中,移动终端为应用的至少一个处理任务配置专用资源,当应用在参考调用时段启用时,直接调用该专用资源来完成应用的至少一个处理任务,避免资源不足无法流畅运行应用的处理任务,有利于提高移动终端针对应用的高频处理任务的资源管理效率。It can be seen that in this possible example, the mobile terminal configures a dedicated resource for at least one processing task of the application, and when the application is enabled in the reference call period, directly calls the dedicated resource to complete at least one processing task of the application, so as to avoid insufficient resources and cannot run smoothly The processing task of the application is beneficial to improving the resource management efficiency of the mobile terminal for high-frequency processing tasks of the application.
在另一个可能的示例中,所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源的实现方式可以是:所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,确定所述应用的至少一个处理任务的参考资源调用时段和参考资源调用量;所述移动终端确定资源调用量大于或等于所述参考资源调用量的所述移动终端的预设资源;所述移动终端将所述预设资源配置为所述应用的至少一个处理任务在所述参考资源调用时段的优先占用资源。In another possible example, the mobile terminal configures the preset resource of the mobile terminal as a customized The implementation of resources may be: the mobile terminal determines the reference resource invocation period and the reference resource invocation amount of at least one processing task of the application according to the usage records of the resources invoked by the at least one processing task of the application; The mobile terminal determines a preset resource of the mobile terminal whose resource call amount is greater than or equal to the reference resource call amount; the mobile terminal configures the preset resource as at least one processing task of the application on the reference resource Priority resource occupation during call time.
其中,优先占用资源是指优先被特定处理任务(即所述至少一个处理任务)调用的资源,若移动终端当前不需要运行该特定处理任务,该优先占用资源可以被其他处理任务所调用,也就是说,特定处理任务在参考调用时段针对该优先占用资源的调用优先级要高于其他处理任务。Wherein, preferentially occupying resources refers to resources that are preferentially invoked by a specific processing task (that is, the at least one processing task). If the mobile terminal does not currently need to run the specific processing task, the preferentially occupying resource can be invoked by other processing tasks, That is to say, the invocation priority of a specific processing task for the preferentially occupied resource is higher than that of other processing tasks during the reference invocation period.
此外,可以理解的是,所述移动终端将所述预设资源配置为所述应用的至少一个处理任务在所述参考资源调用时段的优先占用资源的具体实现方式可以是多种多样的,本发明实施例不做唯一限定。In addition, it can be understood that there may be various specific implementation manners in which the mobile terminal configures the preset resource as a priority occupation resource of at least one processing task of the application during the reference resource invoking period. The embodiment of the invention is not uniquely limited.
例如,移动终端可以设置应用的至少一个处理任务在参考调用时段针对预设资源的占用优先级为最高优先级,相应的,在处理任务的资源调用策略中加入优先级控制策略,从而移动终端处于参考调用时段且启用应用时,可以根据预设的最高优先级优先调用预设资源来完成应用的至少一个处理任务。For example, the mobile terminal can set at least one processing task of the application to occupy the preset resource as the highest priority during the reference invocation period, and accordingly, add a priority control policy to the resource invocation policy of the processing task, so that the mobile terminal is in the Referring to the invocation period and when the application is enabled, the preset resource may be preferentially invoked according to the preset highest priority to complete at least one processing task of the application.
又如,移动终端可以建立应用的至少一个处理任务与预设资源的绑定关系,相应的,在处理任务的资源调用策略中加入关于该绑定关系的使用过程,且使用条件为检测到当前系统时间处于所述参考资源调用时段。As another example, the mobile terminal can establish a binding relationship between at least one processing task of the application and a preset resource, and correspondingly, add the use process related to the binding relationship in the resource invocation policy of the processing task, and the use condition is that the current The system time is in the reference resource invocation period.
可见,本可能的示例中,移动终端为应用的至少一个处理任务配置优先占用资源,当应用在参考调用时段启用时,直接调用该有限占用资源来完成应用的至少一个处理任务,避免资源不足无法流畅运行应用的处理任务,有利于提高移动终端针对应用的高频处理任务的资源管理效率。It can be seen that in this possible example, the mobile terminal configures priority resource occupation for at least one processing task of the application, and when the application is enabled in the reference calling period, it directly calls the limited resource occupation to complete at least one processing task of the application, so as to avoid insufficient resources. Running the processing tasks of the application smoothly is beneficial to improving the resource management efficiency of the mobile terminal for high-frequency processing tasks of the application.
S103,所述移动终端在检测到所述应用启用时,调用所述定制资源以完成所述应用的至少一个处理任务。S103. When the mobile terminal detects that the application is enabled, invoke the customized resource to complete at least one processing task of the application.
具体实现中,在所述定制资源为专用资源时,所述移动终端调用所述定制资源以完成所述应用的至少一个处理任务的实现方式为:所述移动终端调用所述专用资源以完成所述应用的至少一个处理任务。In a specific implementation, when the customized resource is a dedicated resource, the mobile terminal invokes the customized resource to complete at least one processing task of the application as follows: the mobile terminal invokes the dedicated resource to complete the at least one processing task of the application.
在所述定制资源为优先占用资源时,所述移动终端调用所述定制资源以完成所述应用的至少一个处理任务的实现方式为:所述移动终端调用所述有限占用资源以完成所述应用的至少一个处理任务。When the customized resource is a priority occupation resource, the mobile terminal invokes the customized resource to complete at least one processing task of the application as follows: the mobile terminal invokes the limited occupation resource to complete the application at least one processing task for .
可以看出,本发明实施例中,移动终端首先获取应用的至少一个处理任务所调用的资源的使用记录,其次,根据应用的至少一个处理任务所调用的资源的使用记录,将移动终端的预设资源配置为应用的至少一个处理任务的定制资源,在检测到应用启用时,调用定制资源以完成应用的至少一个处理任务。由于应用的高频处理任务针对定制资源具有独占权或优先占用权,故而能够避免该应用启用过程中因资源不足而造成卡顿的情况发生,有利于提高移动终端运行应用的流畅性,提高移动终端针对应用的高频处理任务的资源管理效率。It can be seen that, in the embodiment of the present invention, the mobile terminal first obtains the use record of the resource called by at least one processing task of the application, and secondly, according to the use record of the resource called by the at least one processing task of the application, the mobile terminal's preset Assuming that the resource is configured as a custom resource for at least one processing task of the application, when it is detected that the application is activated, the custom resource is invoked to complete the at least one processing task of the application. Since the high-frequency processing tasks of the application have the exclusive right or the priority right to occupy the customized resources, it can avoid the occurrence of the freeze caused by insufficient resources in the process of launching the application, which is conducive to improving the fluency of running the application on the mobile terminal and improving the mobility of the mobile terminal. The resource management efficiency of the terminal for high-frequency processing tasks of applications.
在一个可能的示例中,所述移动终端获取所述应用的至少一个处理任务所调用的资源的使用记录之前,所述方法还包括:In a possible example, before the mobile terminal obtains the usage record of the resources invoked by at least one processing task of the application, the method further includes:
所述移动终端更新所述应用的至少一个处理任务所调用的资源的使用记录。The mobile terminal updates a usage record of resources invoked by at least one processing task of the application.
其中,移动终端每启用一次应用即可生成该应用的使用记录,该应用的使用记录中包括该应用的至少一个处理任务所调用的资源的使用记录,通过新生成的该应用的至少一个处理任务所调用的资源的使用记录更新所述至少一个处理任务所调用的资源的使用记录,可以实现对至少一个处理任务所调用的资源的动态跟踪,从而对定制资源实现动态调整,有利于提高移动终端针对应用的高频处理任务的资源管理效率。Wherein, each time the mobile terminal starts an application, it can generate a usage record of the application. The usage record of the application includes a usage record of resources called by at least one processing task of the application. Through the newly generated at least one processing task of the application The usage record of the called resource is updated by updating the usage record of the resource called by the at least one processing task, which can realize the dynamic tracking of the resource called by the at least one processing task, thereby realizing dynamic adjustment to the customized resource, which is beneficial to improve the mobile terminal Resource management efficiency for high-frequency processing tasks of applications.
在一个可能的示例中,所述资源为处理资源,所述应用的至少一个处理任务为微信应用的图像处理任务;所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,将所述移动终端的预设资源配置为所述应用的至少一个处理任务的定制资源,包括:In a possible example, the resource is a processing resource, and at least one processing task of the application is an image processing task of the WeChat application; the mobile terminal is based on the use record of the resource called by the at least one processing task of the application , configuring the preset resource of the mobile terminal as a customized resource of at least one processing task of the application, including:
所述移动终端根据所述微信应用的图像处理任务所调用的处理资源的使用记录,将所述移动终端的预设处理资源配置为所述微信应用的图像处理任务的定制处理资源。The mobile terminal configures the preset processing resource of the mobile terminal as a customized processing resource for the image processing task of the WeChat application according to the usage record of the processing resource invoked by the image processing task of the WeChat application.
可见,本可能的示例中,移动终端通过为微信应用的图像处理配置定制处理资源,避免没有足够资源完成微信应用的图像处理任务,有利于提高微信应用的图像处理任务的运行流畅性。It can be seen that in this possible example, the mobile terminal configures custom processing resources for the image processing of the WeChat application to avoid insufficient resources to complete the image processing tasks of the WeChat application, which is conducive to improving the smoothness of the image processing tasks of the WeChat application.
与上述图1A所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种资源管理方法的流程示意图,应用于安装有应用的移动终端。如图所示,本资源管理方法包括:Consistent with the above embodiment shown in FIG. 1A , please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another resource management method provided by an embodiment of the present invention, which is applied to a mobile terminal installed with an application. As shown in the figure, this resource management method includes:
S201,移动终端更新所述应用的至少一个处理任务所调用的资源的使用记录。S201. The mobile terminal updates a usage record of resources invoked by at least one processing task of the application.
S202,所述移动终端输出处理任务设置界面,所述处理任务设置界面至少包括以下处理任务:图像处理任务、视频处理任务、语音处理任务以及文字处理任务。S202. The mobile terminal outputs a processing task setting interface, and the processing task setting interface includes at least the following processing tasks: image processing tasks, video processing tasks, voice processing tasks, and word processing tasks.
S203,所述移动终端在检测到针对所述处理任务设置界面中的至少一个处理任务的选取操作时,获取所述应用的至少一个处理任务所调用的资源的使用记录。S203. When the mobile terminal detects a selection operation for at least one processing task in the processing task setting interface, acquire a usage record of resources invoked by the at least one processing task of the application.
S204,所述移动终端根据所述应用的至少一个处理任务所调用的资源的使用记录,确定所述应用的至少一个处理任务的参考资源调用时段和参考资源调用量。S204. The mobile terminal determines a reference resource invocation period and a reference resource invocation amount of the at least one processing task of the application according to the usage records of the resources invoked by the at least one processing task of the application.
S205,所述移动终端确定资源调用量大于或等于所述参考资源调用量的所述移动终端的预设资源。S205. The mobile terminal determines preset resources of the mobile terminal whose resource invocation amount is greater than or equal to the reference resource invocation amount.
S206,所述移动终端将所述预设资源配置为所述应用的至少一个处理任务在所述参考资源调用时段的专用资源。S206. The mobile terminal configures the preset resource as a dedicated resource for at least one processing task of the application during the reference resource invocation period.
S207,所述移动终端在检测到所述应用启用时,调用所述专用资源以完成所述应用的至少一个处理任务。S207. When the mobile terminal detects that the application is enabled, invoke the dedicated resource to complete at least one processing task of the application.
可以看出,本发明实施例中,移动终端首先获取应用的至少一个处理任务所调用的资源的使用记录,其次,根据应用的至少一个处理任务所调用的资源的使用记录,将移动终端的预设资源配置为应用的至少一个处理任务的定制资源,在检测到应用启用时,调用定制资源以完成应用的至少一个处理任务。由于应用的高频处理任务针对定制资源具有独占权或优先占用权,故而能够避免该应用启用过程中因资源不足而造成卡顿的情况发生,有利于提高移动终端运行应用的流畅性,提高移动终端针对应用的高频处理任务的资源管理效率。It can be seen that, in the embodiment of the present invention, the mobile terminal first obtains the use record of the resource called by at least one processing task of the application, and secondly, according to the use record of the resource called by the at least one processing task of the application, the mobile terminal's preset Assuming that the resource is configured as a custom resource for at least one processing task of the application, when it is detected that the application is activated, the custom resource is invoked to complete the at least one processing task of the application. Since the high-frequency processing tasks of the application have the exclusive right or the priority right to occupy the customized resources, it can avoid the occurrence of the freeze caused by insufficient resources in the process of launching the application, which is conducive to improving the fluency of running the application on the mobile terminal and improving the mobility of the mobile terminal. The resource management efficiency of the terminal for high-frequency processing tasks of applications.
此外,移动终端通过提供可视化交互界面,引导用户自主设定需要配置定制资源的应用的处理任务,使得用户可以直接参与到定制资源的配置过程中,有利于提高处理任务与用户的关联性,提高用户使用黏度。In addition, by providing a visual interactive interface, the mobile terminal guides users to independently set the processing tasks of applications that need to configure customized resources, so that users can directly participate in the configuration process of customized resources, which is conducive to improving the relevance of processing tasks and users, and improving user viscosity.
此外,移动终端为应用的至少一个处理任务配置专用资源,当应用在参考调用时段启用时,直接调用该专用资源来完成应用的至少一个处理任务,避免资源不足无法流畅运行应用的处理任务,有利于提高移动终端针对应用的高频处理任务的资源管理效率。In addition, the mobile terminal configures a dedicated resource for at least one processing task of the application. When the application is enabled during the reference call period, the dedicated resource is directly invoked to complete at least one processing task of the application, so as to avoid insufficient resources and cannot run the processing task of the application smoothly. It is beneficial to improve the resource management efficiency of the mobile terminal for high-frequency processing tasks of applications.
与上述图1A所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种资源管理方法的流程示意图,应用于安装有应用的移动终端。如图所示,本资源管理方法包括:Consistent with the above embodiment shown in FIG. 1A , please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another resource management method provided by an embodiment of the present invention, which is applied to a mobile terminal installed with an application. As shown in the figure, this resource management method includes:
S301,所述移动终端确定所述应用的多种处理任务中的每一种处理任务所调用的资源在所述应用所调用的资源中的占比,所述多种处理任务至少包括图像处理任务、视频处理任务、语音处理任务以及文字处理任务。S301. The mobile terminal determines the proportion of resources called by each processing task of the application in the resources called by the application, and the multiple processing tasks include at least an image processing task , video processing tasks, speech processing tasks, and word processing tasks.
S302,所述移动终端获取占比大于预设占比阈值的至少一个处理任务所调用的资源的使用记录。S302. The mobile terminal acquires usage records of resources invoked by at least one processing task whose proportion is greater than a preset proportion threshold.
S303,所述移动终端根据所述占比大于预设占比阈值的至少一个处理任务所调用的资源的使用记录,确定所述应用的至少一个处理任务的参考资源调用时段和参考资源调用量。S303. The mobile terminal determines a reference resource invocation period and a reference resource invocation amount of at least one processing task of the application according to the usage record of resources invoked by the at least one processing task whose proportion is greater than a preset proportion threshold.
S304,所述移动终端确定资源调用量大于或等于所述参考资源调用量的所述移动终端的预设资源。S304. The mobile terminal determines preset resources of the mobile terminal whose resource invocation amount is greater than or equal to the reference resource invocation amount.
S305,所述移动终端将所述预设资源配置为所述应用的至少一个处理任务在所述参考资源调用时段的优先占用资源。S305. The mobile terminal configures the preset resource as a priority occupation resource of at least one processing task of the application during the reference resource invoking period.
S306,所述移动终端在检测到所述应用启用时,调用所述定制资源以完成所述应用的至少一个处理任务。S306. When detecting that the application is enabled, the mobile terminal invokes the customized resource to complete at least one processing task of the application.
可以看出,本发明实施例中,移动终端首先获取应用的至少一个处理任务所调用的资源的使用记录,其次,根据应用的至少一个处理任务所调用的资源的使用记录,将移动终端的预设资源配置为应用的至少一个处理任务的定制资源,在检测到应用启用时,调用定制资源以完成应用的至少一个处理任务。由于应用的高频处理任务针对定制资源具有独占权或优先占用权,故而能够避免该应用启用过程中因资源不足而造成卡顿的情况发生,有利于提高移动终端运行应用的流畅性,提高移动终端针对应用的高频处理任务的资源管理效率。It can be seen that, in the embodiment of the present invention, the mobile terminal first obtains the use record of the resource called by at least one processing task of the application, and secondly, according to the use record of the resource called by the at least one processing task of the application, the mobile terminal's preset Assuming that the resource is configured as a custom resource for at least one processing task of the application, when it is detected that the application is activated, the custom resource is invoked to complete the at least one processing task of the application. Since the high-frequency processing tasks of the application have the exclusive right or the priority right to occupy the customized resources, it can avoid the occurrence of the freeze caused by insufficient resources in the process of launching the application, which is conducive to improving the fluency of running the application on the mobile terminal and improving the mobility of the mobile terminal. The resource management efficiency of the terminal for high-frequency processing tasks of applications.
此外,移动终端通过为占比大于预设占比阈值的至少一个处理任务配置定制资源,可以准确识别出应用中的高频处理任务,有利于提高识别高频处理任务的准确度。In addition, the mobile terminal can accurately identify high-frequency processing tasks in the application by configuring customized resources for at least one processing task whose proportion is greater than a preset proportion threshold, which is conducive to improving the accuracy of identifying high-frequency processing tasks.
此外,移动终端为应用的至少一个处理任务配置优先占用资源,当应用在参考调用时段启用时,直接调用该有限占用资源来完成应用的至少一个处理任务,避免资源不足无法流畅运行应用的处理任务,有利于提高移动终端针对应用的高频处理任务的资源管理效率。In addition, the mobile terminal configures priority occupancy resources for at least one processing task of the application. When the application is enabled in the reference call time period, it directly calls the limited resource occupancy to complete at least one processing task of the application, so as to prevent insufficient resources from running the processing tasks of the application smoothly. , which is beneficial to improving the resource management efficiency of the mobile terminal for high-frequency processing tasks of applications.
上述主要从方法侧执行过程的角度对本发明实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions of the embodiments of the present invention from the perspective of executing the process on the method side. It can be understood that, in order to realize the above functions, the mobile terminal includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present invention can be realized in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
本发明实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present invention, the functional units of the mobile terminal may be divided according to the above method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of the units in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
在采用集成的单元的情况下,图4A示出了本实施例提供的一种资源管理装置的结构示意图。资源管理装置400包括:处理单元402和通信单元403。处理单元402用于对资源管理装置的动作进行控制管理,例如,处理单元402用于支持资源管理装置执行图1A中的步骤S101至S103、图2中的步骤S201至206以及图3中的步骤S301至S306和/或用于本文所描述的技术的其它过程。资源管理装置还可以包括存储单元401,用于存储资源管理装置的程序代码和数据。In the case of using integrated units, FIG. 4A shows a schematic structural diagram of a resource management device provided in this embodiment. The resource management device 400 includes: a processing unit 402 and a communication unit 403 . The processing unit 402 is used to control and manage the actions of the resource management device, for example, the processing unit 402 is used to support the resource management device to execute steps S101 to S103 in FIG. 1A , steps S201 to 206 in FIG. 2 and steps in FIG. 3 S301 to S306 and/or other processes for the techniques described herein. The resource management device may further include a storage unit 401 for storing program codes and data of the resource management device.
其中,处理单元402可以是处理器或控制器,例如可以是中央处理器(CentralProcessing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元403可以是通信接口、收发器、收发电路等,其中,通信接口是统称,可以包括一个或多个接口。存储单元401可以是存储器。Wherein, the processing unit 402 may be a processor or a controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on. The communication unit 403 may be a communication interface, a transceiver, a transceiver circuit, etc., where a communication interface is a general term and may include one or more interfaces. The storage unit 401 may be a memory.
当处理单元402为处理器,通信单元403为通信接口,存储单元401为存储器时,本发明实施例所涉及的资源管理装置可以为图4B所示的移动终端。When the processing unit 402 is a processor, the communication unit 403 is a communication interface, and the storage unit 401 is a memory, the resource management device involved in this embodiment of the present invention may be the mobile terminal shown in FIG. 4B .
参阅图4B所示,该移动终端410包括:处理器412、收发器413、存储器411。可选的,移动终端410还可以包括总线414。其中,处理器412通过总线414与收发器413、存储器411相互连接;总线414可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线414可以分为地址总线、数据总线、控制总线等。为便于表示,图4B中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 4B , the mobile terminal 410 includes: a processor 412 , a transceiver 413 , and a memory 411 . Optionally, the mobile terminal 410 may also include a bus 414 . Wherein, the processor 412 is connected to the transceiver 413 and the memory 411 through a bus 414; the bus 414 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA for short). ) bus, etc. The bus 414 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 4B , but it does not mean that there is only one bus or one type of bus.
上述图4A所示的资源管理装置或图4B所示的移动终端也可以理解为一种用于移动终端的装置,本发明实施例不限定。The above resource management device shown in FIG. 4A or the mobile terminal shown in FIG. 4B may also be understood as a device for a mobile terminal, which is not limited in this embodiment of the present invention.
本发明实施例还提供了另一种移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention also provides another mobile terminal, as shown in Fig. 5, for the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed, please refer to the method of the embodiment of the present invention part. The mobile terminal can be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the mobile terminal as a mobile phone as an example:
图5示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention. 5, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wireless Fidelity, WiFi) module 970, a processor 980 , and power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Generally, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 910 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobilecommunication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据(比如应用的使用参数等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; the data storage area may store data created according to the use of the mobile phone (such as application using parameters, etc.) etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint identification module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. In addition to the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include but not limited to one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图5中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和播放功能。The display unit 940 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Optionally, the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Although in FIG. 5, the fingerprint identification module 931 and the display screen 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the fingerprint identification module 931 and the display screen 941 can be Integrated to realize the input and playback functions of the mobile phone.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display screen 941 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the loudspeaker 961, and the loudspeaker 961 converts it into a sound signal for playback; After being received, it is converted into audio data, and after being processed by the audio data playback processor 980, the audio data is sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although Fig. 5 shows the WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted according to needs without changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 920, and calling data stored in the memory 920, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that, the foregoing modem processor may not be integrated into the processor 980 .
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 980 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
前述图1A~图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1A to FIG. 3 , the method flow of each step can be realized based on the structure of the mobile phone.
前述图4A所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 4A , the functions of each unit can be realized based on the structure of the mobile phone.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种资源管理方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all steps of any resource management method described in the above method embodiments when executed.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265290.8A CN106802829A (en) | 2016-12-30 | 2016-12-30 | Resource management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265290.8A CN106802829A (en) | 2016-12-30 | 2016-12-30 | Resource management method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106802829A true CN106802829A (en) | 2017-06-06 |
Family
ID=58985281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611265290.8A Pending CN106802829A (en) | 2016-12-30 | 2016-12-30 | Resource management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106802829A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197935A (en) * | 2012-01-09 | 2013-07-10 | 腾讯科技(深圳)有限公司 | Application loading method and system |
CN104391749A (en) * | 2014-11-26 | 2015-03-04 | 北京奇艺世纪科技有限公司 | Resource allocation method and device |
CN105700930A (en) * | 2016-02-22 | 2016-06-22 | 青岛海信移动通信技术股份有限公司 | Application accelerating method and device for embedded operation system |
CN105808328A (en) * | 2014-12-31 | 2016-07-27 | 杭州华为数字技术有限公司 | Task scheduling method, device and system |
-
2016
- 2016-12-30 CN CN201611265290.8A patent/CN106802829A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197935A (en) * | 2012-01-09 | 2013-07-10 | 腾讯科技(深圳)有限公司 | Application loading method and system |
CN104391749A (en) * | 2014-11-26 | 2015-03-04 | 北京奇艺世纪科技有限公司 | Resource allocation method and device |
CN105808328A (en) * | 2014-12-31 | 2016-07-27 | 杭州华为数字技术有限公司 | Task scheduling method, device and system |
CN105700930A (en) * | 2016-02-22 | 2016-06-22 | 青岛海信移动通信技术股份有限公司 | Application accelerating method and device for embedded operation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106126176B (en) | A kind of audio collocation method and mobile terminal | |
CN106055408B (en) | A kind of application control method and mobile terminal | |
CN106020987A (en) | Method and device for determining kernel running configuration in processor | |
CN106776036A (en) | A resource allocation method and device | |
CN106817540A (en) | A camera control method and device | |
WO2018219119A1 (en) | Application function control method and relevant product | |
CN106095489B (en) | A kind of application control method and mobile terminal | |
CN105959483B (en) | A kind of audio stream processing method and mobile terminal | |
CN106484326B (en) | Data transmission processing method and mobile terminal | |
CN106714103A (en) | Network location method and terminal equipment | |
CN107277230A (en) | The voice broadcast method and Related product of message | |
CN108415863A (en) | Hardware compatible implementation method of electronic device and related product | |
CN106776038A (en) | A kind of popular application resource allocation methods and mobile terminal | |
CN106155557A (en) | A virtual button display method and mobile terminal | |
CN106446111A (en) | Data migration method and terminal | |
CN107291327A (en) | Application control method and related product | |
CN106793010A (en) | A network access method and device | |
CN106066814B (en) | Application control method and mobile terminal | |
CN106776040A (en) | A resource allocation method and device | |
CN106980554A (en) | A kind of process handling method and device | |
CN106815078A (en) | A kind of internal memory control method and equipment | |
CN107317917A (en) | Application control method and related product | |
CN107291328A (en) | Interface display method and related product | |
CN107205091A (en) | Call control method and related product | |
CN107291453A (en) | Component display method and related product |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170606 |
|
RJ01 | Rejection of invention patent application after publication |