CN111611077A - Task parameter processing method, terminal and storage medium - Google Patents

Task parameter processing method, terminal and storage medium Download PDF

Info

Publication number
CN111611077A
CN111611077A CN202010431820.1A CN202010431820A CN111611077A CN 111611077 A CN111611077 A CN 111611077A CN 202010431820 A CN202010431820 A CN 202010431820A CN 111611077 A CN111611077 A CN 111611077A
Authority
CN
China
Prior art keywords
task
target
parameter
terminal memory
parameters
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
CN202010431820.1A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010431820.1A priority Critical patent/CN111611077A/en
Publication of CN111611077A publication Critical patent/CN111611077A/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
    • 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
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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

Abstract

The application relates to a task parameter processing method, a terminal and a storage medium. The method comprises the following steps: after a task object set is obtained, a task parameter set corresponding to the task object set is requested to be obtained from a third-party server, the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object; caching the acquired task parameter set to a terminal memory; and the at least one task object comprises a target task object, after a task trigger event aiming at the target task object is detected, a target task parameter is searched from the terminal memory, and a task aiming at the target task object is executed by utilizing the searched target task parameter, wherein the target task parameter is the task parameter of the target task object. The method is beneficial to reducing the task execution time delay.

Description

Task parameter processing method, terminal and storage medium
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a task parameter processing method, a terminal, and a storage medium.
Background
With the development of mobile internet technology, various mobile terminal applications have appeared, and the applications perform corresponding tasks by responding to the trigger of the mobile terminal user to meet various needs of the mobile terminal user in life, learning, entertainment, and the like. For some application programs, the task execution process needs to communicate with the application server of the application program, and also needs to communicate with a third-party server related to task execution, so as to obtain task object information needed by task execution from the third-party server. In the process, a plurality of task objects are usually displayed through a task interface of the application program for a mobile terminal user to select, a task for the task object selected by the mobile terminal user is triggered in response to the selection of the mobile terminal user, the application program establishes connection with a third-party server, obtains task parameters of the task object selected by the mobile terminal user from the third-party server, and continues to execute the corresponding task by using the obtained task parameters.
In practical application, the time delay for acquiring the task parameters from the third-party server is often long, which may cause the task execution time to be prolonged on one hand and may cause the task execution failure on the other hand.
Disclosure of Invention
In order to solve the problem caused by long time delay in acquiring the task parameters of the application program, embodiments of the present application provide a task parameter processing method, a terminal, and a storage medium.
In a first aspect, an embodiment of the present application provides a task parameter processing method, where the method includes:
after a task object set is obtained, a task parameter set corresponding to the task object set is requested to be obtained from a third-party server, the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object;
caching the acquired task parameter set into a terminal memory;
and searching a target task parameter from a terminal memory after detecting a task trigger event aiming at the target task object, and executing a task aiming at the target task object by using the searched target task parameter, wherein the target task parameter is the task parameter of the target task object.
According to the method provided by the embodiment of the application, the target task parameters are obtained from the third-party server in advance to the time before the task aiming at the target task object is triggered. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Optionally, after detecting a task trigger event for the target task object, if the target task parameter is not found from the terminal memory, the target task parameter may be requested to be obtained from the third-party server, the target task parameter obtained from the third-party server is cached in the terminal memory, and the task for the target task object is executed by using the target task parameter obtained from the third-party server.
According to the method provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay for acquiring the target task parameter at the next time is reduced.
On the basis of any method embodiment, after the task object set is obtained, the task parameters of the task objects of the application program can be searched from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The valid task parameters refer to task parameters within the validity period. In practical application, the validity period of the task parameter can be maintained by setting a timer, and whether the task parameter is valid can be judged by comparing the task parameter with the task object version number carried in the task parameter.
The method provided by the embodiment of the application comprises the steps of judging whether effective task parameters of task objects of application programs are cached in a terminal memory or not before a third-party server requests to acquire the task parameter sets, requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and not requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the implementation manner of caching the acquired task parameter set in the terminal memory may include: and caching the task parameter set into a terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the method provided by the embodiment of the application, the cached task parameter set and the task parameters in the memory of the terminal are replaced by the acquired task parameter set, and the searching efficiency of the effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the task parameter set acquisition module is used for requesting to acquire a task parameter set corresponding to a task object set from a third-party server after acquiring the task object set, wherein the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object;
the task parameter set caching module is used for caching the acquired task parameter set into a terminal memory;
and the target task execution module is used for searching a target task parameter from the terminal memory after detecting a task trigger event aiming at the target task object, and executing a task aiming at the target task object by using the searched target task parameter, wherein at least one task object comprises the target task object, and the target task parameter is the task parameter of the target task object.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Optionally, the target task execution module is further configured to: after a task trigger event aiming at the target task object is detected, if the target task parameter is not found from the terminal memory, the target task parameter is requested to be obtained from the third-party server; caching the target task parameters acquired from the third-party server to the terminal memory; and executing the task aiming at the target task object by using the target task parameters acquired from the third-party server.
According to the mobile terminal provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay of acquiring the target task parameter at the next time is reduced.
On the basis of any of the above embodiments of the mobile terminal, the task parameter set acquisition module is configured to: after acquiring a task object set, searching task parameters of task objects of the application program from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The mobile terminal provided in the embodiment of the application judges whether effective task parameters of task objects of an application program are cached in a terminal memory before a third-party server requests to acquire a task parameter set, requests to acquire the task parameter set corresponding to the task object set from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and does not request to acquire the task parameter set corresponding to the task object set from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the task parameter set caching module is configured to: and caching the task parameter set into the terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the mobile terminal provided by the embodiment of the application, the cached task parameter set and task parameters in the terminal memory are replaced by the acquired task parameter set, so that the searching efficiency of effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a memory;
the memory is used for storing a program for executing any of the above method embodiments;
the processor is configured to execute programs stored in the memory.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a program for implementing any of the above-described method embodiments.
The program stored in the computer-readable storage medium provided by the embodiment of the application advances the acquisition of the target task parameters from the third-party server to before the triggering of the task for the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Drawings
FIG. 1 is a flowchart of a task parameter processing method according to an embodiment of the present invention;
fig. 2 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some of the flows described in the specification and claims of the present application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that the flows may include more or less operations, and that the operations may be performed sequentially or in parallel.
An embodiment of the present application provides a task parameter processing method, which is applied to a mobile terminal, and as shown in fig. 1, the method provided by the embodiment of the present application includes the following operations:
step 101, after an application program obtains a task object set, requesting to obtain a task parameter set corresponding to the task object set from a third-party server, where the task object set includes an object identifier of at least one task object of the application program, and the task parameter set includes task parameters of the at least one task object.
The task object set can be, but is not limited to, an object identification list of task objects, and the task parameter set can be, but is not limited to, a task parameter list.
The execution time for requesting to acquire the task parameter set corresponding to the task object set from the third-party server is not specifically limited, and only by way of example, after the task object set is acquired, the application program may invoke the task interface, and then, the task interface is invoked to trigger the request for acquiring the task parameter set corresponding to the task object set from the third-party server.
In practical application, an application program may send an acquisition request message to a third-party server, where the acquisition request message carries a task object set.
And step 102, caching the acquired task parameter set to a terminal memory by the application program.
The method for caching the task parameter set in the terminal memory is not limited, one possible implementation mode comprises the step of still storing the task parameters in the task parameter set by using the structure of the data set, and the other possible implementation mode comprises the step of caching each task parameter in the task parameter set by using an independent data structure.
This step is performed in the case of acquiring the task parameter set, and if the task parameter set is not acquired, a possible implementation manner includes: requesting to acquire the task parameter set from the third-party server again until a request time threshold is reached or a task trigger event aiming at the target task object is detected, wherein another possible implementation mode comprises the following steps: no attempt is made to request the set of task parameters from the third party server.
Step 103, after detecting a task trigger event for the target task object, the application program searches for a target task parameter from a terminal memory, and executes a task for the target task object by using the searched target task parameter, wherein the at least one task object includes the target task object, and the target task parameter is a task parameter of the target task object.
According to the method provided by the embodiment of the application, the target task parameters are obtained from the third-party server in advance to the time before the task aiming at the target task object is triggered. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
The inventor finds, through creative work in implementing the present invention, that a considerable proportion of task execution errors are caused by a touch event triggered on a task interface by a mobile terminal user (for example, clicking a "return" touch button on the task interface, clicking a task trigger button on the task interface again, and the like, which are collectively referred to as a target touch event in the embodiments of the present invention) in a process of waiting for obtaining target task parameters. Therefore, the method provided by the embodiment of the invention is beneficial to reducing the time delay for acquiring the target task parameter by requesting to acquire the task parameter in advance, thereby avoiding the task execution error to a certain extent and reducing the possibility of the task execution error.
Optionally, after detecting a task trigger event for the target task object, if the target task parameter is not found from the terminal memory, the target task parameter may be requested to be obtained from the third-party server, the target task parameter obtained from the third-party server is cached in the terminal memory, and the task for the target task object is executed by using the target task parameter obtained from the third-party server.
According to the method provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay for acquiring the target task parameter at the next time is reduced.
Therefore, the task parameter set can be cached in the terminal memory, and a single task parameter can also be cached. Then, no matter the task parameter set including the target task parameter is cached in the terminal memory or the target task parameter is cached separately, in the step 103, the target task parameter can be successfully found from the terminal memory.
On the basis of any method embodiment, after the task object set is obtained, the task parameters of the task objects of the application program can be searched from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The valid task parameters refer to task parameters within the validity period. In practical application, the validity period of the task parameter can be maintained by setting a timer, and whether the task parameter is valid can be judged by comparing the task parameter with the task object version number carried in the task parameter.
Correspondingly, if the application program finds the task parameter in the terminal memory, whether the task parameter is the task parameter of the task object of the application program can be judged through the application program identifier carried in the task parameter, and whether the task parameter is valid can also be judged through at least one of the following modes: judging whether a timer corresponding to the task parameter (or a task parameter set where the task parameter is located) is overtime, if not, the task parameter is not invalid; and matching the task object version number carried in the task parameter with the version number corresponding to the task object set, wherein if the matching is successful, the task parameter is valid.
Correspondingly, in the program running process, if the task object is determined to be updated, the timer of the relevant task parameter cached in the terminal memory is set to be overtime.
The method provided by the embodiment of the application comprises the steps of judging whether effective task parameters of task objects of application programs are cached in a terminal memory or not before a third-party server requests to acquire the task parameter sets, requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and not requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the implementation manner of caching the acquired task parameter set in the terminal memory may include: and caching the task parameter set into a terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the method provided by the embodiment of the application, the cached task parameter set and the task parameters in the memory of the terminal are replaced by the acquired task parameter set, and the searching efficiency of the effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
The method provided by the embodiment of the invention is explained below by taking a specific application scenario as an example.
An application program (hereinafter referred to as IOS APP) running in the apple operating system provides virtual commodity transactions. The method comprises the steps that a mobile terminal user clicks a control triggering a virtual commodity transaction interface (namely a task interface), an IOS APP acquires a virtual commodity identification LIST (ID LIST), on one hand, the virtual commodity transaction interface is called, virtual commodities (task objects) indicated in the virtual commodity identification LIST are displayed on the virtual commodity transaction interface, on the other hand, the IOS APP searches commodity information (task parameters) of virtual commodities in a terminal memory, if valid commodity information is found, the commodity information LIST does not need to be pulled in advance, if valid commodity information is not found, connection is established with an IAP (in-App Purchase ) server, and a commodity information LIST corresponding to the virtual commodity identification LIST is requested to be acquired from the IAP server. And if the commodity information list is acquired from the IAP server, caching the acquired commodity information list into a terminal memory.
The mobile terminal user selects a target virtual commodity (target task object) on the virtual commodity transaction interface and triggers a payment process for the target virtual commodity (task for the target task object). Responding to the trigger of the payment process aiming at the target virtual commodity, searching the commodity information of the target virtual commodity in a terminal memory by the IOS APP, if the commodity information of the target virtual commodity is not searched, requesting to acquire the commodity information of the target virtual commodity from the IAP server, and continuously executing the payment process of the target virtual commodity by using the searched or acquired commodity information.
Based on the same inventive concept as the method, an embodiment of the present application provides a mobile terminal, as shown in fig. 2, including:
a task parameter set obtaining module 201, configured to request, after obtaining a task object set, a third-party server to obtain a task parameter set corresponding to the task object set, where the task object set includes an object identifier of at least one task object of an application program, and the task parameter set includes task parameters of the at least one task object;
a task parameter set caching module 202, configured to cache the obtained task parameter set in a terminal memory;
the target task execution module 203 is configured to, after detecting a task trigger event for the target task object, search a target task parameter from the terminal memory, and execute a task for the target task object by using the searched target task parameter, where at least one task object includes the target task object, and the target task parameter is a task parameter of the target task object.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Optionally, the target task execution module is further configured to: after a task trigger event aiming at the target task object is detected, if the target task parameter is not found from the terminal memory, the target task parameter is requested to be obtained from the third-party server; caching the target task parameters acquired from the third-party server to the terminal memory; and executing the task aiming at the target task object by using the target task parameters acquired from the third-party server.
According to the mobile terminal provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay of acquiring the target task parameter at the next time is reduced.
On the basis of any of the above embodiments of the mobile terminal, the task parameter set acquisition module is configured to: after acquiring a task object set, searching task parameters of task objects of the application program from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The mobile terminal provided in the embodiment of the application judges whether effective task parameters of task objects of an application program are cached in a terminal memory before a third-party server requests to acquire a task parameter set, requests to acquire the task parameter set corresponding to the task object set from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and does not request to acquire the task parameter set corresponding to the task object set from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the task parameter set caching module is configured to: and caching the task parameter set into the terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the mobile terminal provided by the embodiment of the application, the cached task parameter set and task parameters in the terminal memory are replaced by the acquired task parameter set, so that the searching efficiency of effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
The mobile terminal in the above embodiments may include a smart phone, a palm computer, a tablet computer, a wearable device with a display screen, a vehicle-mounted computer, a smart sound box, and the like.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the module of the mobile terminal described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Based on the same inventive concept as the method, the embodiment of the application provides a mobile terminal, which comprises a processor and a memory;
the memory is used for storing a program for executing any of the above method embodiments;
the processor is configured to execute programs stored in the memory.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
As shown in fig. 3, the mobile terminal provided in the embodiment of the present application includes not only a processor and a memory, but also an input device (e.g., a touch screen, a camera, a microphone, etc.), an output device (e.g., a display screen, a speaker, etc.), a communication module, and a power supply module.
The memory, the input device, the output device, the communication module and the power supply module are connected with the processor through a serial port, a bus or a USB interface. Wherein, for a single processor mobile terminal, the processor is a CPU (Central processing Unit); for a dual-processor mobile terminal, a processor comprises a main processor and a slave processor, the main processor executes an application program to realize the method provided by the embodiment of the invention, and if the communication with the outside is needed, the slave processor controls a communication module to realize the method in a matching way; for a terminal device including a GPU (graphics processor) and a CPU, the processor refers to the GPU and the CPU, and the method provided by the embodiment of the present application is implemented by the cooperation of the GPU and the CPU or by the CPU alone.
Wherein, the memory of the mobile terminal may include but is not limited to: flash (Flash) memory, RAM (random access memory), ROM (read only memory), etc. The RAM is mainly used for storing programs and data when the terminal device runs, and programs to be executed or data to be processed must be loaded into the RAM first. The ROM is mainly used to check the configuration of the operating system of the terminal device and to provide the most basic input/output (I/O) programs. Flash memory is a long-lived non-volatile (maintaining stored data information in the event of a power failure) memory, and data is deleted not in individual bytes, but in fixed blocks. Since the Flash memory can still store data when power is off, it is usually used to store setting information, such as setting information of a user on a mobile phone.
It should be noted that different mobile terminals (single-processor smart phone, dual-processor smart phone, smart wearable device, tablet computer, etc.) may include more or less hardware structures than the terminal device shown in fig. 3, but it is within the scope of the present disclosure as long as the terminal device includes a memory and a processor and can implement the functions of the above method embodiments.
Based on the same inventive concept as the method, embodiments of the present application provide a computer-readable storage medium storing a program that implements any of the above-described method embodiments.
The program stored in the computer-readable storage medium provided by the embodiment of the application advances the acquisition of the target task parameters from the third-party server to before the triggering of the task for the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
The embodiments described above are only a part of the embodiments of the present invention, and not all of them. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Claims (10)

1. A task parameter processing method is characterized by comprising the following steps:
after a task object set is obtained, a task parameter set corresponding to the task object set is requested to be obtained from a third-party server, the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object;
caching the acquired task parameter set to a terminal memory;
and the at least one task object comprises a target task object, after a task trigger event aiming at the target task object is detected, a target task parameter is searched from the terminal memory, and a task aiming at the target task object is executed by utilizing the searched target task parameter, wherein the target task parameter is the task parameter of the target task object.
2. The method according to claim 1, wherein after detecting a task trigger event for the target task object, if the target task parameter is not found from the terminal memory, the method further comprises:
requesting to acquire the target task parameters from the third-party server;
caching the target task parameters acquired from the third-party server to the terminal memory;
and executing the task aiming at the target task object by using the target task parameters acquired from the third-party server.
3. The method of claim 1, wherein after obtaining the set of task objects, the method further comprises: searching the task parameters of the task object of the application program from the terminal memory;
the requesting to acquire the task parameter set corresponding to the task object set from the third-party server includes: and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
4. The method according to claim 3, wherein the caching the acquired task parameter set in a terminal memory includes:
and caching the task parameter set into the terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
5. A mobile terminal, comprising:
the task parameter set acquisition module is used for requesting to acquire a task parameter set corresponding to a task object set from a third-party server after acquiring the task object set, wherein the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object;
the task parameter set caching module is used for caching the acquired task parameter set into a terminal memory;
and the target task execution module is used for searching a target task parameter from the terminal memory after detecting a task trigger event aiming at the target task object, and executing a task aiming at the target task object by using the searched target task parameter, wherein at least one task object comprises the target task object, and the target task parameter is the task parameter of the target task object.
6. The mobile terminal of claim 5, wherein the target task execution module is further configured to:
after a task trigger event aiming at the target task object is detected, if the target task parameter is not found from the terminal memory, the target task parameter is requested to be obtained from the third-party server;
caching the target task parameters acquired from the third-party server to the terminal memory;
and executing the task aiming at the target task object by using the target task parameters acquired from the third-party server.
7. The mobile terminal of claim 5, wherein the task parameter set obtaining module is configured to:
after acquiring a task object set, searching task parameters of task objects of the application program from the terminal memory;
and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
8. The mobile terminal of claim 7, wherein the task parameter set caching module is configured to:
and caching the task parameter set into the terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
9. A mobile terminal comprising a processor and a memory;
the memory is used for storing a program for executing the method of any one of claims 1 to 4;
the processor is configured to execute programs stored in the memory.
10. A computer-readable storage medium in which a program for executing the method of any one of claims 1 to 4 is stored.
CN202010431820.1A 2020-05-20 2020-05-20 Task parameter processing method, terminal and storage medium Pending CN111611077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010431820.1A CN111611077A (en) 2020-05-20 2020-05-20 Task parameter processing method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010431820.1A CN111611077A (en) 2020-05-20 2020-05-20 Task parameter processing method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111611077A true CN111611077A (en) 2020-09-01

Family

ID=72196109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010431820.1A Pending CN111611077A (en) 2020-05-20 2020-05-20 Task parameter processing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111611077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328912A (en) * 2021-05-28 2021-08-31 国家计算机网络与信息安全管理中心 Distributed network measurement task arranging method and system based on controllable workflow

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662483A (en) * 2008-08-28 2010-03-03 盛大计算机(上海)有限公司 Cache system for cloud computing system and method thereof
CN104298671A (en) * 2013-07-16 2015-01-21 深圳中兴网信科技有限公司 Data statistics analysis method and device
CN106815644A (en) * 2017-01-26 2017-06-09 北京航空航天大学 Machine learning method and from node
US20170364389A1 (en) * 2016-06-20 2017-12-21 Steering Solutions Ip Holding Corporation Runtime determination of real time operating systems task timing behavior
CN107688489A (en) * 2016-08-03 2018-02-13 北京京东尚科信息技术有限公司 A kind of method and system of scheduler task
CN110929878A (en) * 2019-10-30 2020-03-27 同济大学 Distributed random gradient descent method
CN110941388A (en) * 2019-11-27 2020-03-31 北京字节跳动网络技术有限公司 Interface control method, device, terminal and storage medium in task execution process
CN111078733A (en) * 2019-11-26 2020-04-28 金蝶软件(中国)有限公司 Batch task processing method and device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662483A (en) * 2008-08-28 2010-03-03 盛大计算机(上海)有限公司 Cache system for cloud computing system and method thereof
CN104298671A (en) * 2013-07-16 2015-01-21 深圳中兴网信科技有限公司 Data statistics analysis method and device
US20170364389A1 (en) * 2016-06-20 2017-12-21 Steering Solutions Ip Holding Corporation Runtime determination of real time operating systems task timing behavior
CN107688489A (en) * 2016-08-03 2018-02-13 北京京东尚科信息技术有限公司 A kind of method and system of scheduler task
CN106815644A (en) * 2017-01-26 2017-06-09 北京航空航天大学 Machine learning method and from node
CN110929878A (en) * 2019-10-30 2020-03-27 同济大学 Distributed random gradient descent method
CN111078733A (en) * 2019-11-26 2020-04-28 金蝶软件(中国)有限公司 Batch task processing method and device, computer equipment and storage medium
CN110941388A (en) * 2019-11-27 2020-03-31 北京字节跳动网络技术有限公司 Interface control method, device, terminal and storage medium in task execution process

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328912A (en) * 2021-05-28 2021-08-31 国家计算机网络与信息安全管理中心 Distributed network measurement task arranging method and system based on controllable workflow
CN113328912B (en) * 2021-05-28 2023-02-10 国家计算机网络与信息安全管理中心 Distributed network measurement task arranging method and system based on controllable workflow

Similar Documents

Publication Publication Date Title
US10783211B2 (en) Page processing method and device thereof
US10298469B2 (en) Automatic asynchronous handoff identification
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN110753084B (en) Uplink data reading method, cache server and computer readable storage medium
CN110032321B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN114257551A (en) Distributed current limiting method and system and storage medium
CN112988185A (en) Cloud application updating method, device and system, electronic equipment and storage medium
CN111737564A (en) Information query method, device, equipment and medium
CN115455058A (en) Cache data processing method and device, computer equipment and storage medium
CN111611077A (en) Task parameter processing method, terminal and storage medium
CN110222046B (en) List data processing method, device, server and storage medium
CN108446144B (en) Application program starting method and device, terminal and storage medium
CN105095303B (en) Quick link pushing method and quick link pushing device
CN111045789A (en) Virtual machine starting method and device, electronic equipment and storage medium
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN110866201A (en) Cache processing method and device, computer equipment and storage medium
CN114356970B (en) Storage system resource caching method and device
CN110858238B (en) Data processing method and device
US10165074B2 (en) Asynchronous custom exit points
US9838488B2 (en) Agent asynchronous transaction monitor
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN115314258B (en) Method and device for detecting weak password, electronic equipment and storage medium
CN116610643B (en) Method, device and program product for monitoring directory compression downloading process
CN115168438B (en) Transaction return data integration method and related device
CN114401300B (en) Cloud application control method, device, equipment, medium and program 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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

CB02 Change of applicant information