A method and device for resource allocation

By screening target objects and pre-allocating resources, the problem of low task execution efficiency caused by untimely resource allocation in the existing technology is solved, and timely use of resources and efficient execution of tasks are achieved.

CN112181643BActive Publication Date: 2024-09-24BEIJING QIANDAIBAO PAYMENT TECH LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010989480.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2024-09-24
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

In the existing technology, tasks need to be reviewed by the system when applying for resources, which results in untimely resource allocation and reduces task execution efficiency.

Method used

By obtaining the historical task data and attribute data of the candidate object, the target object is filtered out, and resources are pre-allocated to its resource pool so that it can execute the task before applying for resource calls.

Benefits of technology

It improves the efficiency of task execution, avoids the problem of task execution being suspended due to insufficient resources, and improves the timeliness of resource use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112181643B
    Figure CN112181643B
Patent Text Reader

Abstract

This specification discloses a method and device for resource allocation. After obtaining the historical task data and attribute data of each candidate object, at least one first target object can be screened out from each candidate object based on the historical task data and attribute data. For each first target object, a first set number of resources to be provided to the first target object is determined, and a first entrance to obtain the first set number of resources is provided to the first target object. If it is monitored that the first target object accepts the resources obtained through the first entrance, the first set number of resources is pre-allocated to the resource pool of the first target object, so that before the first target object applies for resource call, the task is executed through the resource pool that at least holds the first set number of resources. Compared with the method in which the first target object needs to apply for resource call first and can only execute tasks through the acquired resources after passing the review, the execution efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for resource allocation. Background Art

[0002] Resource allocation is a very important aspect in the field of computer technology. Through resource allocation, it can ensure that the internal resources of the device, such as thread resources and memory resources, are reasonably allocated in various tasks. It can also realize the allocation and scheduling of resources between multiple devices to ensure the smooth execution of various tasks.

[0003] In actual applications, various resources are usually managed by the system. When a task is executed, it is usually necessary to actively apply to the system for the resources required for the task execution. The system can allocate resources such as thread resources and memory resources required for the task execution to the task based on the application. After the task is completed, the system will recycle the resources previously allocated to the task. Summary of the invention

[0004] This specification provides a method and device for resource allocation to partially solve the above problems existing in the prior art.

[0005] This manual adopts the following technical solutions:

[0006] This specification provides a method for resource allocation, including:

[0007] Obtain historical task data and attribute data of each candidate object;

[0008] Filtering at least one first target object from the candidate objects according to the historical task data and the attribute data;

[0009] For each first target object, determine a first set number of resources to provide to the first target object, and provide a first entry for the first target object to obtain the first set number of resources;

[0010] If it is monitored that the first target object accepts the first set number of resources through the first entrance, the first set number of resources are pre-allocated to the resource pool of the first target object, so that the first target object can perform the task through the resource pool holding at least the first set number of resources before applying for resource call. The resource call is initiated when the first target object determines that the number of resources required to perform the task exceeds the number of resources held by the resource pool.

[0011] Optionally, the method further comprises:

[0012] If it is detected that the first target object applies for resource invocation, the permission of the first target object is reviewed;

[0013] If it is determined that the first target object has passed the permission review, the resources requested by the first target object are allocated to the resource pool so that the first target object can perform the task through at least part of the resources requested.

[0014] Optionally, if it is monitored that the first target object receives the first set number of resources through the first entrance, pre-allocating the first set number of resources to the resource pool of the first target object specifically includes:

[0015] Acquire state data corresponding to the first target object when accepting acquisition of the first set number of resources;

[0016] Verifying the first target object according to the status data;

[0017] If it is determined that the first target object passes the verification, the first set number of resources are pre-allocated to the resource pool.

[0018] Optionally, before pre-allocating the first set number of resources to the resource pool of the first target object, the method further includes:

[0019] Determine the validity period of the first set resource number, and determine a first recycled resource number for recycling resources from the resource pool according to the first set resource number, wherein the first recycled resource number is not less than the first set resource number;

[0020] The method further comprises:

[0021] If it is monitored that the validity period has been reached, the first number of reclaimed resources is reclaimed from the resource pool.

[0022] Optionally, the method further comprises:

[0023] If it is determined that the number of resources held in the resource pool is less than the first number of recycled resources when the validity period is reached, dividing the first number of recycled resources to obtain a number of second numbers of recycled resources;

[0024] At every preset recycling cycle, resources of the second recycled resource number are recycled from the resource pool until all resources of the first recycled resource number are recycled from the resource pool.

[0025] Optionally, for each first target object, determining a first set number of resources to provide resources to the first target object specifically includes:

[0026] For each first target object, predicting a target task to be performed by the first target object according to the historical task data of the first target object;

[0027] Determine the number of resources required to perform the target task as the target number of resources;

[0028] According to the number of resources held by the resource pool of the first target object and the target number of resources, a first set number of resources for providing required resources to the first target object is determined.

[0029] Optionally, the method further comprises:

[0030] For each first target object, determining a second target object having a task association with the first target object according to the historical task data of the first target object;

[0031] A first set number of resources to be provided to the second target object is determined, and a first entry for acquiring the first set number of resources is provided to the second target object.

[0032] Optionally, the method further comprises:

[0033] Determine a plurality of first target objects that jointly perform the same task as associated objects;

[0034] Determine a second set number of resources to provide to each of the associated objects, and provide each of the associated objects with a second entry for jointly acquiring the second set number of resources;

[0035] If it is monitored that no less than a set number of associated objects accept to jointly obtain the second set number of resources through the second entrance, a public resource pool is allocated to each of the associated objects, and the second set number of resources are pre-allocated to the public resource pool.

[0036] Optionally, the resources include: funds.

[0037] This specification provides a resource allocation device, including:

[0038] The acquisition module is used to obtain the historical task data and attribute data of each candidate object;

[0039] A screening module, used for screening at least one first target object from the candidate objects according to the historical task data and the attribute data;

[0040] A first entry providing module is used to determine, for each first target object, a first set number of resources to provide to the first target object, and provide the first target object with a first entry for obtaining the first set number of resources;

[0041] The first allocation module is used to pre-allocate the resources of the first set number of resources to the resource pool of the first target object if it is monitored that the first target object accepts the resources of the first set number of resources through the first entrance, so that the first target object can perform the task through the resource pool holding at least the resources of the first set number of resources before applying for resource call. The application for resource call is initiated when the first target object determines that the number of resources required to perform the task exceeds the number of resources held by the resource pool.

[0042] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned resource allocation method is implemented.

[0043] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned resource allocation method when executing the program.

[0044] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0045] In the resource allocation method provided in the present specification, after obtaining the historical task data and attribute data of each candidate object, at least one first target object can be screened out from each candidate object based on the historical task data and attribute data, and then, for each first target object, a first set number of resources to be provided to the first target object is determined, and a first entrance for obtaining the first set number of resources is provided to the first target object. If it is monitored that the first target object accepts the first set number of resources through the first entrance, the first set number of resources are pre-allocated to the resource pool of the first target object, so that the first target object can perform tasks through the resource pool that holds at least the first set number of resources before applying for resource calls.

[0046] It can be seen from the above method that for the screened first target object, a first set number of resources can be pre-allocated to the first target object in the resource pool of the first target object, so that the first target object can start the execution of the task by obtaining the first set number of resources before applying for resource call. Compared with the prior art, the first target object needs to apply for resource call first and then start the task execution by obtaining the resources after passing the review. This greatly improves the execution efficiency of the task. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0048] Figure 1 A schematic diagram of a resource allocation method in this specification;

[0049] Figure 2 A flowchart of the resource allocation method provided in this specification in the scenario of small amount of funds lending;

[0050] Figure 3 A schematic diagram of a page for the first target user provided in this manual to receive a small amount of loan;

[0051] Figure 4 A schematic diagram of a resource allocation device provided in this specification;

[0052] Figure 5 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0054] In actual applications, the system usually manages various resources in a unified manner. During the execution of a task, it is necessary to actively apply to the system for resource calls. The system will allocate a portion of the idle resources managed by itself to the task based on the application, and recycle these resources after the task is completed.

[0055] Then, the resources required for task execution are usually actively applied to the system when the task is executed. However, at this time, there may be no idle resources in the system to allocate to the execution of the task, which will cause the task to be temporarily unable to obtain the resources allocated by the system, and thus cause the task to be temporarily unable to execute.

[0056] In addition, when each task applies for resources from the system, the system does not directly allocate resources to each task. Instead, it needs to analyze and review each task to determine whether these tasks are eligible to apply for resources from the system. For tasks that pass the review, the system will allocate corresponding resources to the task. If the review fails, the system will not allocate corresponding resources to it.

[0057] From this we can see that before a task obtains the resources allocated by the system, it needs to be reviewed by the system first, which will inevitably consume a certain amount of waiting time, resulting in the task not being executed in a timely manner, reducing the efficiency of task execution.

[0058] In order to effectively solve the above problems, the present specification provides a method for resource allocation. After obtaining the historical task data and attribute data of each candidate object, at least one first target object can be screened out from each candidate object based on the historical task data and attribute data. Then, for each first target object, a first set number of resources to be provided to the first target object is determined, and a first entrance for obtaining the first set number of resources is provided to the first target object. If it is monitored that the first target object accepts the resources of the first set number of resources through the first entrance, the resources of the first set number of resources are pre-allocated to the resource pool of the first target object, so that the first target object can perform tasks through the resource pool that holds at least the first set number of resources before applying for resource calls.

[0059] From the above content, it can be seen that for the screened first target object, a first set number of resources can be pre-allocated to the first target object in the resource pool of the first target object, so that the first target object can start the execution of the task by obtaining the first set number of resources before applying for resource call. Compared with the prior art, the first target object needs to apply for resource call first and then start the task execution by obtaining the resources after passing the review. This greatly improves the execution efficiency of the task.

[0060] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0061] Figure 1 This is a flow chart of a resource allocation method in this specification, which specifically includes the following steps:

[0062] S101: Acquire historical task data and attribute data of each candidate object.

[0063] In the embodiments of this specification, the system supports the running of multiple applications, and each application can perform tasks by calling resources managed by the system. The system mentioned here can refer to a system running in an electronic device such as a computer or a server. The system can obtain historical task data and attribute data of each candidate object to select at least one first target object from these candidate objects in a subsequent process.

[0064] Among them, the candidate object may refer to the application degree mentioned above, and the historical task data of the candidate object refers to the data involved in the task execution of the candidate object in history, such as the time consumed by the task execution, the number of resources occupied by the task execution, the total number of tasks executed in history, the number of abnormal tasks executed, the task type of each historical task executed, etc. The attribute data of the candidate object refers to data that can reflect the situation of the candidate object itself, such as the program name of the candidate object, the number of resources currently held in the resource pool corresponding to the application, etc.

[0065] It should be noted that the resources allocated by the system to the application may refer to resources required by the application to perform tasks, such as thread resources, memory resources, etc. For ease of description, the resource allocation method provided in this specification is described below using thread resources as an example.

[0066] S102: Filter out at least one first target object from the candidate objects according to the historical task data and the attribute data.

[0067] The system can determine whether to select each candidate object as the first target object based on the historical task data and attribute data of the candidate object. Among them, since the system selects the first target objects in order to pre-allocate a certain amount of resources to these first target objects, so that these first target objects can use the resources pre-allocated by the system to quickly start task execution, the purpose of the system selecting the first target objects is actually to determine which candidate objects are suitable for pre-allocation of resources based on the historical task data and attribute data of each candidate object.

[0068] Therefore, the historical task data and attribute data obtained by the system are actually the basis for the system to screen at least one first target object. The system can screen the first target object based on these data according to actual needs. For example, for a candidate object, if the system finds out that the candidate object is in the risk program blacklist maintained by the system based on the program name of the candidate object (attribute data of the candidate object), the system will not screen the candidate object as the first target object; for another example, if the system determines that the number of times the candidate object has performed abnormal tasks in history does not exceed the set number based on the historical task data of the candidate object, the candidate object can be screened as the first target object; for another example, if the system determines that the total number of tasks performed by the candidate object in history exceeds the set number based on the historical task data of the candidate object, the candidate object can be screened as the first target object. Other situations are not explained one by one here.

[0069] The above examples illustrate how the system uses a single piece of data to filter the first target object, but in fact the system can also filter the first target object by combining multiple data. For example, for a candidate object, if the system determines that the total number of tasks executed by the candidate object in history exceeds a set number, and determines that the number of resources currently held in the resource pool of the candidate object is less than a certain number of resources, then the candidate object can be filtered as the first target object; for another example, if the system determines based on the historical task data of the candidate object that the average duration consumed by the candidate object's task execution exceeds the set duration, and the average number of resources occupied when the candidate object's task is executed exceeds the preset number of resources, then in order to ensure the task execution efficiency of the candidate object, the candidate object can be filtered as the first target object. Other situations are not illustrated one by one here.

[0070] It should be emphasized that the system can actually select the first target object based on historical task data and attribute data at any time. There is no necessary connection between the system selecting the application as the first target object and the application applying for resource calls from the system. In other words, the system selects the first target object on its own, not when the application applies for resource calls from the system.

[0071] S103: For each first target object, determine a first set number of resources to be provided to the first target object, and provide the first target object with a first entry for acquiring the first set number of resources.

[0072] After the system screens out at least one first target object, it can determine, for each first target object, a first set number of resources that the first target object needs to provide first, and provide the first target object with a first entry for obtaining the first set number of resources. The first target object can determine whether to accept the first set number of resources provided by the system by accessing the first entry.

[0073] In the embodiments of the present specification, the first set number of resources can be a fixed number of resources, that is, for each first target object, the number of resources pre-provided by the system is the same and fixed. For example, if the first set number of resources is 5 thread resources, the system pre-allocates 5 thread resources to each first target object. Of course, the system can also determine the first set number of resources corresponding to each first target object. Specifically, the system can predict the target task to be performed by the first target object for each first target object based on the historical task data of the first target object, and determine the number of resources required to perform the target task as the target number of resources. Then, the system can determine the first set number of resources required for the first target object based on the number of resources held by the resource pool of the first target object and the target number of resources.

[0074] That is to say, the system can determine the number of times the first target object has performed various tasks in history based on the historical task data of the first target object, and then predict which task the first target object may perform in the future, that is, the target task, and then determine the first set resource number based on the number of resources required to perform the target task (that is, the target number of resources) and the number of resources currently held by the resource pool of the first target object.

[0075] For example, assuming that the system predicts that the target task is a business data synchronization task based on the historical task data of the first target object, and determines that the number of resources required for the business data synchronization task is 8 thread resources, when the system determines that the number of resources currently held in the resource pool of the first target object is 5 thread resources, it can determine that the first set number of resources needed to provide the required resources to the first target object is 3 thread resources.

[0076] Of course, the system can also determine the first set number of resources in other ways. For example, the system can determine the average number of resources historically occupied by the first target object to perform tasks based on the historical task data of the first target object, and then determine the first set number of resources based on the average number of resources and the number of resources currently held by the resource pool of the first target object. Other methods are not described in detail here.

[0077] S104: If it is monitored that the first target object accepts the first set number of resources through the first entrance, the first set number of resources are pre-allocated to the resource pool of the first target object, so that the first target object can perform tasks through the resource pool that holds at least the first set number of resources before applying for resource call.

[0078] After determining the above-mentioned first entrance, the system can send a message for accessing the first entrance to the first target object, so that the first target object can access the first entrance through the message. It should be pointed out that the first entrance does not mean that the first target object can directly obtain the above-mentioned first set number of resources from the system. The function of the first entrance is to enable the system to monitor whether the first target object accepts to obtain the resources of the first set number of resources. If the system monitors through the first entrance that the first target object accepts to obtain the resources of the first set number of resources, the resources of the first set number of resources can be pre-allocated to the resource pool of the first target object.

[0079] If it is monitored that the first target object accepts the acquisition of the first set number of resources through the first entrance, the state data corresponding to the first target object when accepting the acquisition of the first set number of resources can be obtained first, and the first target object can be verified according to the state data. If it is determined that the first target object passes the verification, the resources of the first set number of resources can be pre-allocated to the resource pool of the first target object.

[0080] The above-mentioned status data can be used to reflect the first target object's own situation when accepting the acquisition of the first set number of resources. The status data may include data such as the number of resources held in the corresponding resource pool when the first target object accepts the acquisition of the first set number of resources, and the Internet Protocol (IP) address based on which the first target object accepts the acquisition of the first set number of resources. There are many specific ways for the system to verify the first target object through the acquired status data. For example, if the system determines that the number of resources held in the resource pool of the first target object is within a preset value range when the first target object accepts the acquisition of the first set number of resources based on the acquired status data, then it can be determined that the first target object has passed the verification, otherwise, it is determined that the first target object has not passed the verification; for another example, if the system determines that the IP address based on which the first target object accepts the acquisition of the first set number of resources based on the acquired status data is not the common IP address based on which the first target object is based, then the system can determine that the first target object has not passed the verification. Other methods are not described in detail here.

[0081] Once the system pre-allocates the resources of the first set number of resources to the resource pool of the first target object, the first target object can directly use the resources of the first set number of resources pre-allocated by the system to start the task execution when executing the task, without having to first apply for resource calls to the system, and after the system passes the resource call applied by the first target object, the system starts the task execution through the resources allocated according to the resource call applied. In other words, since the system has pre-allocated a certain number of resources to the first target object, this ensures that the resource pool holds resources before the first target object executes the task. Therefore, when the first target object executes the task, it can directly start the task execution through the resources held in the resource pool, thereby effectively improving the execution efficiency of the task to a certain extent.

[0082] It should be noted that if the first target object determines that the resources held in its resource pool are insufficient to complete the execution of the task during the execution of the task, it can apply to the system for resource calls. Correspondingly, if the system monitors that the first target object applies for resource calls, the first target object can be subject to a permission review. If the system determines that the first target object passes the permission review, the first target object can be allocated resources in the resource pool of the first target object in the number of resources applied for by the first target object, so that the first target object can execute the task through at least part of the resources in the number of resources applied for.

[0083] That is to say, in actual applications, even if the system pre-allocates the first set number of resources to the first target object, the first target object may encounter a situation where the number of resources held in the resource pool is insufficient during the execution of the task. In this case, the first target object can obtain the resources required for the task from the system by actively initiating a resource call application to the system. After the system detects that the first target object has applied for a resource call, it needs to conduct a permission review on the first target object.

[0084] The permission review mentioned here means that the system needs to review whether the candidate object or the first target object is qualified to apply for resource calls from the system. The system needs to review and evaluate the candidate object or the first target object from multiple aspects. Taking the first target object applying for resource calls from the system as an example, the system can conduct a permission review on the first target object based on the number of resources that the first target object currently calls from the system but has not yet been recycled. If it is determined that the first target object currently occupies a large number of resources that have not yet been recycled, it can be determined that the permission review of the first target object has not passed; for another example, the system can conduct a permission review on the first target object based on the number of times the first target object has performed abnormal tasks in history; for another example, if the system determines that the frequency of the first target object's historical task execution exceeds the set frequency based on the historical task data of the first target object, it can be determined that the first target object has passed the permission review. Other methods are not explained in detail here.

[0085] It can be seen here that there is a certain overlap between the permission review mentioned here and the basis used for screening the first target object mentioned above, but it should be pointed out that when conducting permission review, the system references a more comprehensive basis to ensure that the system accurately evaluates whether the candidate object or the first target object is qualified to apply for resource calls.

[0086] It should be noted that for the candidate object that has not been screened as the first target object, if the number of resources held in the resource pool of the candidate object is insufficient to complete the task execution, it can also actively initiate an application for resource call to the system. Correspondingly, the system will apply for permission for the candidate object. If it is determined that the candidate object passes the permission review, the resource pool of the candidate object can be allocated with the number of resources requested by the candidate object.

[0087] Among them, the permission review of the candidate objects (or the first target objects) mentioned here is different from the screening of the first target objects mentioned above. The screening of the first target objects mentioned above is to select applications with relatively good running conditions from a large number of candidate objects, that is, to screen "high-quality" candidate objects, while the permission review mentioned here is to comprehensively evaluate from all aspects whether the application can run relatively stably and whether there are risks during the operation process. In other words, the system determines whether the candidate object is qualified to pre-allocate resources for it based on the historical task data and attribute data obtained, and the permission review mentioned here refers to whether the candidate object or the first target object is qualified to have the system allocate resources to it.

[0088] In an embodiment of the present specification, before the system pre-allocates the resources of the first set resource number to the resource pool of the first target object, it can determine the validity period of the resources of the first set resource number, and determine the first recovery resource number of the resources that need to be recovered from the resource pool of the first target object based on the first set resource number, wherein the first recovery resource number is not less than the first set resource number. If the system monitors that the validity period has been reached, it needs to recover the resources of the first recovery resource number from the resource pool of the first target object.

[0089] Furthermore, during the resource recycling process, the system may encounter a situation where the number of resources held in the resource pool of the first target object is less than the first number of recycled resources. In this case, the system may divide the first number of recycled resources to obtain a number of second numbers of recycled resources, wherein each second number of recycled resources is less than the first number of recycled resources, and the sum of the second numbers of recycled resources may be equal to the first number of recycled resources. Then, the system may recycle the second number of recycled resources from the resource pool of the first target object at every preset recycling cycle until all the first number of recycled resources are recycled from the resource pool. Each second number of recycled resources corresponds to a recycling cycle.

[0090] For example, assuming that the first number of recycled resources is 15 thread resources, when the system determines that the validity period has expired, the number of resources held in the resource pool of the first target object is less than 15 thread resources, then the 15 thread resources can be divided into 3 groups of thread resources, each group of thread resources is 5 thread resources, so the second number of recycled resources is 5. Then, the system can recycle resources from the resource pool of the first target object in three recycling cycles, and recycle 5 thread resources from the resource pool of the first target object in each recycling cycle until all 15 thread resources are recycled from the resource pool of the first target object.

[0091] It should be noted that the process and method of resource recovery also apply to the case where any object actively applies to the system for resource calls to obtain resource allocation. That is, after any object obtains resources from the system by actively applying, the system also needs to recover resources from the corresponding resource pool.

[0092] In actual applications, there may be task associations between some applications. In this case, after screening out each first target object, the system may determine, for each first target object, based on the historical task data of the first target object, a second target object that has task management with the first target object, determine a second set number of resources that need to be provided to the second target object, and provide the second target object with a first entry for obtaining the first set number of resources.

[0093] That is to say, for the second target object that has task management with the first target object, the system can also pre-allocate the first set number of resources to it to ensure that the second target object can quickly start task execution. It should be emphasized that in the embodiments of this specification, the first entrances for obtaining the first set number of resources provided by the system to different target objects (including the first target object and the second target object) can be different, that is, each target object can correspond to a first entrance.

[0094] In actual applications, there may be a situation where multiple objects jointly perform the same task. In this case, the system can determine several first target objects that jointly perform the same task as the associated objects, and determine the second set number of resources to provide resources to each associated object, and provide each associated object with a second entrance for jointly obtaining the second set number of resources. Each associated object can correspond to its own second entrance. It should be emphasized that the second set number of resources mentioned here are jointly allocated to each associated object, and does not mean that each associated object is allocated the second set number of resources.

[0095] Furthermore, if the system detects that no less than a set number of associated objects accept the second set number of resources through the second entrance, a common resource pool can be allocated to these associated objects, and the second set number of resources can be pre-allocated to the common resource pool. In other words, the system does not divide the second set number of resources into the resource pool of each associated object in a certain form, but pre-allocates them to the common resource pool that can be used by all associated objects, and each associated object can call resources from the common resource pool. Since the resources are allocated to all associated objects, the second set number of resources can be higher than the first set number of resources.

[0096] The system pre-allocates the second set number of resources to the public resource pool, and can monitor the number of resources called by each associated object from the public resource pool respectively. When it is monitored that the validity period of the second set number of resources has been reached, the corresponding resources can be recovered from the resource pool of each associated object according to the number of resources called by each associated object.

[0097] In addition, the resource allocation method mentioned above is not only applicable to the allocation of thread resources, but also can be applied to resource allocation in other scenarios. For example, if funds are regarded as a resource, the above method can also be applied to the lending scenario of small resources. The resource allocation provided in this manual will be further explained below using the lending scenario of small funds.

[0098] Figure 2The following is a flowchart of the resource allocation method provided in this specification in the scenario of small amount of capital lending.

[0099] In actual applications, users can apply for small loans on the business platform. However, during the loan process, the business platform needs to review the user, and only after the review is passed will a certain amount of funds be loaned to the user's account balance. This often requires users to wait for a long time before they can get the loan, which not only reduces the user's business experience, but also greatly reduces the user's business execution efficiency.

[0100] Based on this, in the embodiments of this specification, the business platform can obtain the historical business data of each user (i.e., the historical task data mentioned above) and the attribute data of the user, and select a part of the users from the numerous candidate users as the first target users based on the historical business data and attribute data obtained. Among them, the historical business data mentioned here refers to the data involved in the business performed by the user in history, such as the total number of businesses performed by the user in history, the average amount of funds spent by the user on various businesses in history, the business type of the user on various businesses in history, etc., while the attribute data of the user is used to reflect the actual situation of the user himself, such as the user's name, mobile phone number, ID number, amount of money borrowed, occupation, etc.

[0101] There are actually many ways for the business platform to filter the first target user through the acquired historical business data and the user's attribute data. For example, for any candidate user, if the business platform determines that the candidate user has completed the real-name registration on the business platform based on the attribute data of the candidate user, and the amount of money the candidate user has borrowed on the business platform is lower than the preset amount, then the candidate user can be filtered as the first target user; for another example, if the business platform determines that the user's occupation is a high-income occupation based on the attribute data and historical business data of the candidate user, and the total number of businesses performed by the user in history exceeds the set number, then the candidate user can be filtered as the first target user. Other methods are not illustrated one by one here.

[0102] After screening out the first target users, the business platform can issue the first entrance for receiving small amount of funds loan to these first target users. There are many ways for the business platform to issue the first entrance, such as sending a link carrying access to the small amount of funds loan receiving page to these first target users, or directly pushing the small amount of funds receiving page to the first target users, such as Figure 3 shown.

[0103] Figure 3 A schematic diagram of the page for the first target user provided in this manual to receive a small amount of loan.

[0104] The business platform can Figure 3 The page shown is pushed to the first target user, which not only displays the amount provided by the business platform to the first target user (i.e., the resources of the first set resource number), but also displays the repayment date of this amount (i.e., the validity period of the first set resource number mentioned above). Figure 3 If the “Get Immediately” option is selected, the business platform can monitor that the first target user has accepted the loan of this small amount of funds.

[0105] It should be noted that if the business platform monitors that the first target user accepts this small amount of funds through the above-mentioned first entrance, the business platform can display the activation agreement of the small amount loan service to the first target user. If the user signs these agreements, the business platform can release the funds to the user.

[0106] Furthermore, before issuing the funds to the user, the business platform can perform security verification on the first target user. This security verification mainly verifies the security status of the environment in which the user is located when receiving the service. Specifically, the business platform can obtain the status data of the first target user when receiving the small amount of funds loan service, and verify the first target user based on the status data. The status data mentioned here may include data such as the name of the wireless network (WiFi) to which the device used by the user is connected, the WiFi address, and the identification information of the device based on which the current logged-in user account is based.

[0107] There are many ways for the business platform to perform security verification on the first target user through the status data obtained. For example, if the business platform monitors that the WiFi connected to the device used to log in to the user account of the first target user is not the WiFi that the first target user usually connects to based on the status data obtained from the first target user, it can be determined that the first target user has not passed the security verification; for another example, if the business platform determines that the device based on which the user account of the first target user is logged in is a commonly used device of the first target user based on the status data obtained from the first target user, it can be determined that the first target user has passed the security verification. Other methods are not explained in detail here.

[0108] If the business platform determines that the first target user has passed the security verification, the first set amount (the first set resource amount) of funds can be loaned to the first target user's account balance on the business platform. If the business platform determines that the first target user has not passed the security verification, the small amount loan service can be not provided to the first target user. Figure 3As can be seen from the figure, the first set amount of funds has a repayment date. If the business platform detects that the first target user fails to repay before the repayment date, the amount can be deducted from the target user's account balance on the business platform. Among them, since it is a loan service, the business platform can charge a certain amount of interest, so the repayment amount deducted by the business platform from the first target user's account balance on the business platform (i.e., the first recycled resource amount mentioned above) can be slightly larger than the first set amount.

[0109] Furthermore, if the service platform monitors that the amount of funds in the account balance of the first target user on the service platform is lower than the repayment amount (i.e., the first amount of recovered resources) when the repayment date is reached, then the service platform can adopt an installment method to deduct a sum of funds (i.e., the resources of the second amount of recovered resources mentioned above) from the account balance of the first target user on the service platform every preset remittance cycle until all the funds to be deducted (i.e., the repayment amount) are deducted from the account balance of the first target user on the service platform. Of course, if at least one bank card held by the first target user is bound to the user account of the first target user on the service platform, then when the service platform monitors that the amount of funds in the account balance of the first target user on the service platform is lower than the repayment amount, the corresponding funds can be deducted from the bank card bound to the first target user.

[0110] It should be noted that the first set amount mentioned above can be a fixed amount, that is, for all first target users, the first set amount provided by the business platform is the same and fixed. Of course, the business platform can also determine the first set amount of funds to be provided to each first target user according to the actual situation of the first target user. The specific method can refer to the example of the thread resource above, and will not be explained in detail here.

[0111] In addition, any user can actually apply for a loan from the business platform at any time. Accordingly, the business platform needs to review the user who submitted the loan application (which has basically the same function as the rights review mentioned above). This review is mainly to review whether the user is qualified to apply for a loan on the business platform, which is different from the above-mentioned business platform screening of the first target user. When the business platform reviews the user's loan application, the review will be more comprehensive, such as reviewing whether the user has a real name on the business platform, whether the user has a high amount of debt, whether the user has a stable income, whether the user has fraudulent behavior, whether the user's credit meets the conditions, whether the user is an active user of the business platform, whether the user has completed the bank card binding on the business platform, etc. This review process often takes a long time, and the user needs to wait for a long time to get the review result.

[0112] That is to say, under normal circumstances, users can obtain corresponding loan funds from the business platform by submitting a loan application to the business platform, but this method requires users to wait for a long time, the user experience is poor, and it will greatly reduce the user's business execution efficiency. In the resource allocation method provided in this specification, the business platform can issue a small amount of loan to the first target user selected, so that the user does not need to actively initiate a loan application to the business platform, that is, it can quickly obtain a sum of funds from the business platform for business execution, and the selection of the first target user itself does not require the user to actively initiate it to the business platform, which greatly improves the user's business experience and effectively improves the user's business execution efficiency.

[0113] It should be noted that in actual applications, there may be business management between users, such as two users forming a group to purchase the same product to enjoy a preferential price. Based on this, the business platform can determine the second target user with whom the first target user has business management based on the historical business data of each first target user, and then provide the second target user with a first entry to obtain the first set amount of funds, so that the second target user can also quickly perform business through the small amount of funds loaned by the business platform. In this case, both the first target user and the second target user can obtain the first set amount of resources from the business platform.

[0114] In addition, in the case where multiple first target users jointly execute the same business, the business platform can also treat these first target users as associated users, and determine the second set amount of loans (i.e., the second set resource amount mentioned above) provided to these associated users, and provide these associated users with a second entrance to jointly obtain the second set amount of funds. If it is monitored that no less than the set number of associated users accept the second set amount of funds jointly obtained through the second entrance, a temporary public account can be divided for these associated objects, and the second set amount of funds can be pre-loaned to the public account.

[0115] These associated users can spend a certain amount of funds from the public account according to their actual needs. It should be noted that during the repayment stage, the business platform can determine the repayment amount of each associated user based on the amount of funds actually used by each associated user from the public account, and deduct the corresponding funds from the balance of each associated user's personal account or the bound bank card according to the repayment amount of each associated user. That is, for any associated user, the business platform will only deduct the corresponding funds from the balance of the associated user's personal account or the bound bank card according to the amount of funds the associated user has spent from the public account.

[0116] It should also be noted that in actual applications, when the validity period of the second set amount of funds is reached, these associated users may not have spent all the second set amount of resources from the above public account. In this case, the business platform can only charge interest on the amount of funds that these associated users have spent from the public account during the repayment stage, and no interest will be charged on the unspent part. The amount of interest for each associated user may also be related only to the amount of funds spent by each associated user.

[0117] The above is a resource allocation method provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding resource allocation device, such as Figure 4 shown.

[0118] Figure 4 A schematic diagram of a resource allocation device provided in this specification specifically includes:

[0119] The acquisition module 401 is used to acquire the historical task data and attribute data of each candidate object;

[0120] A screening module 402, configured to screen out at least one first target object from the candidate objects according to the historical task data and the attribute data;

[0121] A first entry providing module 403 is used to determine, for each first target object, a first set number of resources to provide to the first target object, and provide the first target object with a first entry for obtaining the first set number of resources;

[0122] The first allocation module 404 is used to pre-allocate the resources of the first set number of resources to the resource pool of the first target object if it is monitored that the first target object accepts the resources of the first set number of resources through the first entrance, so that the first target object can perform the task through the resource pool holding at least the resources of the first set number of resources before applying for resource call. The resource call application is initiated when the first target object determines that the number of resources required to perform the task exceeds the number of resources held by the resource pool.

[0123] Optionally, the device further comprises:

[0124] The second allocation module 405 is used to perform a permission review on the first target object if it is monitored that the first target object applies for resource call; if it is determined that the first target object passes the permission review, allocate the number of resources applied for by the first target object to the resource pool, so that the first target object can perform tasks through at least part of the resources of the number of resources applied for.

[0125] Optionally, the first allocation module 404 is specifically used to obtain status data corresponding to the first target object when it accepts the acquisition of the first set number of resources; verify the first target object based on the status data; if it is determined that the first target object passes the verification, pre-allocate the first set number of resources to the resource pool.

[0126] Optionally, before the first allocation module 404 pre-allocates the resources of the first set resource number to the resource pool of the first target object, the first entry providing module 403 is further used to determine the validity period of the resources of the first set resource number, and determine a first recycled resource number for recycling resources from the resource pool according to the first set resource number, and the first recycled resource number is not less than the first set resource number;

[0127] The device also includes:

[0128] The resource recovery module 406 is used to recover the first number of recovered resources from the resource pool if it is monitored that the validity period has arrived.

[0129] Optionally, the resource recovery module 406 is also used to, if it is determined that when the validity period has arrived, the number of resources held in the resource pool is less than the first number of recovered resources, divide the first number of recovered resources to obtain a number of second numbers of recovered resources; and recycle the second number of recovered resources from the resource pool at every preset recovery period until all the first number of recovered resources are recovered from the resource pool.

[0130] Optionally, the first entry providing module 403 is specifically used to, for each first target object, predict a target task to be performed by the first target object based on the historical task data of the first target object; determine the number of resources required to perform the target task as the target number of resources; and determine a first set number of resources to provide the required resources to the first target object based on the number of resources held by the resource pool of the first target object and the target number of resources.

[0131] Optionally, the first entry providing module 403 is also used to determine, for each first target object, a second target object that has a task association with the first target object based on the historical task data of the first target object; determine a first set number of resources to provide resources to the second target object, and provide the second target object with a first entry for obtaining the first set number of resources.

[0132] Optionally, the first entry providing module 403 is further used to determine a plurality of first target objects that jointly perform the same task as associated objects; determine a second set number of resources to provide to the associated objects, and provide the associated objects with a second entry for jointly acquiring the second set number of resources;

[0133] The first allocation module 404 is also used to allocate a common resource pool to each of the associated objects and pre-allocate the second set number of resources to the common resource pool if it is monitored that no less than a set number of associated objects accept to jointly obtain the second set number of resources through the second entrance.

[0134] Optionally, the resources include: funds.

[0135] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 Provides a method for allocating resources.

[0136] This manual also provides Figure 5 The schematic structure diagram of the electronic device shown in FIG. Figure 5 As mentioned above, at the hardware level, the unmanned driving device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0137] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0138] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0139] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0140] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0141] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0143] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0145] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0146] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0147] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0148] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0149] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0150] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0151] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0152] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A method for resource allocation, characterized in that: include: Obtain historical task data and attribute data of each candidate object; Filtering at least one first target object from the candidate objects according to the historical task data and the attribute data; For each first target object, determine a first set number of resources to provide to the first target object, and provide a first entry for the first target object to obtain the first set number of resources; If it is monitored that the first target object accepts the first set number of resources through the first entrance, the first set number of resources are pre-allocated to the resource pool of the first target object, so that the first target object can perform the task through the resource pool holding at least the first set number of resources before applying for resource call, and the resource call application is initiated when the first target object determines that the number of resources required to perform the task exceeds the number of resources held by the resource pool; For each first target object, determining a first set number of resources to provide resources to the first target object specifically includes: For each first target object, predicting a target task to be performed by the first target object according to the historical task data of the first target object; Determine the number of resources required to perform the target task as the target number of resources; Determine a first set number of resources for providing required resources to the first target object according to the number of resources held by the resource pool of the first target object and the target number of resources; If it is monitored that the first target object receives the first set number of resources through the first entrance, pre-allocating the first set number of resources to the resource pool of the first target object specifically includes: Acquire state data corresponding to the first target object when accepting acquisition of the first set number of resources; Verifying the first target object according to the status data; If it is determined that the first target object passes the verification, the first set number of resources are pre-allocated to the resource pool.

2. The method according to claim 1, characterized in that The method further comprises: If it is detected that the first target object applies for resource invocation, the permission of the first target object is reviewed; If it is determined that the first target object has passed the permission review, the resources requested by the first target object are allocated to the resource pool so that the first target object can perform the task through at least part of the resources requested.

3. The method according to claim 1, characterized in that Before pre-allocating the first set number of resources to the resource pool of the first target object, the method further includes: Determine the validity period of the first set resource number, and determine a first recycled resource number for recycling resources from the resource pool according to the first set resource number, wherein the first recycled resource number is not less than the first set resource number; The method further comprises: If it is monitored that the validity period has been reached, the first number of reclaimed resources is reclaimed from the resource pool.

4. The method according to claim 3, characterized in that The method further comprises: If it is determined that the number of resources held in the resource pool is less than the first number of recycled resources when the validity period is reached, dividing the first number of recycled resources to obtain a number of second numbers of recycled resources; At every preset recycling cycle, resources of the second recycled resource number are recycled from the resource pool until all resources of the first recycled resource number are recycled from the resource pool.

5. The method according to claim 1, characterized in that The method further comprises: For each first target object, determining a second target object having a task association with the first target object according to the historical task data of the first target object; A first set number of resources to be provided to the second target object is determined, and a first entry for acquiring the first set number of resources is provided to the second target object.

6. The method according to claim 1, characterized in that The method further comprises: Determine a plurality of first target objects that jointly perform the same task as associated objects; Determine a second set number of resources to provide to each of the associated objects, and provide each of the associated objects with a second entry for jointly acquiring the second set number of resources; If it is monitored that no less than a set number of associated objects accept to jointly obtain the second set number of resources through the second entrance, a public resource pool is allocated to each of the associated objects, and the second set number of resources are pre-allocated to the public resource pool.

7. The method according to any one of claims 1 to 6, characterized in that: The resources include: funds.

8. A resource allocation device, characterized in that: include: The acquisition module is used to obtain the historical task data and attribute data of each candidate object; A screening module, used for screening at least one first target object from the candidate objects according to the historical task data and the attribute data; A first entry providing module is used to determine, for each first target object, a first set number of resources to provide to the first target object, and provide the first target object with a first entry for obtaining the first set number of resources; For each first target object, determining a first set number of resources for providing resources to the first target object, specifically comprising: for each first target object, predicting a target task to be performed by the first target object based on historical task data of the first target object; determining the number of resources required to perform the target task as the target number of resources; determining the first set number of resources for providing the required resources to the first target object based on the number of resources held by the resource pool of the first target object and the target number of resources; A first allocation module is used for pre-allocating the resources of the first set number of resources to the resource pool of the first target object if it is monitored that the first target object accepts the acquisition of the resources of the first set number of resources through the first entrance, so that the first target object can perform the task through the resource pool that at least holds the resources of the first set number of resources before applying for resource call, and the application for resource call is initiated when the target object first target object determines that the number of resources required to perform the task exceeds the number of resources held by the resource pool; if it is monitored that the first target object accepts the acquisition of the resources of the first set number of resources through the first entrance, pre-allocating the resources of the first set number of resources to the resource pool of the first target object, specifically including: obtaining the status data corresponding to the first target object when accepting the acquisition of the resources of the first set number of resources; verifying the first target object according to the status data; if it is determined that the first target object passes the verification, pre-allocating the resources of the first set number of resources to the resource pool.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.