CN111381960A - Terminal task processing method and device, storage medium and electronic device - Google Patents

Terminal task processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111381960A
CN111381960A CN201811643721.9A CN201811643721A CN111381960A CN 111381960 A CN111381960 A CN 111381960A CN 201811643721 A CN201811643721 A CN 201811643721A CN 111381960 A CN111381960 A CN 111381960A
Authority
CN
China
Prior art keywords
terminal
task
resource
external
local
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
Application number
CN201811643721.9A
Other languages
Chinese (zh)
Inventor
陈建江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201811643721.9A priority Critical patent/CN111381960A/en
Priority to PCT/CN2019/114747 priority patent/WO2020134551A1/en
Publication of CN111381960A publication Critical patent/CN111381960A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • 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]
    • 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

Landscapes

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

Abstract

The invention provides a terminal task processing method and device, a storage medium and an electronic device. The method comprises the following steps: determining whether the use condition of the local resource in the terminal meets the condition that the external resource needs to be used; under the condition that the use condition of the local resource in the terminal is determined to meet the condition that the external resource needs to be used, sending the task to be processed in the terminal to external equipment capable of processing the task so as to process the task to be processed by utilizing the external resource on the external equipment; and receiving a processing result of the external resource to the task, which is returned by the external equipment. The invention solves the problem that the central processing unit on the terminal needs to be continuously upgraded to cause the terminal to generate heat in order to meet the high requirement of the application on the computing capability in the related technology, and the computing capability and the storage capability of the terminal are greatly expanded.

Description

Terminal task processing method and device, storage medium and electronic device
Technical Field
The present invention relates to, but not limited to, the field of communications, and in particular, to a method and an apparatus for processing a terminal task, a storage medium, and an electronic apparatus.
Background
With the development of the technology, more and more applications can be run on the terminal, and with the improvement of the user requirements, the requirements on the application display effect, the application processing speed and the application response speed are higher and higher. All these factors put higher demands on the computing power of the terminal (including the capability of the central processing unit and the memory capability).
In addition, with the higher definition of the multimedia file, the size of the multimedia file is larger and larger, and the requirement on the storage space of the terminal is higher and higher, but because the size of the terminal itself is limited, the expansion of the storage space is often limited.
In summary, in view of the current increasingly high requirements on computing and storage capabilities of the terminal, and the improvement of the capabilities on the terminal is often limited in hardware, there is no effective solution at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing a terminal task, a storage medium and an electronic device, which are used for at least solving the problem that the requirements on the operation and storage capacities on a terminal are higher and higher in the related art, and the improvement of the capacities on the terminal is limited on hardware.
According to an embodiment of the present invention, a method for processing a terminal task is provided, including: determining whether the use condition of the local resource in the terminal meets the condition that the external resource needs to be used, wherein the condition that the external resource needs to be used comprises at least one of the following conditions: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application; under the condition that the use condition of the local resource in the terminal is determined to meet the condition that the external resource needs to be used, sending the task to be processed in the terminal to external equipment capable of processing the task so as to process the task to be processed by utilizing the external resource on the external equipment; and receiving a processing result of the external resource to the task, which is returned by the external equipment.
According to another embodiment of the present invention, there is provided a processing apparatus for a terminal task, including: a determining module, configured to determine whether a usage of a local resource in a terminal satisfies a condition that an external resource needs to be used, where the condition that the external resource needs to be used includes at least one of: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application; the transmission module is used for sending the task to be processed in the terminal to an external device capable of processing the task to process the task to be processed by utilizing the external resource on the external device under the condition that the determining module determines that the use condition of the local resource in the terminal meets the condition of needing to use the external resource; and receiving a processing result of the external resource to the task, which is returned by the external equipment.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the embodiment of the invention, under the condition that the use condition of the local resource in the terminal is determined to meet the condition that the external resource is required to be used, the task to be processed in the terminal is sent to the external equipment capable of processing the task, so that the external resource on the external equipment is utilized to process the task to be processed; and receiving a processing result of the external resource to the task, which is returned by the external equipment. By the scheme, the use condition of local resources in the terminal can be automatically judged, the external resources are determined to be triggered to assist task processing, and the task to be processed is automatically sent to the external resources to be processed, so that the problems that the requirements on the operation and storage capacity of the terminal are higher and higher, and the improvement of the capacity on the terminal is limited on hardware in the related technology are solved. The scheme can automatically realize the calling of the external resources, and the configurable resources of the external equipment can be greatly higher than the local resources of the terminal, so that the computing capacity and the storage capacity of the terminal are greatly expanded, and the requirement of the terminal on the local computing capacity when a large amount of computing capacity is needed during the operation is greatly reduced by using the external resources.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a processing method of a terminal task according to an embodiment of the present invention;
fig. 3 is a block diagram of a configuration of a processing apparatus of a terminal task according to an embodiment of the present invention;
FIG. 4 is a block diagram of an application scenario in an embodiment of the present invention;
fig. 5 is a block diagram of an associated processing system in a terminal according to an embodiment of the present invention;
fig. 6 is a detailed method flowchart of a processing method of a terminal task according to an embodiment of the present invention.
Detailed Description
With the development of technology, the requirements of current applications and multimedia services on the computing and storage capabilities of the terminal are higher and higher. Taking playing a three-dimensional (3D) game on a terminal as an example, a 3D game scene has very good fidelity, and the terminal is required to have strong data operation capability, otherwise the game is stuck. In addition, some applications having a Virtual Reality (VR) display effect and applications having complex operations and high requirements for real-time performance on the terminal have high requirements for the operation and storage capabilities of the terminal.
At present, in order to ensure the smoothness of the terminal Processing application task, the local computing capability of the terminal has to be increased, and a Central Processing Unit (CPU) multi-core parallel scheme is adopted to improve the computing capability of the terminal. However, the terminal runs at full speed and generates heat seriously, and the method of improving the computing power locally at the terminal is adopted, so that the effect of improving the computing power is limited. Furthermore, solving the arithmetic demand by increasing the number of central processing units and the processing capacity of a single central processing unit may lead to an increase in the cost of the terminal. In addition, due to the limitation of the size and the heat dissipation capability of the terminal, the method for improving the computing capability locally at the terminal is often limited, and the effect of improving the computing capability is limited. Similar problems exist with the increase of storage capacity on the terminal in addition to the computing capacity of the terminal.
The development of mobile communication technology brings new opportunities for redefining terminals. By using the low-latency, high-speed data transfer characteristics of high-speed mobile communication such as 5th Generation (5G) communication, and by using the terminal to communicate with the terminal directly (two or more terminals may be connected directly without a base station), tasks in the terminal can be distributed through the mobile communication network in a coordinated manner, and the support of other computing units and storage units besides the terminal is obtained when large data processing is performed. Therefore, the problems of operation speed and storage capacity of bottlenecks easily generated by using the terminal before the user are solved well through the support of high-speed network resources of mobile communication. The terminal does not need to deliberately pursue the multi-core CPU to improve the operation speed, and the problems of heating and power consumption of the multi-core CPU can be solved. In addition, the problems of limited storage space and cost increase in the terminal can be well solved.
The embodiment of the invention provides the capability of sending data rapidly and with low delay by applying the mobile communication technology, and when the utilization rate of the local resources of the terminal reaches a certain set parameter or the terminal currently runs a predetermined application (generally, the application has large operation and storage load on the terminal), the resources (referred to as external resources in the embodiment of the invention, which can comprise computing capability, storage capability and the like) of an external network side or other terminal sides are automatically obtained, so that the performance of the terminal is greatly expanded.
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a terminal. Fig. 1 is a block diagram of a hardware structure of a terminal according to an embodiment of the present invention. As shown in fig. 1, the terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions, an input output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the terminal. For example, the terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the processing method of the terminal task in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, and transmits the processing task on the terminal to the network, i.e., implements the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the terminal 10. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the embodiment, a method for processing a task running on the terminal is provided. Fig. 2 is a schematic diagram of a method for processing a terminal task according to an embodiment of the present invention, and as shown in fig. 2, the method for processing the terminal task includes the following steps:
step S202, determining whether the use condition of the local resource in the terminal meets the condition that the external resource needs to be used, wherein the condition that the external resource needs to be used comprises at least one of the following conditions: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application;
step S204, under the condition that the use condition of the local resource in the terminal is determined to meet the condition that the external resource needs to be used, sending the task to be processed in the terminal to the external equipment capable of processing the task so as to process the task to be processed by utilizing the external resource on the external equipment; and
step S206, receiving a processing result of the external resource to the task returned by the external device.
The external device includes other devices except the terminal, such as a network device or a terminal device around the terminal.
Optionally, the main body of the above steps may be a terminal, but is not limited thereto.
In the above steps, the types of the local resources and the external resources may include, but are not limited to, at least one of the following: computational resources (which may be broadly understood to include processor resources and/or memory resources), storage resources. For example, when the utilization rate of the local processor/memory in the terminal is higher than a threshold value or the predetermined application is using the local processor/memory, a task requiring the use of the local processor/memory may be sent to the external processor/memory for processing. As another example, when the utilization rate of the local memory (represented as the occupancy rate of the local memory) in the terminal is higher than a threshold value at present, or a predetermined application is using the local memory (for example, performing a large amount of local memory reading operations), a task (for example, downloading a high-definition movie) requiring the use of the local memory may be sent to the external memory for processing, that is, downloading into the external memory.
Through the scheme, the use condition of local resources in the terminal can be automatically judged, the external resources are determined to be triggered to assist task processing, and the task to be processed is automatically sent to the external resources to be processed, so that the problems that the requirements on the operation and storage capacity of the terminal are higher and higher, and the improvement of the capacity on the terminal is limited on hardware in the related technology are solved. The scheme can automatically realize the calling of the external resources, and the configurable resources of the external equipment can be greatly higher than the local resources of the terminal, so that the computing capacity and the storage capacity of the terminal are greatly expanded, and the requirement of the terminal on the local computing capacity when a large amount of computing capacity is needed during the operation is greatly reduced by using the external resources.
In order to obtain a faster task sending and processing rate, as an exemplary embodiment, the task may be split according to task related parameters, and the split task is sent to the external device capable of processing the task; and then receiving the processing result of the external resource to the split task returned by the external equipment, and synthesizing the split processing result of the task into a complete processing result of the task. Wherein the task related parameters include at least one of: the type of the task, the computation of each step in the task, the execution sequence of each step in the task, and the association relationship among each step in the task.
As an exemplary embodiment, the decision of which external resource or resources to send the pending task to may be made based on a variety of factors. For example, the process of sending the task to be processed in the terminal to the external device capable of processing the task in step S204 may include: determining the external device capable of processing the task according to predetermined factors, wherein the predetermined factors include at least one of: network quality between the terminal and the external device, utilization rate of an external resource corresponding to the task in the external device, capacity or processing capacity of the external resource corresponding to the task in the external device, type of the task, and user preference configuration; and sending the task to the determined external equipment capable of processing the task. The selection and use of the predetermined factors can be determined according to the setting of a user, the factory setting of the terminal, the intelligent strategy design and other modes, and the main point is that appropriate external resources are selected according to the factors such as the external environment, the preference of the user, the state of the external resources and the like, so that the processing efficiency of tasks is improved.
In step S202, the process of determining whether the usage of the local resource in the terminal meets the predetermined condition is to determine at least one of whether the usage of the local resource in the terminal is higher than a threshold and whether the local resource in the terminal is used by a predetermined application, where the usage information of the resource may be average usage information over a period of time, so as to implement smooth external resource invocation. It will be appreciated by those skilled in the art that in practical applications, the above predetermined condition determination may be implemented by configuring a specific algorithm in the terminal. The following presents preferred algorithms that the terminal may employ in various situations, but those skilled in the art will appreciate that any algorithm that can achieve the above predetermined criteria may be applied and is not necessarily limited to the exemplary algorithm presented herein, which should not be construed to be unduly limited in scope.
(1) In the case that the condition requiring the use of the external resource includes that the usage rate of the local resource in the terminal is higher than the threshold, the step S202 of determining whether the usage condition of the local resource in the terminal satisfies the condition requiring the use of the external resource may include: determining a first use condition indicating value T1 of the local resource according to the use rate of the local resource by the application running in the terminal and the corresponding weight when the local resource is used by the application running in the terminal; when the first usage indication value T1 of the local resource is higher than a first preset threshold T1, determining that the usage of the local resource of the terminal satisfies the condition requiring the use of the external resource.
As an exemplary embodiment, step S202 may be implemented by:
for a predetermined type of local resource in the terminal, determining a first usage indication value T1 ═ a 1X 1+ a1) + (a 2X 2+ a2) ·+ (An X Xn + An) of the predetermined type of local resource, wherein a1-An are the usage rates of the predetermined type of local resource by applications 1-n running in the terminal and the values thereof fall into [0,1], X1-Xn are the corresponding weights when the applications 1-n use the predetermined type of local resource and the values thereof fall into [0,1], a1-An are the usage configuration coefficients corresponding to the applications 1-n and the values thereof fall into [0,1], and n is a positive integer;
when the first usage indication value T1 of the local resource of the predetermined type is higher than a first preset threshold T1, determining that the usage of the local resource of the predetermined type of the terminal satisfies the condition requiring the use of the external resource.
(2) In the case that the condition requiring the use of the external resource includes that the local resource in the terminal is used by a predetermined application, the step S202 of determining whether the use condition of the local resource in the terminal satisfies the condition requiring the use of the external resource may include: determining a second use condition indicating value T2 of the local resource according to an enabling configuration coefficient corresponding to the predetermined application and an enabling coefficient indicating whether the predetermined application is running; when the second usage indication value T2 of the local resource is higher than a second preset threshold T2, determining that the usage of the local resource of the terminal meets the condition that the external resource needs to be used.
As an exemplary embodiment, step S202 may be implemented by:
for a predetermined type of local resource in the terminal, determining a second usage indication value T2 of the predetermined type of local resource (B1 × Y1+ B2 × Y2.. + Bm × Ym), where B1-Bm are respectively enable configuration coefficients corresponding to the predetermined applications 1-m and whose values fall into [0,1], Y1-Ym are respectively enable coefficients whether the predetermined applications 1-m are running and whose values are 0 or 1, the enable coefficients are 1 indicating running, the enable coefficients are 0 indicating not running, and m is a positive integer;
when the second usage indication value T2 of the local resource of the predetermined type is higher than a second preset threshold T2, it is determined that the usage of the local resource of the predetermined type of the terminal satisfies the condition requiring the use of the external resource.
(3) In the case that the condition requiring the use of the external resource includes that the usage rate of the local resource in the terminal is higher than the threshold and that the local resource in the terminal is used by a predetermined application, the step S202 of determining whether the usage of the local resource in the terminal satisfies the condition requiring the use of the external resource may include: determining a third use condition indicating value T3 of the local resource according to the use rate of all running applications in the terminal on the local resource, corresponding weights when all running applications in the terminal use the local resource, an enabling configuration coefficient corresponding to the predetermined application and an enabling coefficient indicating whether the predetermined application is running; when the third usage indication value T3 of the local resource is higher than a third preset threshold T3, determining that the usage of the local resource of the terminal satisfies the condition requiring the use of the external resource.
As an exemplary embodiment, step S202 may be implemented by:
for a predetermined type of local resource in the terminal, determining a third usage indication value T3 ═ a1 × X1+ a1) + (a2 × X2+ a2) ·+ (An × Xn + An) + (B1 × Y1+ B2 × Y2.. + Bm) for the predetermined type of local resource, wherein a1-An is a usage rate of the predetermined type of local resource by An application 1-n running in the terminal and its value falls within [0,1], X1-Xn is a weight corresponding to the application 1-n when the predetermined type of local resource is used by the application 1-n and its value falls within [0,1], a1-An is a usage rate configuration coefficient corresponding to the application 1-n and its value falls within [0,1], B1-Bm is a configuration coefficient corresponding to the predetermined application 1-n and its value falls within [0 ], 1], Y1-Ym is an enabling coefficient of whether the predetermined application 1-m is running or not and has a value of 0 or 1, the enabling coefficient is 1 indicating running, the enabling coefficient is 0 indicating not running, n is a positive integer, and m is a positive integer;
when the third usage indication value T3 of the local resource of the predetermined type is higher than a third preset threshold T3, it is determined that the usage of the local resource of the predetermined type of the terminal satisfies the condition requiring the use of the external resource.
In the above cases (2) and (3), the value of the enabling configuration coefficient B1-Bm corresponding to the predetermined application 1-m may be configured manually by the user when the corresponding application is installed, or may be configured automatically by the terminal after the corresponding application is determined in some way. As an exemplary embodiment, the value of the enabling configuration coefficient B1-Bm corresponding to the predetermined application 1-m may be determined according to the usage rate of the predetermined type of local resource in the terminal when the predetermined application 1-m runs in the terminal. For example, after running a certain application 1, the CPU utilization is mostly maintained at 70%, the B1 value of the application 1 may be set to 1, and if t2 or t3 is also set to 1, it is equivalent to that the external resource is directly triggered as long as the application 1 is run subsequently.
In the above cases (1) and (3), the usage rate of the predetermined type of local resource by the application 1-n is an average usage rate of the predetermined type of local resource by the application 1-n for a predetermined period of time. The reason for this is that, since the terminal local resource occupancy measurement is an instantaneous value, in order to avoid too frequent starting of the terminal external resource, the local resource occupancy needs to be smoothed. For example, the value a1-An of the expression is the average value a1 '-An' of the occupancy rate of the terminal local resource within a predetermined time (e.g., 200ms), and then:
the first use case indicator value T1 ═ a1 ' × 1+ a1) + (a2 ' × 2+ a 2. + (An ' × Xn + An)
The third use case indicator value T3 ═ a1 ' × 1+ a1) + (a2 ' × 2+ a 2. + (An ' × Xn + An) + (B1 × Y1+ B2 · Y2.. + Bm).
The above thresholds t1, t2, and t3 are all used to determine whether the utilization rate of the local resource in the terminal exceeds a predetermined level or whether the local resource is occupied by a predetermined application, and the determination of the thresholds may be specified by a user, may also be preconfigured by a system, and may also be determined according to a requirement of using fluency provided by the user.
In this embodiment of the present invention, the task to be processed in the terminal may include at least one of the following:
the input data packet carries input information of the task to be processed, such as input information in various forms of touch screen input, voice input, gyroscope sensor input, light intensity input and the like;
the application program data packet carries an application program code segment corresponding to the task to be processed;
and the operation process temporary storage data packet carries a temporary storage result of the operation process based on the task to be processed.
In this embodiment of the present invention, the processing result of the task by the external resource returned by the external device may include: the operation result data packet carries output information obtained after the task is processed, such as output information of various output forms of screen display, sound, vibration and the like;
after receiving the processing result of the task by the external resource returned by the external device, the method may further include: and the terminal outputs the result through an output interface corresponding to the output information of the terminal according to the output information carried in the operation result data packet.
Enabling external resources requires wireless transmission, which also consumes part of the resources. For example, if the external resource is triggered to be enabled, which consumes 20% of the CPU utilization rate, each trigger at least needs to transfer one or more applications that consume more than 20% of the CPU to the external resource operation, so that the CPU resource consumption is reduced after the external resource is utilized. Therefore, as a preferred embodiment, the task to be processed sent to the external device may be set, and the average usage rate of the local resource in the terminal is higher than the average usage rate of the local resource in the wireless communication process for sending the task to be processed to the external device.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a terminal, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for processing a terminal task is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a structure of a processing apparatus of a terminal task according to an embodiment of the present invention, and as shown in fig. 3, the apparatus may include:
a determining module 30, configured to determine whether a usage condition of a local resource in a terminal satisfies a condition that an external resource needs to be used, where the condition that the external resource needs to be used includes at least one of: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application;
a transmission module 32, coupled to the determination module 30, configured to send the task to be processed in the terminal to an external device capable of processing the task to process the task by using the external resource on the external device, if the determination module 30 determines that the usage of the local resource in the terminal satisfies the condition that the external resource needs to be used; and
and a receiving module 34, coupled to the transmitting module 32, for receiving a processing result of the task by the external resource returned by the external device.
Alternatively, the processing device of the terminal task may be located in or implemented by the terminal, but is not limited thereto.
In the above embodiments, the types of the local resources and the external resources mentioned may include, but are not limited to, at least one of the following: computational resources (which may be broadly understood to include processor resources and/or memory resources), storage resources. For example, when the utilization rate of the local processor/memory in the terminal is higher than a threshold value or the predetermined application is using the local processor/memory, a task requiring the use of the local processor/memory may be sent to the external processor/memory for processing. As another example, when the utilization rate of the local memory (represented as the occupancy rate of the local memory) in the terminal is higher than a threshold value at present, or a predetermined application is using the local memory (for example, performing a large amount of local memory reading operations), a task (for example, downloading a high-definition movie) requiring the use of the local memory may be sent to the external memory for processing, that is, downloading into the external memory.
Through the scheme, the use condition of local resources in the terminal can be automatically judged, the external resources are determined to be triggered to assist task processing, and the task to be processed is automatically sent to the external resources to be processed, so that the problems that the requirements on the operation and storage capacity of the terminal are higher and higher, and the improvement of the capacity on the terminal is limited on hardware in the related technology are solved. The scheme can automatically realize the calling of the external resources, and the configurable resources of the external equipment can be greatly higher than the local resources of the terminal, so that the computing capacity and the storage capacity of the terminal are greatly expanded, and the requirement of the terminal on the local computing capacity when a large amount of computing capacity is needed during the operation is greatly reduced by using the external resources.
In order to obtain a faster task sending and processing rate, as an exemplary embodiment, the apparatus may further include: a splitting module 36 and a merging module 38.
The splitting module 36 is coupled to the determining module 30 and the transmitting module 32, and configured to split the task according to task-related parameters, wherein the task-related parameters include at least one of: the type of the task, the computation of each step in the task, the execution sequence of each step in the task, and the incidence relation among each step in the task;
the transmission module 32 may be configured to send the split task to the external device capable of processing the task;
the transmission module 32 may be configured to receive a processing result of the external resource to the split task returned by the external device;
the merging module 38 is coupled to the transmission module 32 and configured to synthesize the split processing results of the tasks into a complete processing result of the tasks.
The process of splitting the task and sending the split task to the plurality of external resources may be determined according to at least one of the type of the task, the computation amount of each step in the task, the execution order of each step in the task, and the association relationship between each step in the task.
As an exemplary embodiment, the decision of which external resource or resources to send the pending task to may be made based on a variety of factors. For example, the apparatus may further include: an external device determination module 310, coupled to the transmission module 32, configured to determine the external device capable of processing the task according to predetermined factors, wherein the predetermined factors include at least one of: the network quality between the terminal and the external equipment, the utilization rate of external resources corresponding to the task in the external equipment, the capacity or processing capacity of the external resources corresponding to the task in the external equipment, the type of the task and user preference configuration. The selection and use of the predetermined factors can be determined according to the setting of a user, the factory setting of the terminal, the intelligent strategy design and other modes, and the main point is that appropriate external resources are selected according to the factors such as the external environment, the preference of the user, the state of the external resources and the like, so that the processing efficiency of tasks is improved. The transmission module 32 may be arranged to transmit the task to the determined external device capable of handling the task.
The process of determining whether the usage of the local resource in the terminal meets the predetermined condition by the determining module 30 is to determine at least one of whether the usage of the local resource in the terminal is higher than a threshold and whether the local resource in the terminal is used by a predetermined application, where the usage information of the resource may be average usage information in a period of time, so as to implement smooth external resource invocation. It will be appreciated by those skilled in the art that in practical applications, the above predetermined condition determination may be implemented by configuring a specific algorithm in the terminal. The following presents preferred algorithms that the terminal may employ in various situations, but those skilled in the art will appreciate that any algorithm that can achieve the above predetermined criteria may be applied and is not necessarily limited to the exemplary algorithm presented herein, which should not be construed to be unduly limited in scope.
(1) In the case that the condition requiring the use of the external resource includes that the usage rate of the local resource in the terminal is higher than the threshold, the determining module 30 may determine whether the usage of the local resource in the terminal satisfies the condition requiring the use of the external resource by: determining a first use condition indicating value T1 of the local resource according to the use rate of the local resource by the application running in the terminal and the corresponding weight when the local resource is used by the application running in the terminal; when the first usage indication value T1 of the local resource is higher than a first preset threshold T1, determining that the usage of the local resource of the terminal satisfies the condition requiring the use of the external resource.
As an exemplary embodiment, it may be determined whether the usage of the local resource in the terminal satisfies the condition that the external resource needs to be used by:
for a predetermined type of local resource in the terminal, determining a first usage indication value T1 ═ a 1X 1+ a1) + (a 2X 2+ a2) ·+ (An X Xn + An) of the predetermined type of local resource, wherein a1-An are the usage rates of the predetermined type of local resource by applications 1-n running in the terminal and the values thereof fall into [0,1], X1-Xn are the corresponding weights when the applications 1-n use the predetermined type of local resource and the values thereof fall into [0,1], a1-An are the usage configuration coefficients corresponding to the applications 1-n and the values thereof fall into [0,1], and n is a positive integer;
when the first usage indication value T1 of the local resource of the predetermined type is higher than a first preset threshold T1, determining that the usage of the local resource of the predetermined type of the terminal satisfies the condition requiring the use of the external resource.
(2) In the case that the condition requiring the use of the external resource includes that the local resource in the terminal is used by a predetermined application, the determining module 30 may determine whether the use of the local resource in the terminal satisfies the condition requiring the use of the external resource by: determining a second use condition indicating value T2 of the local resource according to an enabling configuration coefficient corresponding to the predetermined application and an enabling coefficient indicating whether the predetermined application is running; when the second usage indication value T2 of the local resource is higher than a second preset threshold T2, determining that the usage of the local resource of the terminal meets the condition that the external resource needs to be used.
As an exemplary embodiment, it may be determined whether the usage of the local resource in the terminal satisfies the condition that the external resource needs to be used by:
for a predetermined type of local resource in the terminal, determining a second usage indication value T2 of the predetermined type of local resource (B1 × Y1+ B2 × Y2.. + Bm × Ym), where B1-Bm are respectively enable configuration coefficients corresponding to the predetermined applications 1-m and whose values fall into [0,1], Y1-Ym are respectively enable coefficients whether the predetermined applications 1-m are running and whose values are 0 or 1, the enable coefficients are 1 indicating running, the enable coefficients are 0 indicating not running, and m is a positive integer;
when the second usage indication value T2 of the local resource of the predetermined type is higher than a second preset threshold T2, it is determined that the usage of the local resource of the predetermined type of the terminal satisfies the condition requiring the use of the external resource.
(3) In the case that the condition requiring the use of the external resource includes that the usage rate of the local resource in the terminal is higher than the threshold and that the local resource in the terminal is used by a predetermined application, the determining module 30 may determine whether the usage of the local resource in the terminal satisfies the condition requiring the use of the external resource by: determining a third use condition indicating value T3 of the local resource according to the use rate of all running applications in the terminal on the local resource, corresponding weights when all running applications in the terminal use the local resource, an enabling configuration coefficient corresponding to the predetermined application and an enabling coefficient indicating whether the predetermined application is running; when the third usage indication value T3 of the local resource is higher than a third preset threshold T3, determining that the usage of the local resource of the terminal satisfies the condition requiring the use of the external resource.
As an exemplary embodiment, it may be determined whether the usage of the local resource in the terminal satisfies the condition that the external resource needs to be used by:
for a predetermined type of local resource in the terminal, determining a third usage indication value T3 ═ a1 × X1+ a1) + (a2 × X2+ a2) ·+ (An × Xn + An) + (B1 × Y1+ B2 × Y2.. + Bm) for the predetermined type of local resource, wherein a1-An is a usage rate of the predetermined type of local resource by An application 1-n running in the terminal and its value falls within [0,1], X1-Xn is a weight corresponding to the application 1-n when the predetermined type of local resource is used by the application 1-n and its value falls within [0,1], a1-An is a usage rate configuration coefficient corresponding to the application 1-n and its value falls within [0,1], B1-Bm is a configuration coefficient corresponding to the predetermined application 1-n and its value falls within [0 ], 1], Y1-Ym is an enabling coefficient of whether the predetermined application 1-m is running or not and has a value of 0 or 1, the enabling coefficient is 1 indicating running, the enabling coefficient is 0 indicating not running, n is a positive integer, and m is a positive integer;
when the third usage indication value T3 of the local resource of the predetermined type is higher than a third preset threshold T3, it is determined that the usage of the local resource of the predetermined type of the terminal satisfies the condition requiring the use of the external resource.
In the above cases (2) and (3), the value of the enabling configuration coefficient B1-Bm corresponding to the predetermined application 1-m may be configured manually by the user when the corresponding application is installed, or may be configured automatically by the terminal after the corresponding application is determined in some way. As an exemplary embodiment, the value of the enabling configuration coefficient B1-Bm corresponding to the predetermined application 1-m may be determined according to the usage rate of the predetermined type of local resource in the terminal when the predetermined application 1-m runs in the terminal. For example, after running a certain application 1, the CPU utilization is mostly maintained at 70%, the B1 value of the application 1 may be set to 1, and if t2 or t3 is also set to 1, it is equivalent to that the external resource is directly triggered as long as the application 1 is run subsequently.
In the above cases (1) and (3), the usage rate of the predetermined type of local resource by the application 1-n is an average usage rate of the predetermined type of local resource by the application 1-n for a predetermined period of time. The reason for this is that, since the terminal local resource occupancy measurement is an instantaneous value, in order to avoid too frequent starting of the terminal external resource, the local resource occupancy needs to be smoothed. For example, the value a1-An of the expression is the average value a1 '-An' of the occupancy rate of the terminal local resource within a predetermined time (e.g., 200ms), and then:
the first use case indicator value T1 ═ a1 ' × 1+ a1) + (a2 ' × 2+ a 2. + (An ' × Xn + An)
The third use case indicator value T3 ═ a1 ' × 1+ a1) + (a2 ' × 2+ a 2. + (An ' × Xn + An) + (B1 × Y1+ B2 · Y2.. + Bm).
The above thresholds t1, t2, and t3 are all used to determine whether the utilization rate of the local resource in the terminal exceeds a predetermined level or whether the local resource is occupied by a predetermined application, and the determination of the thresholds may be specified by a user, may also be preconfigured by a system, and may also be determined according to a requirement of using fluency provided by the user.
In this embodiment of the present invention, the task to be processed in the terminal may include at least one of the following:
the input data packet carries input information of the task to be processed, such as input information in various forms of touch screen input, voice input, gyroscope sensor input, light intensity input and the like;
the application program data packet carries an application program code segment corresponding to the task to be processed;
and the operation process temporary storage data packet carries a temporary storage result of the operation process based on the task to be processed.
In this embodiment of the present invention, the processing result of the task by the external resource returned by the external device may include: the operation result data packet carries output information obtained after the task is processed, such as output information of various output forms of screen display, sound, vibration and the like;
the apparatus may further include: and an output module 312, coupled to the receiving module 34, configured to, after the receiving module 34 receives a processing result of the external resource to the task, which is returned by the external device, perform result output through an output interface of the terminal corresponding to the output information according to the output information carried in the operation result data packet.
Enabling external resources requires wireless transmission, which also consumes part of the resources. For example, if the external resource is triggered to be enabled, which consumes 20% of the CPU utilization rate, each trigger at least needs to transfer one or more applications that consume more than 20% of the CPU to the external resource operation, so that the CPU resource consumption is reduced after the external resource is utilized. Therefore, as a preferred embodiment, the task to be processed sent to the external device may be set, and the average usage rate of the local resource in the terminal is higher than the average usage rate of the local resource in the wireless communication process for sending the task to be processed to the external device.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining whether the usage of the local resource in the terminal meets the condition of needing to use the external resource, wherein the condition of needing to use the external resource comprises at least one of the following conditions: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application;
s2, sending the task to be processed in the terminal to an external device capable of processing the task to process the task to be processed by using the external resource on the external device under the condition that the use condition of the local resource in the terminal meets the condition that the external resource needs to be used; and
and S3, receiving the processing result of the external resource to the task returned by the external equipment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining whether the usage of the local resource in the terminal meets the condition of needing to use the external resource, wherein the condition of needing to use the external resource comprises at least one of the following conditions: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application;
s2, sending the task to be processed in the terminal to an external device capable of processing the task to process the task to be processed by using the external resource on the external device under the condition that the use condition of the local resource in the terminal meets the condition that the external resource needs to be used; and
and S3, receiving the processing result of the external resource to the task returned by the external equipment.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The following takes the resource type as the main resource form in the computing resource, i.e., the CPU resource, as an example, and illustrates the scheme of the embodiment of the present invention.
According to the technology of the embodiment of the invention, when the average utilization rate of the CPU of the terminal reaches a certain value (for example, 30%), the external resources (for example, network side resources or peripheral external equipment resources) designated by a user are automatically started, the terminal divides the calculation tasks, sends the calculation tasks to the network side resources or the peripheral equipment resources through the mobile communication network, and the external resources of the terminal acquire the calculation tasks and calculate the calculation tasks, returns the calculation results to the terminal, and locally synthesizes the calculation results at the terminal to present the overall calculation results.
Since mobile communication has high-speed and low-latency data transmission capability (for example, for a 5G mobile communication network, the transmission speed of the period 1 can reach Gb level per second, and the latency is only millisecond level), the access calculation of the network side resources and the peripheral resources of the terminal is similar to that of the terminal. As a preferred example, the terminal sends to an external resource such as a network side or a peripheral device only a control signal (for example, a signal that a user touches a touch screen) when the terminal plays a game, the external resource returns a signal such as a terminal display content and a sound vibration, a large amount of computing tasks such as a game interface scene change are completed on the external device side, and the computing capability of the terminal local is mainly used for controlling and coordinating input and output data. The configurable resources of the external equipment can be greatly higher than the local resources of the terminal, so that the computing capacity and the storage capacity of the terminal are greatly expanded.
Fig. 4 is a block diagram of an application scenario in an embodiment of the present invention, and as shown in fig. 4, after a terminal reaches a certain condition (e.g., the predetermined condition), it may automatically trigger to use an external resource to expand the terminal configuration. The external user designated resource may be a computer in the user's home, or another terminal or terminals of the user, or a common resource used by the home user at the time. The terminal and the external resource may be implemented by a wireless communication technology, for example, 5G Multiple-Input Multiple-Output (MIMO), where the basic starting point of the MIMO technology is to decompose user data into Multiple parallel data streams, transmit the data streams at the same time by Multiple transmitting antennas within a specified bandwidth, receive the data streams via a wireless channel by the Multiple antennas, perform demodulation technology according to spatial characteristics of each parallel data stream, and finally recover original data.
Fig. 5 is a block diagram of a related processing system in a terminal according to an embodiment of the present invention, and the functions of the system included in the terminal will be briefly described below.
Terminal resource management system 50: and monitoring the use condition of the terminal resource (such as CPU use rate, memory use rate, storage capacity use rate and the like), and when an external resource starting triggering condition is reached (for example, the CPU use rate (which may be an actual use rate value or a weighted use rate value) reaches 30%, or the terminal runs a predetermined application), sending an external resource starting instruction.
The present embodiment gives a preferable trigger expression T (corresponding to the usage indication value of the resource in the above-described embodiment) for determining whether the external resource should be enabled. When T is greater than the threshold, the terminal resource management system 50 enables the external resource.
T=(A1*X1+a1)+(A2*X2+a2)...+(An*Xn+an)+(B1*Y1+B2*Y2...+Bm*Ym)
A1-An is the configuration resource utilization rate of the terminal running application 1-n, for example, a1 is the CPU utilization rate when running application 1 related to a1, X1 is the weight corresponding to a1 (which may also be understood as corresponding to application 1), and a1 is the utilization rate configuration coefficient corresponding to a1 (which may also be understood as corresponding to application 1). B1-Bm is an enable configuration coefficient for specifying application 1-m, for example, B1 is an enable configuration coefficient for terminal running application 1 related to B1, and B1 is a constant. Y1-Ym is the enabling coefficient of B1-Bm correspondence (which can also be understood as applying 1-m correspondence). For example, when the terminal runs the application 1 related to B1, Y1 is 1, and correspondingly, B1 is Y1 is B1. If the application stops running, Y1 is 0, and correspondingly B1 is Y1 is 0.
For ease of understanding, the expressions are illustrated. For simplicity, to omit other factors, taking the CPU utilization rate as an example, when T is greater than or equal to a threshold (in this example, the threshold is 1), the terminal resource management system 50 sends a trigger signal for enabling the external resource. A1 is the CPU usage when running application 1 associated with a1, if the current usage is 60%, X1 is the weight of the CPU usage of application 1, which is 0.90, and a1 is the usage configuration factor of the CPU usage of application 1, which is currently configured to be 0.70.
T=(0.60*0.90+0.70)=1.24
Namely, T ≧ 1, the terminal resource management system 50 issues a trigger signal to enable the external resource.
If the CPU usage is 20% at this time, the CPU usage is controlled to be normal at this time
T=(0.20*0.90+0.70)=0.88
I.e., T is less than or equal to 1, the terminal resource management system 50 does not send a trigger signal for starting an external resource.
For example, B1-Bm, B1 is a large 3D game, the enabling configuration coefficient is 1, that is, as long as the game runs Y1 ═ 1, B1 ═ Y1 ═ 1, and other application consumption is added, T is inevitably equal to or greater than 1, and the terminal resource management system 50 inevitably issues a trigger signal to enable an external resource. Of course, if the game is quit running, Y1 is 0, B1 is Y1 is 0, and T is greater than 1, depending on the CPU consumption of other applications. B1 can be configured manually by the user when the application is installed, or can be configured automatically by the terminal after the application is determined in some way, for example, after the application is run, the CPU utilization rate is mostly maintained at 70%, the application B1 can be configured as 1, and then only the application is run to directly trigger the external resource.
The terminal resource management system 50 can determine whether to send a trigger signal for starting an external resource by determining whether T is greater than 1.
Task splitting and composition system 54: after obtaining the external resource enabling instruction, the task splitting and synthesizing system 54 splits and packs the current calculation task amount (through the mobile communication receiving and sending system) and sends it to the resources specified by the network side user for calculation. And acquiring network side branch task calculation results through a mobile communication receiving and sending system, synthesizing total task calculation results, and displaying the total task calculation results on a terminal.
The terminal task splitting and combining system 54 splits the operation data into a large number of data packets for transmission. The data packet structure includes a destination IP address, a source IP address, payload data, and the like. The data packet types comprise a terminal input data packet (such as touch screen input, voice input, gyroscope sensor input, light intensity input and the like), a terminal current application program data packet (application program code), and a data packet temporarily stored in the operation process.
After the operation is carried out by the external resources, the contents of an operation result data packet (screen display, sound and vibration) are split by the network side operation resources, so that the wireless transmission is facilitated. The terminal task resolution and composition system 54 combines the received dispersed data packets into a completed operational output result, which is presented on the terminal.
Mobile communication transmission and reception system 52: the respective sub-tasks split by the task splitting and synthesizing system 54 are quickly transmitted to the network side for operation, and the result is quickly returned and sent to the task splitting and synthesizing system 54 to synthesize the total task operation result.
The terminal operation processing system 56: and coordinating the work among the modules according to a preset program and bearing local operation tasks.
Terminal other companion system 58: the system comprises necessary systems for supporting the whole operation of the terminal, such as power management, baseband processing, storage and the like.
Because the user on the network side designates the resource, which is an operating system with strong operation capability and sufficient memory, when the user uses an application requiring strong operation capability, the terminal task splitting and synthesizing system 54 can send the screen touch information of the user and the current state information of the terminal (for example, the current information of each sensor) as tasks to the external resource, perform operation on the external resource, and return the operation result to the terminal, for example, the returned information includes a dynamic picture of the application completing operation, a sound effect, and motor vibration information, and the terminal only needs to decode and display locally, play the sound effect, and trigger the motor vibration. The method greatly reduces the requirement on local computing power when the terminal runs an application requiring a large amount of computing power.
The methods of the embodiments of the present invention are exemplified below in some specific applications.
For example, a user is in a street position of a city, an AR guide application of the city is operated, and the AR guide application can render a street scene of the position of the user in real time and present the street scene on a terminal. The AR tour guide application vividly renders scenes seen at the current position according to the position of the terminal, the visual angle and the like, and marks the information of the buildings and the scenic spots. When a user enters a scenic spot, such as the interior of a building, the AR tour guide application renders and presents building details of the current view angle of the user and introduces the building details. The AR tour guide operation needs larger computing capability, when the application is operated, B is 1, the terminal is communicated with the specified resource of the network side user, the AR tour guide application on the network side is started, the terminal task splitting and synthesizing system 54 sends the GPS position information and the gyroscope angle information in the terminal to the specified external resource of the user, the external resource corresponds to the information of the terminal at the moment, the rendered street picture is coded and then transmitted back to the terminal, the terminal decodes locally, and the street picture with information such as the label introduction and the like is displayed in a superposition mode. The technical scheme of the embodiment of the invention can well solve the problem of application operation which exceeds the local operation capability of the terminal and needs a large amount of operation.
Except that the terminal triggers and starts the external resources when T is greater than 1, how to more effectively and more reasonably utilize the external resources can consider the strategy of operating the external resources. The external resources of the terminal comprise available resources obtained by the base station through the network side user and available resources obtained by direct connection with other peripheral terminals. In this way, the external resources required by the current terminal of the user can be automatically allocated to different suitable devices according to the task type, or the current environment, the habit of the user and other factors. Some examples of determining which external resource to use based on external factors are given below.
In example 1, a user needs a terminal to execute a certain task, the task is executed with T >1, and the terminal needs to start an external resource. When the main device needs to start external resources, namely, another mobile device connected with the user acquires resources, but not acquires the operation resources of the network side of the base station. The present example relates to a terminal automatically configuring external resource content according to an external environment.
Example 2, another mobile device (secondary device) of the user is a mobile power supply + a large memory + a transceiver system, a camera without a display screen, a microphone, an earphone, a speaker sensor and the like, and at this time, the user sends an instruction on the primary device to download a high-definition movie. When the main device executes the task, T is greater than 1, and the terminal needs to start external resources. According to the user habit, the main device distributes the task, the high-definition movie link is sent to the secondary device, the secondary device downloads the high-definition movie big file to the secondary device locally and stores the high-definition movie big file, and the secondary device sends the compressed movie which is suitable for being played on the screen of the main device to the main device. In this example, direct connection between terminals is involved, appropriate external resources are enabled according to user habits, and contents such as a memory outside the main device are utilized.
The following describes in detail a method flow of a processing method of a terminal task according to an embodiment of the present invention. Fig. 6 is a detailed method flowchart of a processing method of a terminal task according to an embodiment of the present invention, as shown in fig. 6, the method includes the following steps:
step 601: and initializing the terminal.
Step 602: the terminal starts the terminal resource management system 50.
Step 603: the terminal-initiated terminal resource management system 50 monitors the current resource utilization of the terminal, including CPU utilization, memory utilization, and other indicators.
Step 604: the terminal resource management system 50 determines whether the current resource utilization of the terminal reaches a preset trigger threshold. If the trigger value is reached, the terminal resource management system 50 sends a trigger signal, and step 605 is entered. If the trigger value is not reached, returning to step 603 to continue monitoring.
Step 605: task splitting and composition system 54 splits the current computational task.
Step 606, the following steps: the terminal operation processing system 56 transmits the tasking to the network-side computational resource designated by the user through the mobile communication transmission and reception system 52.
Step 607: and the network side operation resource operates the branch task.
Step 608: and the network side computing resource returns the sub-task computing result to the terminal.
Step 609: the task splitting and composition system 54 combines the split task operations into a total task operation result.
The terminal of the embodiment of the invention automatically utilizes the network side resource appointed by the user and the peripheral external resource of the terminal, can greatly improve the operational capability of the terminal, realizes the purpose that the low-configuration terminal achieves the performance of the high-configuration terminal, and meets the high-end configuration requirements of the user on large operational power and large memory capacity. The terminal of the embodiment of the invention automatically utilizes the network side resource and the peripheral external resource of the terminal specified by the user and the high-speed and low-delay characteristics of the terminal, and can complete the task which is difficult to complete due to insufficient resources of the current terminal in real time.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method for processing a terminal task is characterized by comprising the following steps:
determining whether the use condition of the local resource in the terminal meets the condition that the external resource needs to be used;
under the condition that the use condition of the local resource in the terminal is determined to meet the condition that the external resource needs to be used, sending the task to be processed in the terminal to external equipment capable of processing the task so as to process the task to be processed by utilizing the external resource on the external equipment; and
and receiving a processing result of the external resource to the task, which is returned by the external equipment.
2. The method of claim 1, wherein the condition requiring use of the external resource comprises at least one of: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application.
3. The method of claim 1,
sending the task to be processed in the terminal to an external device capable of processing the task comprises: splitting the task according to task related parameters, and sending the split task to the external device capable of processing the task, wherein the task related parameters include at least one of the following parameters: the type of the task, the computation of each step in the task, the execution sequence of each step in the task, and the association relationship among each step in the task.
4. The method according to any one of claims 1 to 3, wherein sending the task to be processed in the terminal to the external device capable of processing the task comprises:
determining the external device capable of processing the task according to predetermined factors, wherein the predetermined factors include at least one of: network quality between the terminal and the external device, utilization rate of an external resource corresponding to the task in the external device, capacity or processing capacity of the external resource corresponding to the task in the external device, type of the task, and user preference configuration;
and sending the task to the determined external equipment capable of processing the task.
5. The method according to claim 2, wherein in the case that the condition requiring the use of the external resource includes that the usage rate of the local resource in the terminal is higher than the threshold, determining whether the usage condition of the local resource in the terminal satisfies the condition requiring the use of the external resource includes:
determining a first use condition indicating value T1 of the local resource according to the use rate of the local resource by the application running in the terminal and the corresponding weight when the local resource is used by the application running in the terminal;
when the first usage indication value T1 of the local resource is higher than a first preset threshold T1, determining that the usage of the local resource of the terminal satisfies the condition requiring the use of the external resource.
6. The method according to claim 2, wherein in the case that the condition requiring the use of the external resource includes that a local resource in the terminal is used by a predetermined application, the determining whether the use condition of the local resource in the terminal satisfies the condition requiring the use of the external resource comprises:
determining a second use condition indicating value T2 of the local resource according to an enabling configuration coefficient corresponding to the predetermined application and an enabling coefficient indicating whether the predetermined application is running;
when the second usage indication value T2 of the local resource is higher than a second preset threshold T2, determining that the usage of the local resource of the terminal meets the condition that the external resource needs to be used.
7. The method according to claim 2, wherein in the case that the condition requiring the use of the external resource includes that the usage rate of the local resource in the terminal is higher than the threshold and that the local resource in the terminal is used by a predetermined application, determining whether the usage of the local resource in the terminal satisfies the condition requiring the use of the external resource comprises:
determining a third use condition indicating value T3 of the local resource according to the use rate of all running applications in the terminal on the local resource, corresponding weights when all running applications in the terminal use the local resource, an enabling configuration coefficient corresponding to the predetermined application and an enabling coefficient indicating whether the predetermined application is running;
when the third usage indication value T3 of the local resource is higher than a third preset threshold T3, determining that the usage of the local resource of the terminal satisfies the condition requiring the use of the external resource.
8. The method according to claim 6 or 7, wherein the value of the enabling configuration coefficient corresponding to the predetermined application is determined according to the utilization rate of the local resource in the terminal when the predetermined application runs in the terminal.
9. The method according to claim 5 or 7, wherein the usage rate of the local resource by the application is an average usage rate of the local resource by the application for a predetermined time period.
10. The method according to any of claims 1-9, characterized in that the tasks to be processed in the terminal comprise at least one of the following:
an input data packet carrying input information of the task to be processed;
the application program data packet carries an application program code segment corresponding to the task to be processed;
and the operation process temporary storage data packet carries a temporary storage result of the operation process based on the task to be processed.
11. The method according to any one of claims 1 to 10, wherein the processing result of the task by the external resource returned by the external device comprises: the operation result data packet carries output information obtained after the task is processed;
after receiving the processing result of the external resource to the task returned by the external device, the method further includes: and the terminal outputs the result through an output interface corresponding to the output information of the terminal according to the output information carried in the operation result data packet.
12. Method according to any of claims 1-11, characterized in that the average usage of the local resources in the terminal for the pending tasks sent to the external device is higher than the average usage of the local resources by the wireless communication process used for sending the pending tasks to the external device.
13. An apparatus for processing a task of a terminal, comprising:
a determining module, configured to determine whether a usage of a local resource in a terminal satisfies a condition that an external resource needs to be used, where the condition that the external resource needs to be used includes at least one of: the utilization rate of the local resources in the terminal is higher than a threshold value, and the local resources in the terminal are used by a preset application;
the transmission module is used for sending the task to be processed in the terminal to an external device capable of processing the task to process the task to be processed by utilizing the external resource on the external device under the condition that the determining module determines that the use condition of the local resource in the terminal meets the condition of needing to use the external resource; and
and the receiving module is used for receiving the processing result of the external resource to the task, which is returned by the external equipment.
14. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 12 when executed.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 12.
CN201811643721.9A 2018-12-29 2018-12-29 Terminal task processing method and device, storage medium and electronic device Pending CN111381960A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811643721.9A CN111381960A (en) 2018-12-29 2018-12-29 Terminal task processing method and device, storage medium and electronic device
PCT/CN2019/114747 WO2020134551A1 (en) 2018-12-29 2019-10-31 Terminal task processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811643721.9A CN111381960A (en) 2018-12-29 2018-12-29 Terminal task processing method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN111381960A true CN111381960A (en) 2020-07-07

Family

ID=71127269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811643721.9A Pending CN111381960A (en) 2018-12-29 2018-12-29 Terminal task processing method and device, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN111381960A (en)
WO (1) WO2020134551A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101663647A (en) * 2007-04-25 2010-03-03 高通股份有限公司 Device that determines whether to launch an application locally or remotely as a webapp
CN106548262A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 For the dispatching method of the resource of process task, device and system
WO2017166643A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Method and device for quantifying task resources
CN107844374A (en) * 2017-11-02 2018-03-27 上海携程商务有限公司 The task executing method of terminal device, device, electronic equipment, storage medium
CN108170526A (en) * 2017-12-06 2018-06-15 北京像素软件科技股份有限公司 Load capacity optimization method, device, server and readable storage medium storing program for executing
CN109144714A (en) * 2017-06-19 2019-01-04 中兴通讯股份有限公司 EMS memory management process and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170479B (en) * 2011-05-21 2013-12-18 华为数字技术(成都)有限公司 Updating method of Web buffer and updating device of Web buffer
CN103095801B (en) * 2012-12-07 2015-09-23 傲游国际有限公司 A kind ofly apply the method and apparatus that browser processes resource automatically
US11734302B2 (en) * 2016-06-09 2023-08-22 Apple Inc. Multi-device context store

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101663647A (en) * 2007-04-25 2010-03-03 高通股份有限公司 Device that determines whether to launch an application locally or remotely as a webapp
CN106548262A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 For the dispatching method of the resource of process task, device and system
WO2017166643A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Method and device for quantifying task resources
CN109144714A (en) * 2017-06-19 2019-01-04 中兴通讯股份有限公司 EMS memory management process and device
CN107844374A (en) * 2017-11-02 2018-03-27 上海携程商务有限公司 The task executing method of terminal device, device, electronic equipment, storage medium
CN108170526A (en) * 2017-12-06 2018-06-15 北京像素软件科技股份有限公司 Load capacity optimization method, device, server and readable storage medium storing program for executing

Also Published As

Publication number Publication date
WO2020134551A1 (en) 2020-07-02

Similar Documents

Publication Publication Date Title
Bittencourt et al. Mobility-aware application scheduling in fog computing
CN116210212A (en) Content-adaptive data center routing and forwarding in a cloud computing environment
KR102612312B1 (en) Electronic apparatus and controlling method thereof
KR20160098438A (en) Computer, control device and data processing method
CN102984189A (en) Wireless network and implementation method and terminal thereof
CN113747510A (en) Communication method and device
CN111371694B (en) Shunting method, device and system, processing equipment and storage medium
CN107920108A (en) A kind of method for pushing of media resource, client and server
CN117695619A (en) Multi-session remote game rendering
WO2015117445A1 (en) Method and device for processing task window
CN114466226B (en) Bandwidth duration duty cycle determination method, device, equipment and computer readable medium
CN113453025B (en) Data acquisition method and device
CN113938394B (en) Monitoring service bandwidth allocation method and device, electronic equipment and storage medium
CN107624181A (en) Idle and scheduling virtual machine management method and equipment including virtual processor
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN112153419A (en) Network resource configuration adjusting method, device, server and storage medium
CN111381960A (en) Terminal task processing method and device, storage medium and electronic device
CN112887353B (en) Information processing method, device, terminal and storage medium
CN109922318B (en) Multi-channel video transmission scheduling method and device, storage medium and electronic terminal
WO2023057794A1 (en) Method for aligning quality of service in mobile network and edge cloud
CN108881117B (en) Method, apparatus and computer readable medium for deploying virtual reality services in an access network
CN113473180B (en) Wireless-based Cloud XR data transmission method and device, storage medium and electronic device
CN109640178A (en) Network shunt method and relevant device
US20220374262A1 (en) Methods for Offloading A Task From A Processor to Heterogeneous Accelerators
US20220374277A1 (en) Methods for Generating Application For Radio-Access-Network Servers with Heterogeneous Accelerators

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