CN112783636B - Resource allocation method, device and storage medium - Google Patents

Resource allocation method, device and storage medium Download PDF

Info

Publication number
CN112783636B
CN112783636B CN201911080466.6A CN201911080466A CN112783636B CN 112783636 B CN112783636 B CN 112783636B CN 201911080466 A CN201911080466 A CN 201911080466A CN 112783636 B CN112783636 B CN 112783636B
Authority
CN
China
Prior art keywords
function
functions
resource
application program
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911080466.6A
Other languages
Chinese (zh)
Other versions
CN112783636A (en
Inventor
杨冬东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911080466.6A priority Critical patent/CN112783636B/en
Publication of CN112783636A publication Critical patent/CN112783636A/en
Application granted granted Critical
Publication of CN112783636B publication Critical patent/CN112783636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

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

Abstract

The disclosure relates to a resource allocation method, a device and a storage medium, wherein the method comprises the following steps: acquiring behavior habit information of a user; analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of which the use times exceed a first preset value; and before the first function is started, distributing target resources for one or more functions in the first function. The resource allocation method provided by the invention can improve the starting speed of the functions in the application program and improve the use experience of the user.

Description

Resource allocation method, device and storage medium
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a resource allocation method, a resource allocation device and a storage medium.
Background
At present, the requirements of applications and services in application programs are increasing, and how to enable the applications and services to be started faster when a user uses the application programs is important.
In the related technology, a user can quickly search a common application program, and the common application program can be displayed in a touch area of the user according to the use habit of the user, so that the user can quickly enter the common application program to perform required application and service.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a resource allocation method, which can improve the starting speed of functions in an application program and improve the use experience of a user.
According to a first aspect of an embodiment of the present disclosure, there is provided a resource allocation method, including:
Acquiring behavior habit information of a user;
Analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
Before the first function is started, target resources are allocated to one or more functions in the first function, wherein the target resources are resources required for realizing the first function.
Optionally, the allocating a target resource for one or more functions in the first functions includes:
detecting whether an application program corresponding to the first function is in a use state;
If the application program corresponding to the first function is in a use state, before the first function is started, the target resource is allocated to a second function in the first function, wherein the second function refers to the function of which the corresponding application program is in the use state.
Optionally, the allocating a target resource for one or more functions in the first functions includes:
Determining a third function to be used by the user from the first functions according to the behavior habit information;
And allocating the target resource for the third function.
Optionally, if the first function includes a plurality of fourth functions, the allocating the target resource for one or more of the first functions includes:
Acquiring the use times of each of the plurality of fourth functions, and sequencing the use times in order from large to small;
And distributing target resources for the first M fourth functions, wherein M is a positive integer, and M is smaller than or equal to the total number of the fourth functions.
Optionally, before the allocating the target resource to one or more of the first functions, the method further includes:
and determining the target resource.
Optionally, the method further comprises:
If the target resource is larger than the preset storage space, determining a fifth function according to the behavior habit information; the fifth function is a function of which the use times are smaller than a second preset value; and clearing the resources occupied by the fifth function.
Optionally, the determining the target resource includes:
determining a category of the first function;
And determining the resource corresponding to the category as the target resource according to the corresponding relation between the category and the resource.
Optionally, the method further comprises:
Periodically determining a sixth function according to the behavior habit information; the sixth function is a function of which the use times are smaller than a third preset value;
And clearing the resources occupied by the sixth function.
According to a second aspect of embodiments of the present disclosure, there is provided a resource allocation apparatus, including:
The acquisition module is configured to acquire behavior habit information of a user;
The first determining module is configured to analyze the functions in the application program according to the behavior habit information acquired by the acquiring module, and determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
And the first allocation module is configured to allocate target resources for one or more functions in the first functions before the first functions are started, wherein the target resources are resources required for realizing the first functions.
Optionally, the first allocation module includes:
the first detection submodule is configured to detect whether an application program corresponding to the first function is in a use state or not;
The first allocation submodule is configured to allocate the target resource to a second function in the first function before the first function is started when the first detection submodule detects that the application corresponding to the first function is in a use state, wherein the second function refers to a function of the application corresponding to the second function in the use state.
Optionally, the first allocation module includes:
A first determining submodule configured to determine a third function to be used by the user from the first functions according to the behavior habit information;
A second allocation submodule configured to allocate the target resource for the third function.
Optionally, if the first function includes a plurality of fourth functions; the first distribution module includes:
the acquisition sub-module is configured to acquire the use times of each of the plurality of fourth functions and order the use times in order from big to small;
And a third allocation submodule configured to allocate the target resources for the first M fourth functions, wherein M is a positive integer and is less than or equal to the total number of the fourth functions.
Optionally, the apparatus further includes:
And a second determination module configured to determine the target resource.
Optionally, the apparatus further includes:
the third determining module is configured to determine a fifth function according to the behavior habit information if the target resource is larger than a preset storage space; the fifth function is a function of which the use times are smaller than a second preset value; and clearing the resources occupied by the fifth function.
Optionally, the second determining module includes:
A second determination submodule configured to determine a category of the first function;
And the third determination submodule is configured to determine the resource corresponding to the category as the target resource according to the corresponding relation between the category and the resource.
Optionally, the apparatus further includes:
a fourth determining module configured to periodically determine a sixth function according to the behavior habit information; the sixth function is a function of which the use times are smaller than a third preset value;
and the clearing module is configured to clear the resources occupied by the sixth function.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to:
Acquiring behavior habit information of a user;
Analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
Before the first function is started, target resources are allocated to one or more functions in the first function, wherein the target resources are resources required for realizing the first function.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor implements the steps of the method of the first aspect of embodiments of the present disclosure.
The resource allocation method, the device and the storage medium provided by the embodiment of the disclosure acquire behavior habit information of a user; analyzing the functions in the application program according to the acquired behavior habit information, and determining a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period; and further, before the first function is started, allocating target resources for one or more functions in the first function, wherein the target resources are resources required for realizing the first function. Because the first functions in the common application program of the user and in the application program can be known through acquiring the behavior habit of the user, and then the resource allocation can be performed on the first functions in advance, when the user needs to use the first functions in the application program, the first functions can be quickly started, and further the use experience of the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow chart illustrating a method of resource allocation according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of resource allocation according to another exemplary embodiment.
Fig. 3 is a flowchart illustrating a resource allocation method according to yet another exemplary embodiment.
Fig. 4 is a block diagram illustrating a resource allocation apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a resource allocation apparatus according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating a resource allocation apparatus according to still another exemplary embodiment.
Fig. 7 is a block diagram of a resource allocation apparatus according to yet another exemplary embodiment.
Fig. 8 is a block diagram illustrating a resource allocation apparatus according to another exemplary embodiment.
Fig. 9 is a block diagram illustrating a resource allocation apparatus according to still another exemplary embodiment.
Fig. 10 is a block diagram of a resource allocation apparatus according to still another exemplary embodiment.
Fig. 11 is a block diagram of an apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
The resource allocation method provided by the embodiment of the disclosure can be applied to terminal equipment, for example, equipment with machine learning capability such as a mobile phone, a computer or an iPad. In the related art, after a user logs out from some system applications or services, the background of the terminal device will release all relevant memories, where the relevant memories include memories of all application functions in the application program, for example: chat function, payment function, photographing function, video function, etc. in the instant messaging application program, thus when a user starts a certain function in the application program again, the starting speed may be slower, or because of insufficient memory, etc., the user may not use the function, so that the user experience is poor.
The present disclosure provides a resource allocation method by acquiring behavior habit information of a user, in consideration of problems in the related art; analyzing the functions in the application program according to the acquired behavior habit information, and determining a first function; the first function is a function of which the use times exceed a first preset value; and further, before the first function is started, allocating resources for the first function, wherein the target resources are resources required for realizing the first function. Because the first functions in the common application program of the user and in the application program can be known through acquiring the behavior habit of the user, and then the resource allocation can be performed on the first functions in advance, when the user needs to use the first functions in the application program, the first functions can be quickly started, and further the use experience of the user is improved.
Fig. 1 is a flowchart illustrating a resource allocation method, as shown in fig. 1, for use in a terminal, according to an exemplary embodiment, including the following steps.
Step 101: and acquiring behavior habit information of the user.
In this step, the behavior habits of the user may include: the method comprises the steps of using times, using time and using time points, wherein the using times are the total times of a certain function in a certain application program used by a user in a certain time period, the using time is the total time of a certain function in a certain application program used by the user in a certain time period, the using time points are the time points of a certain function in a certain application program used by the user in a certain time period, and for example, the behavior habit of using a beauty function in a camera application program on a terminal device in a week by the user is as follows: the number of times of use in a week is 20, the duration of use in a week is 6 hours, the time points of use in a week are 12 noon and 6 pm of each day, etc., of course, the behavior habit of the user can also include other information, and the disclosure is not limited in any way.
In this step, the terminal device obtains the usage behavior habit of the user, so that the application program and the function of the application program commonly used by the user can be obtained, and the basis can be provided for the resource allocation mode of the terminal device according to the obtained information.
Step 102: analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of which the number of times of use exceeds a first preset value in a preset time period.
In this step, the application program is an application program in the user terminal device, where the application program may be one or more application programs, and further, one or more functions are included in the application program. The terminal equipment analyzes one or more functions of the application programs in the terminal equipment according to the acquired using behavior habits of the user, and determines a first function, wherein the first function is a function which is frequently used in the one or more application programs, namely the first function is a function with the using times exceeding a first preset value. The first preset value may be 10 times or 20 times, and may be set according to specific situations, and the disclosure does not limit any limitation to the first preset value, and in addition, the first function may be one or more functions in one application program, or may be multiple functions in different application programs.
For example: according to the acquired behavior habit of the user A in a week, determining that the common application program of the user A is an instant messaging application program and a payment application program, and further knowing through the acquired behavior habit of the user A in a week: the number of times of the chat function in the instant messaging application program and the photographing function in the user a is 100 times, the number of times of the transfer function in the payment application program is 30 times and the payment function in the user a is 80 times, and assuming that the first preset value is 30 times, the chat function and the photographing function in the instant messaging application program, and the transfer function and the payment function in the payment application program are the first functions.
In the step, the acquired user behavior habit information is used for analyzing the functions in the application program according to the user behavior habit information, and the first function with the use times exceeding a first preset value is determined, so that a basis is provided for reasonable distribution of terminal resources.
Step 103: before the first function is started, one or more functions in the first function are allocated target resources, wherein the target resources are resources required for realizing the first function.
In this step, before the first function is started, it means that the user has not started the first function yet, and in addition, the target resource may include a memory resource, a computing resource, a processing resource, and the like, and the target resource is used to implement the first function.
In an alternative manner, before the target resource is allocated to one or more functions in the first function, the target resource may be determined first, and determining the target resource may determine the category of the first function first, and determine, according to the correspondence between the category and the resource, that the resource corresponding to the category is the target resource.
Before determining the category of the first function, the method for dividing the functions in the application program into categories is not limited, and different levels can be divided according to the use time and the type of resources required by the functions. After determining the category of the first function, further, determining the resource corresponding to the first function category as a target resource according to the corresponding relation between the preset function category and the resource.
By distributing required target resources for the first function before the first function is started, the user can start faster when using the first function in the application program, the first function cannot be normally opened by the user due to insufficient memory or resource distribution, and poor user experience is further caused.
According to the resource allocation method provided by the embodiment of the disclosure, behavior habit information of a user is obtained; analyzing the functions in the application program according to the acquired behavior habit information, and determining a first function; the first function is a function of which the use times exceed a first preset value; and further, before the first function is started, allocating target resources for one or more functions in the first function, wherein the target resources are resources required for realizing the first function. The first function in the common application program of the user and the first function in the application program can be known through acquiring the behavior habit of the user, and then the target resource allocation can be performed on the first function in advance, so that when the user needs to use the first function in the application program, the first function can be quickly started, and further the use experience of the user is improved.
Fig. 2 is a flowchart illustrating a resource allocation method according to another exemplary embodiment, which details a process of how to allocate target resources for one or more of the first functions on the basis of fig. 1, as shown in fig. 2, and includes the following steps.
Step 201: and acquiring behavior habit information of the user.
Step 202: analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of which the number of times of use exceeds a first preset value in a preset time period.
Steps 201 to 202 are similar to steps 101 to 102 and will not be described here.
Step 203: and detecting whether the application program corresponding to the first function is in a use state.
In this step, according to the determined first function, further, an application program corresponding to the first function is determined, and whether the application program corresponding to the first function is in a use state is detected.
Step 204: and if the application program corresponding to the first function is in the use state, distributing target resources for a second function in the first function, wherein the second function refers to the function of which the corresponding application program is in the use state.
In this step, if the first function includes one function, that is, if the number of the first functions is 1, the function is also the second function, and if it is detected that the user is using the application corresponding to the first function, the target resource is allocated to the second function in the first function before the first function is started.
Specifically, the following is exemplified: if the camera is detected to be in a use function state, target resources are allocated to the first function, namely the beauty function, in advance before the beauty function is started, so that a user can start immediately when using the beauty function, and user experience is improved.
Optionally, if the first function includes a plurality of functions; allocating target resources for a second function of the first functions, comprising: detecting the use states of application programs corresponding to the functions respectively to obtain a first application program, wherein the first application program is an application program in the use state, and the function corresponding to the first application program is a second function; a target resource is allocated for a second function in the first application.
For example, when it is determined that the first function includes a plurality of functions, for example, the plurality of functions are a face-beautifying function, a face-thinning function, a chat function, a payment function, and an add friend function, it is assumed that an application corresponding to the face-beautifying function and the face-thinning function is a camera, the application corresponding to the chat function and the add friend function is an instant messaging, the application corresponding to the payment function is a payment application, at this time, usage states of the applications corresponding to the plurality of functions need to be detected, that is, usage states of the camera application, the instant messaging application, and the payment application are detected, an application in a usage state is determined, it is assumed that the instant messaging application is in a usage function state, at this time, a target resource is allocated to a second function in the instant messaging application, that is, a target resource is allocated to the chat function and the add friend function in the instant messaging application.
In this embodiment, by detecting the usage state of the application program corresponding to the determined first function, the application program in the usage state may be determined, and further, the target resource allocation may be performed on the first function in the application program in the usage state, and even when the first function includes a plurality of second functions, it may be possible to quickly determine the application program corresponding to the first function, so as to perform the target resource allocation for the first function in the application program in the usage state in advance.
Optionally, allocating the target resource for one or more of the first functions further includes: determining a third function to be used by the user from the first functions according to the behavior habit information; resources are allocated for the third function to be used by the user.
The first function may include one third function, or may include a plurality of third functions.
Specific examples: the first function determined is assumed to be a beauty function, a picture arrangement function and a video recording function, at this time, according to the behavior habit of the user, the function to be used by the user is determined from the beauty function, the picture arrangement function and the video recording function, wherein the mode of determining the function to be used by the user can be as follows: according to the number of times, the duration and/or the time point of use, the method can be specifically determined according to the actual situation, and after a first function to be used is determined, the determined function is allocated with target resources, namely, the user allocates the target resources for the function to be used. If the function to be used by the user is determined to be the beauty function, the terminal equipment can allocate target resources for the beauty function.
Optionally, if the first function includes a plurality of fourth functions; allocating target resources for one or more of the first functions, comprising: acquiring the use times of each of the plurality of fourth functions, and sequencing the fourth functions according to the order of the use times from large to small; and distributing target resources for the first M fourth functions, wherein M is a positive integer, and M is smaller than or equal to the total number of the fourth functions.
Specific examples: assuming that the first function in the instant messaging application program comprises a plurality of fourth functions, wherein the fourth functions are a chat function, a photographing function, a reddish bag function, a shaking function and a sweeping function, the total number of the fourth functions is 5, if the fourth functions are arranged in order from large to small in use times after the behavior habit of the user is acquired, at this time, target resource allocation can be performed for the first three fourth functions, namely, the chat function, the photographing function and the reddish bag function.
In this embodiment, the user, that is, the first function to be used, may be allocated resources by using the use state information obtained in advance, and the user may use the first function faster by using the resource allocation in advance.
Fig. 3 is a flowchart illustrating a resource allocation method according to still another exemplary embodiment, detailing a process prior to allocating target resources for one or more of the first functions on the basis of fig. 1, as shown in fig. 3, the method comprising the following steps.
Step 301: and acquiring behavior habit information of the user.
Step 302: analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of which the number of times of use exceeds a first preset value in a preset time period.
Steps 301 to 302 are similar to steps 101 to 102 and will not be described here.
Step 303: and determining a target resource.
In this step, the target resource may include a memory resource, a computing resource, a processing resource, and the like, and the target resource is used to implement the first function. And determining the target resource can determine the category of the first function first, and determine the resource corresponding to the category as the target resource according to the corresponding relation between the category and the resource.
Before determining the category of the first function, the specific rule of classifying the functions in the application program is not limited, and the functions can be classified into different levels according to the use time and different categories according to the type of resources required by the functions. After determining the category of the first function, further, determining the resource corresponding to the first function category as a target resource according to the corresponding relation between the preset function category and the resource.
In this step, the predetermined storage space in the terminal device is determined at the same time when the determined size of the target resource required by the first function is the memory resource, the processing resource and the computing resource of the terminal device occupied by the first function. The preset storage space of the terminal equipment is the memory space available for the terminal equipment.
Optionally, if the target resource required by the first function is greater than the preset storage space, determining a fifth function according to the behavior habit information; the fifth function is a function of which the number of uses is smaller than a second preset value.
In this step, if the determined target resource required by the first function is greater than the preset storage space, that is, the storage resource occupied by the first function is greater than the available memory space in the terminal device, a fifth function is further determined according to the behavior habit of the user, where the fifth function is a function whose usage frequency is less than a second preset value, where the second preset value is less than the first preset value, that is, the number of times the user uses the fifth function is less than the number of times of the first function. And clearing the resources occupied by the fifth function.
In this step, after determining the fifth function, the resources allocated to the fifth function, that is, the resources occupied by the fifth function, are cleared, specifically, it is assumed that the determined first function in the instant messaging application program is a chat function, and the resources required by the chat function are greater than the preset storage space, at this time, according to the behavior habit of the user, the fifth function with the number of times of using the function being less than the second preset value is determined, and it is assumed that the fifth function is a set function, at this time, the resources allocated to the fifth function, that is, the resources allocated to the set function, are cleared, so as to satisfy the resources required by the chat, and further, the user can start up faster when using the first function.
Optionally, periodically determining a sixth function according to the behavior habit information; the sixth function is a function of which the number of uses is smaller than a third preset value. And clearing the resources occupied by the sixth function.
Specifically, the sixth function may be determined periodically according to the behavior habit of the user, where the sixth function is a function with the use number less than a third preset value, and the resources occupied by the sixth function are cleared, where the third preset value may be equal to or less than the second preset value, so that the resources required to be allocated for the first function or the fifth function are satisfied by releasing the resources of the sixth function.
Step 304: and before the first function is started, distributing target resources for one or more functions in the first function.
Step 304 is similar to step 103 and will not be described again here.
In this embodiment, by determining the target resource of the first function and determining whether the storage space of the terminal device meets the requirement of the target resource of the first function according to the preset storage space, the resource occupied by the fifth function is cleared to meet the requirement of the resource of the first function, so that better service experience can be provided for the user.
Fig. 4 is a block diagram of a resource allocation device, according to an example embodiment. Referring to fig. 4, the apparatus comprises an acquisition module 11, a first determination module 12 and a first allocation module 13.
An acquisition module 11 configured to acquire behavior habit information of a user;
the first determining module 12 is configured to analyze the functions in the application program according to the behavior habit information acquired by the acquiring module, and determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
A first allocation module 13 configured to allocate, prior to the first function being started, target resources for one or more of the first functions, the target resources being resources required to implement the first function.
According to the resource allocation method provided by the embodiment of the disclosure, the acquisition module 11 acquires behavior habit information of a user; the first determining module 12 analyzes the functions in the application program according to the acquired behavior habit information to determine a first function; the first function is a function of which the use times exceed a first preset value; further, the first allocation module 13 allocates, before the first function is started, target resources for one or more functions of the first functions, where the target resources are resources required for implementing the first function. The first function in the common application program of the user and the first function in the application program can be known through acquiring the behavior habit of the user, and then the target resource allocation can be performed on the first function in advance, so that when the user needs to use the first function in the application program, the first function can be quickly started, and further the use experience of the user is improved.
Fig. 5 is a block diagram of a resource allocation device according to another exemplary embodiment. Referring to fig. 5, the first distribution module 13 includes:
A first detection sub-module 131 configured to detect whether an application corresponding to the first function is in a use state;
the first allocation submodule 132 is configured to allocate a target resource to a second function in the first function before the first function is started when the first detection submodule detects that the application corresponding to the first function is in a use state, where the second function refers to a function in which the application corresponding to the second function is in a use state.
Optionally, the first distribution module 13 includes: a first determination submodule 133 and a third assignment submodule 134, as illustrated in fig. 6, in which,
A first determining sub-module 133 configured to determine a third function to be used by the user from the first functions according to the behavior habit information;
a second allocation submodule 134 configured to allocate the target resource for the third function.
Optionally, if the first function includes a plurality of fourth functions, the first allocation module 13 includes: the acquisition sub-module 135 and the fourth assignment sub-module 136 are shown in fig. 7, wherein,
An obtaining sub-module 135 configured to obtain the number of times of use of each of the plurality of fourth functions, and to sort the plurality of fourth functions in order of the number of times of use from large to small;
A fourth allocation submodule 136 configured to allocate the target resource for a first M of the fourth functions, where M is a positive integer and is less than or equal to a total number of the fourth functions.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 8 is a block diagram of a resource allocation apparatus according to yet another exemplary embodiment. Referring to fig. 8, the apparatus further includes: a second determination module 14 and a third determination module 15, wherein,
A second determination module 14 is configured to determine the target resource.
Optionally, the third determining module 15 is configured to determine the fifth function according to the behavior habit information if the target resource is greater than the preset storage space; the fifth function is a function of which the number of times of use is smaller than a second preset value; and clearing the resources occupied by the fifth function.
Optionally, the second determining module 14 includes: a second determination sub-module 141 and a third determination sub-module 142, as shown in fig. 9, in which,
A second determination sub-module 141 configured to determine a category of the first function;
and a third determining submodule 142 configured to determine, according to the correspondence between the category and the resource, that the resource corresponding to the category is the target resource.
Optionally, the apparatus further comprises a fourth determination module 16 and a purge module 17, as shown in fig. 10, wherein,
A fourth determining module 16 configured to periodically determine a sixth function according to the behavior habit information; the sixth function is a function of which the number of times of use is smaller than a third preset value;
A clearing module 17 configured to clear resources occupied by the sixth function.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 11 is a block diagram illustrating an apparatus 800 for a resource allocation method, according to an example embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 11, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described resource allocation methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A method for resource allocation, comprising:
Acquiring behavior habit information of a user;
Analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
Determining the category of the first function according to the type of the resource required by the first function;
determining the resource corresponding to the category as a target resource according to the corresponding relation between the category and the resource;
Before the first function is started, distributing target resources for a plurality of functions in the first function, wherein the target resources are resources required for realizing the first function, and the plurality of functions in the first function are a plurality of functions in the same application program or a plurality of functions in different application programs;
The allocating target resources for a plurality of functions in the first function includes:
detecting whether an application program corresponding to the first function is in a use state;
and if the application program corresponding to the first function is in a use state, distributing the target resource for a second function in the first function before the first function is started, wherein the second function refers to the function of which the corresponding application program is in the use state.
2. The method of claim 1, wherein the allocating target resources for a plurality of the first functions comprises:
Determining a third function to be used by the user from the first functions according to the behavior habit information;
And allocating the target resource for the third function.
3. The method of claim 1, wherein, if the first function comprises a plurality of fourth functions,
The allocating target resources for a plurality of the first functions includes:
Acquiring the use times of each of the plurality of fourth functions, and sequencing the use times in order from large to small;
And distributing the target resources for the first M fourth functions, wherein M is a positive integer, and M is smaller than or equal to the total number of the fourth functions.
4. The method according to claim 1, wherein the method further comprises:
If the target resource is larger than the preset storage space, determining a fifth function according to the behavior habit information; the fifth function is a function of which the use times are smaller than a second preset value; and clearing the resources occupied by the fifth function.
5. The method according to claim 1, wherein the method further comprises:
Periodically determining a sixth function according to the behavior habit information; the sixth function is a function of which the use times are smaller than a third preset value;
And clearing the resources occupied by the sixth function.
6. A resource allocation apparatus, comprising:
The acquisition module is configured to acquire behavior habit information of a user;
The first determining module is configured to analyze the functions in the application program according to the behavior habit information acquired by the acquiring module, and determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
The first allocation module is configured to allocate target resources for a plurality of functions in the first function before the first function is started, wherein the target resources are resources required for realizing the first function, and the plurality of functions in the first function are a plurality of functions in the same application program or a plurality of functions in different application programs; the first distribution module includes:
the first detection submodule is configured to detect whether an application program corresponding to the first function is in a use state or not;
The first allocation submodule is configured to allocate the target resource to a second function in the first function before the first function is started when the first detection submodule detects that the application corresponding to the first function is in a use state, wherein the second function refers to a function of the application corresponding to the second function in the use state;
the apparatus further comprises a second determination module,
The second determining module includes:
a second determination submodule configured to determine a category of the first function according to a type of resources required by the first function;
And the third determination submodule is configured to determine the resource corresponding to the category as the target resource according to the corresponding relation between the category and the resource.
7. The apparatus of claim 6, wherein the first allocation module comprises:
A first determining submodule configured to determine a third function to be used by the user from the first functions according to the behavior habit information;
A second allocation submodule configured to allocate the target resource for the third function.
8. The apparatus of claim 6, wherein if the first function comprises a plurality of fourth functions; the first distribution module includes:
the acquisition sub-module is configured to acquire the use times of each of the plurality of fourth functions and order the use times in order from big to small;
And a third allocation submodule configured to allocate the target resources for the first M fourth functions, wherein M is a positive integer and is less than or equal to the total number of the fourth functions.
9. The apparatus of claim 6, wherein the apparatus further comprises:
the third determining module is configured to determine a fifth function according to the behavior habit information if the target resource is larger than a preset storage space; the fifth function is a function of which the use times are smaller than a second preset value; and clearing the resources occupied by the fifth function.
10. The apparatus of claim 6, wherein the apparatus further comprises:
a fourth determining module configured to periodically determine a sixth function according to the behavior habit information; the sixth function is a function of which the use times are smaller than a third preset value;
and the clearing module is configured to clear the resources occupied by the sixth function.
11. A terminal device, comprising:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to:
Acquiring behavior habit information of a user;
Analyzing the functions in the application program according to the behavior habit information to determine a first function; the first function is a function of exceeding a first preset value in the use times in a preset time period;
Determining the category of the first function according to the type of the resource required by the first function;
determining the resource corresponding to the category as a target resource according to the corresponding relation between the category and the resource;
Before the first function is started, distributing target resources for a plurality of functions in the first function, wherein the target resources are resources required for realizing the first function, and the plurality of functions in the first function are a plurality of functions in the same application program or a plurality of functions in different application programs;
The allocating target resources for a plurality of functions in the first function includes:
detecting whether an application program corresponding to the first function is in a use state;
and if the application program corresponding to the first function is in a use state, distributing the target resource for a second function in the first function before the first function is started, wherein the second function refers to the function of which the corresponding application program is in the use state.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
CN201911080466.6A 2019-11-07 2019-11-07 Resource allocation method, device and storage medium Active CN112783636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911080466.6A CN112783636B (en) 2019-11-07 2019-11-07 Resource allocation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911080466.6A CN112783636B (en) 2019-11-07 2019-11-07 Resource allocation method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112783636A CN112783636A (en) 2021-05-11
CN112783636B true CN112783636B (en) 2024-05-28

Family

ID=75747766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911080466.6A Active CN112783636B (en) 2019-11-07 2019-11-07 Resource allocation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112783636B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN106528290A (en) * 2016-09-17 2017-03-22 上海摩软通讯技术有限公司 Resource scheduling method for mobile terminal and mobile terminal
CN108920202A (en) * 2018-05-15 2018-11-30 Oppo广东移动通信有限公司 Using preloading management method, device, storage medium and intelligent terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947498B (en) * 2017-12-20 2021-06-29 Oppo广东移动通信有限公司 Application program preloading method and device, storage medium and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN106528290A (en) * 2016-09-17 2017-03-22 上海摩软通讯技术有限公司 Resource scheduling method for mobile terminal and mobile terminal
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN108920202A (en) * 2018-05-15 2018-11-30 Oppo广东移动通信有限公司 Using preloading management method, device, storage medium and intelligent terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
船舶底层通信系统信息资源并行分配方法分析;罗悦;;舰船科学技术(22);155-157 *

Also Published As

Publication number Publication date
CN112783636A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN106020784B (en) Application message display method and device and terminal
EP3188066A1 (en) A method and an apparatus for managing an application
EP3171554B1 (en) Method and device for displaying a message
CN108268322B (en) Memory optimization method and device and computer readable storage medium
US20160352891A1 (en) Methods and devices for sending virtual information card
CN107193653B (en) Bandwidth resource allocation method, device and storage medium
CN106919629B (en) Method and device for realizing information screening in group chat
CN107193606B (en) Application distribution method and device
CN107562349B (en) Method and device for executing processing
CN108320208B (en) Vehicle recommendation method and device
CN110262692B (en) Touch screen scanning method, device and medium
CN108629178B (en) Resource access authority configuration method and device of application program
US9924334B1 (en) Message pushing method, terminal equipment and computer-readable storage medium
CN105511777B (en) Session display method and device on touch display screen
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107402767B (en) Method and device for displaying push message
CN105488074B (en) Photo clustering method and device
CN106919302B (en) Operation control method and device of mobile terminal
CN105095296B (en) File management method and device
CN111078046B (en) Detection method and device and electronic equipment
CN106447747B (en) Image processing method and device
CN105260088B (en) Information classification display processing method and device
CN105786561B (en) Method and device for calling process
CN107885464B (en) Data storage method, device and computer readable storage medium
CN112883073B (en) Data screening method, device, equipment, readable storage medium and 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
GR01 Patent grant
GR01 Patent grant