Business resource scheduling method and device, electronic equipment, medium and vehicle

By identifying and scheduling resources for services that are about to expire, the problem of service execution exceeding the expiration date under limited CPU resources has been solved, achieving efficient utilization of CPU resources and stable operation of the business system.

CN120994320APending Publication Date: 2025-11-21BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410627971.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

Existing technologies struggle to fully utilize processing resources when CPU resources are limited, leading to business execution delays.

Method used

By obtaining the execution deadline of pending tasks, identifying tasks that are likely to exceed their deadline, and targeting the task with the shortest deadline, calculating its information value, and scheduling corresponding resources to accelerate execution efficiency, we can ensure that the task does not exceed its deadline.

Benefits of technology

Effectively utilize CPU resources to shorten business execution time and maintain the stability and smooth operation of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994320A_ABST
    Figure CN120994320A_ABST
Patent Text Reader

Abstract

The invention provides a business resource scheduling method and device, electronic equipment and a vehicle, and relates to the field of resource scheduling. According to the technical scheme, the service execution deadlines of the to-be-executed services in the continuous execution process are recognized, the target to-be-executed service corresponding to the shortest service execution deadline is determined in the service execution deadlines, and in order to avoid overdue execution of the target to-be-executed service, the service resources are adjusted, and the service execution efficiency is improved. The service resources are scheduled to the target to-be-executed service, the execution efficiency of the target to-be-executed service is improved, the execution time of the target to-be-executed service is shortened, the CPU resources are fully utilized to ensure that the to-be-executed service does not run over time, and the execution stability of a service system is maintained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of resource scheduling, and in particular to a business resource scheduling method, apparatus, electronic equipment, and vehicle. Background Technology

[0002] A system platform typically supports the execution of different services. These services do not run completely synchronously. Furthermore, due to the limited computing power of the system platform, a certain sequential execution logic exists between the services to ensure their proper functioning and orderly execution. However, when the resources consumed by pending services are significant, existing technologies do not fully utilize the processing power of the central processing unit (CPU) when scheduling these services. Summary of the Invention

[0003] In view of this, this application provides a business resource scheduling method, apparatus, electronic device and vehicle, the main purpose of which is to solve the problem that the existing technology is unable to make full use of CPU processing resources under the premise of limited CPU resources when supporting the operation of multiple services.

[0004] To achieve the above objectives, the first aspect of this application discloses a business resource scheduling method, which includes:

[0005] Obtain the execution period of the pending business operations, wherein there is at least one pending business operation and each pending business operation corresponds one-to-one with the execution period of the business operation.

[0006] Based on the business execution period, pre-overdue businesses are determined from the pending businesses, and the business with the shortest business execution period among the pre-overdue businesses is selected as the target pending business.

[0007] Calculate the business information value occupied during the execution of the target business to be executed during the execution of the shortest business execution period;

[0008] Schedule the service resources corresponding to the service information value.

[0009] A second aspect of this application provides a service resource scheduling apparatus, the apparatus comprising:

[0010] The acquisition module is used to acquire the business execution period of the business to be executed. The number of the business to be executed is at least one, and the business to be executed corresponds one-to-one with the business execution period.

[0011] The determination module is used to determine pre-overdue businesses among the pending businesses based on the business execution period, and to select the business with the shortest business execution period among the pre-overdue businesses as the target pending business.

[0012] The calculation module is used to calculate the value of business information occupied by the target business to be executed during the execution of the shortest business execution period;

[0013] The scheduling module is used to schedule the business resources corresponding to the business information value.

[0014] A third aspect of this application provides an electronic device, comprising:

[0015] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods disclosed in the first aspect.

[0016] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0017] A fifth aspect of this application provides a vehicle in which the device as described in the second aspect or the electronic device as described in the third aspect is mounted.

[0018] In summary, based on the technical solution disclosed in this application, this application addresses the problem that existing technologies struggle to fully utilize CPU processing resources under limited CPU conditions when supporting the operation of multiple services. This application proposes a service resource scheduling method. This method involves obtaining the execution period of pending services, with at least one pending service and a one-to-one correspondence between pending services and their execution periods. Then, based on the execution period, pre-overdue services are identified among the pending services, and the service with the shortest execution period among these pre-overdue services is selected as the target pending service. Next, the service information value occupied by the target pending service during its shortest execution period is calculated. Finally, the service resources corresponding to the service information value are scheduled. In this technical solution, the execution period of pending services is identified during continuous execution, and the target pending service corresponding to the shortest execution period is determined. To prevent the target pending service from exceeding its execution period, this application proposes adjusting service resources, scheduling service resources to the target pending service, accelerating the execution efficiency of the target pending service, shortening its execution time, fully utilizing CPU resources to ensure that pending services do not exceed their execution period, and maintaining the execution stability of the business system.

[0019] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart of a service resource scheduling method provided in an embodiment of this application is shown;

[0023] Figure 2 A structural diagram of a service resource scheduling device provided in an embodiment of this application is shown. Detailed Implementation

[0024] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0025] To address the problem that existing technologies struggle to fully utilize CPU processing resources under limited conditions when supporting multiple business operations, this application provides the following embodiments to solve the aforementioned problem:

[0026] This embodiment provides a service resource scheduling method, such as Figure 1 The diagram shown is a flowchart of the method in this embodiment. The method in this embodiment may specifically include the following steps:

[0027] Step 101: Obtain the execution period of the business to be executed. There is at least one business to be executed, and there is a one-to-one correspondence between the business to be executed and the execution period.

[0028] A set of pending tasks is not a single entity, but rather a collection containing at least one task that needs to be processed simultaneously or sequentially. Each pending task has its own specific execution deadline. For each task within the pending tasks, a specific time limit for completion has been pre-set or clearly defined. By setting execution deadlines for each pending task, a clear definition of the execution time requirements for each task can be ensured. Understanding these deadlines helps in rationally scheduling task execution, monitoring progress, and ensuring timely completion of all tasks.

[0029] Step 102: Based on the business execution period, identify the pre-overdue businesses among the pending businesses, and select the business with the shortest execution period among the pre-overdue businesses as the target pending business.

[0030] Pre-overdue tasks refer to pending tasks that, based on current progress and remaining time, may not be completed within the established execution deadline. These tasks have already shown a risk of delay and require special attention and countermeasures to avoid actual overdue periods. Among all pre-overdue tasks, one or more tasks have relatively short execution periods, meaning the remaining time from now to the planned completion time is the shortest. Therefore, among all pre-overdue tasks, the pending tasks corresponding to the shortest execution period are designated as target pending tasks. Due to the most severe time pressure, if effective measures are not taken in a timely manner, they are highly likely to become the first tasks to be overdue, causing subsequent business execution logic to become chaotic. In summary, among pre-overdue tasks, the target pending tasks with the shortest execution period are the highest priority intervention targets to ensure that other necessary measures are taken to ensure their completion within the limited time, preventing the entire business process from being affected by the delay of a single critical task.

[0031] Step 103: Calculate the business information value occupied during the execution of the target business to be executed in the shortest business execution period.

[0032] In pre-overdue tasks, the target task corresponding to the shortest execution period determined through analysis faces the highest risk of exceeding the deadline and has the greatest time urgency. From the current time until the completion of all tasks within this target task, all business operations must be completed to achieve the expected business objective. At this point, the business information value consumed during the execution of the shortest execution period is further calculated to determine the amount of business still required from the current time until the final completion date.

[0033] The calculation of business information values ​​also needs to be further combined with specific business scenarios and information management frameworks, and reasonable calculation methods should be adopted in order to accurately assess the business's demand for information resources.

[0034] Step 104: Schedule the business resources corresponding to the business information values.

[0035] In a business environment, the scheduling of business resources typically involves multiple levels, including business execution time scheduling, task sequencing, and resource allocation. Optimizing resource utilization efficiency ensures the smooth operation of business activities and the timely achievement of goals. After calculating the business information value, the complexity, priority, and actual resource requirements of the business are assessed using this quantified value. Therefore, the appropriate allocation and scheduling of relevant business resources is determined by combining the business characteristics reflected in the business information value. For example, high-priority businesses may require more CPU resources. This embodiment proposes that during business scheduling, CPU business resources are rationally and efficiently allocated and scheduled based on the specific information value of the business (such as priority, complexity, required resource type and quantity), matching CPU business resources with the target business needs to support the effective execution of business activities and the achievement of goals.

[0036] In this embodiment, the execution period of the pending business is identified during the continuous execution process, and the target pending business corresponding to the shortest execution period is determined within the execution period. To avoid the target pending business from exceeding its execution period, this embodiment proposes to adjust business resources, schedule business resources to the target pending business, accelerate the execution efficiency of the target pending business, shorten the execution time of the target pending business, make full use of CPU resources to ensure that the pending business does not exceed its execution period, and maintain the execution stability of the business system.

[0037] In one possible embodiment, obtaining the execution period of the service to be executed includes:

[0038] Identify the frequency of business requirements for the pending business; calculate the reciprocal of the frequency of business requirements as the execution duration of the pending business; obtain the number of periodic requirements for the business execution cycle; calculate the product of the cycle duration and the number of periodic requirements as the execution period of the pending business.

[0039] By conducting in-depth analysis of each pending task, the frequency of its demand over a period of time is determined. This could be a periodic number of demands per hour, minute, or second, or a demand rate that dynamically changes with the task. For example, when the vehicle's infotainment system performs radar scanning, it relies on periodically acquiring radar data. The frequency at which the system acquires radar data is its demand frequency. After determining the demand frequency, its reciprocal is calculated as the execution duration of the pending task. This yields the average time required to theoretically complete one full cycle of the task, i.e., the execution duration. For example, if radar data is acquired 20 times per second, 20 represents the demand frequency for this process, and 1 / 20 = 50ms is the reciprocal of the demand frequency, serving as the execution cycle. This calculation method assumes a uniform distribution of processing capacity; therefore, this embodiment can be directly and widely applied to the execution phase of pending tasks with uniform cycles. In the execution of tasks with non-uniform cycles, the actual execution duration of each pending task can be obtained intelligently.

[0040] In this embodiment, a specific target time point is determined, which serves as the completion deadline for the target task to be executed. This target time point also serves as the basis for determining whether the task to be executed is a pre-overdue task. Then, the time period between this target task's current execution time point and this time point is calculated; this is the execution period of the target task. The specific calculation method for the execution period can be based on the cycle length of the target task in each execution cycle and the number of cycles required when the target task is executed up to the target time point, combined and calculated. This division helps to clearly understand the progress of the business based on the required number of tasks, assess whether the expected schedule requirements are met, and make corresponding adjustments accordingly.

[0041] In one possible embodiment, scheduling the service resources corresponding to the service information value includes:

[0042] Calculate the baseline execution speed of the business information value within the shortest execution period; determine the baseline business resources occupied by the target business to be executed at the baseline execution speed; determine the minimum execution speed required for the business information value to complete the target business to be executed within the target task execution period; determine the target business resources occupied by the business information value when it is completed within the target task execution period based on the minimum execution speed; and schedule the business resources occupied by the business information value to be increased from the baseline business resources to the target business resources.

[0043] For a pending task, especially a target task with a minimum execution deadline, adjusting the execution rate or efficiency is necessary to ensure completion before the deadline. Before adjusting the rate or efficiency, it's crucial to determine the optimal execution speed after resource scheduling. Since business information values ​​may represent quantifiable factors such as data processing volume, information flow speed, and decision-making efficiency, calculating the execution speed, given the business information value and minimum execution deadline, reflects the amount of business information or processing required within that timeframe. Based on the calculated execution speed, it's further determined which specific business resources will be scheduled to maintain this speed. These resources may include network bandwidth, storage space, and other forms, and must be sufficient to efficiently complete the business objective in the shortest possible time. Building upon existing resources—the baseline business resources—the basic business resources originally configured for the target task (i.e., resources used under minimum execution requirements) are adjusted to meet the current target task resource requirements until the resources needed to execute the target task reach the target resource level. When achieving shorter business execution deadlines, resources can be flexibly allocated to upgrade from the original basic level to a level sufficient to meet the needs of accelerated execution.

[0044] This embodiment demonstrates how to scientifically adjust and schedule resources based on the needs of business execution efficiency within a limited time, so as to ensure that the target business to be executed can be successfully completed within the shortest possible execution period.

[0045] In one possible embodiment, the service resources occupied by the scheduling service information value are increased from the baseline service resources to the target service resources, including:

[0046] Increase the execution priority of the target pending service to the target priority; select the CPU core unit corresponding to the target priority, and the CPU core unit is used to participate in the execution of the target pending service; schedule the target priority and CPU core unit to the target pending service, and the CPU core unit is used to increase the baseline service resources occupied by the target pending service to the target service resources.

[0047] Priority is an attribute set in the operating system or task scheduling mechanism to determine the order in which different tasks acquire CPU resources. Increasing the priority of a pending task means that when multiple tasks are waiting to be processed simultaneously, that task will be given a higher scheduling priority, making it more likely to win in resource competition and obtain a timely and sufficient execution opportunity. Because the target pending task has the shortest execution period compared to other tasks, it is more prone to execution overdue issues. Therefore, by increasing the priority of the target pending task, its execution priority is raised to the target priority, allowing it to jump the queue before other pending tasks.

[0048] Furthermore, by selecting a central processing unit (CPU) core, a multi-core processor system can be configured with multiple independent processing units (cores), each capable of executing different tasks in parallel. One or more suitable CPU cores are selected to specifically handle the elevated priority target tasks. This ensures that critical tasks have dedicated computing resources, avoiding contention for the same core with lower-priority or irrelevant tasks, thereby improving execution efficiency. In this embodiment, the scheduling process is typically handled by the operating system kernel, task scheduler, or related resource management software. It records the priority information of the task and the allocated CPU cores by updating the Task Control Block (TCB) or similar data structures. After scheduling is complete, the operating system uses these settings in subsequent execution cycles to ensure that the target task runs on the designated core at the set priority.

[0049] By adjusting the priority of pending tasks and allocating dedicated CPU cores, the resources available to the target task in its initial state are used as the baseline resources (memory, I / O bandwidth, network resources, etc.). The goal is to further improve these resources to an ideal level. While increasing the baseline resources to the target resource level, more system resources are allocated to the task, such as increasing memory allocation, improving I / O access speed, and increasing network bandwidth quota, to ensure efficient and smooth execution. This ensures the task receives sufficient computing power and priority processing in a multi-task concurrent environment, achieving efficient execution. Furthermore, in this embodiment, the CPU cores prioritize idle cores to avoid interference with other tasks. Simultaneously, this embodiment fully utilizes CPU resources to ensure pending tasks do not exceed their execution time, maintaining the stability of the business system.

[0050] In one possible embodiment, the service resources occupied by the scheduling service information value are increased from the baseline service resources to the target service resources, including:

[0051] Identify other service resources occupied by other execution services, which are services different from the target service to be executed; calculate the sum of resources of other service resources and the target service resources; verify whether the sum of resources exceeds a threshold; if the sum of resources exceeds the threshold, obtain service adjustment resources from other service resources; schedule the service adjustment resources to the target service to be executed, and use the sum of resources of the service adjustment resources and the baseline service resources as the target service resources.

[0052] The system monitors and identifies various system resources consumed by all other currently running services, such as CPU utilization, memory usage, disk I / O, and network bandwidth, to understand the overall resource usage of other execution services and make reasonable resource allocation decisions. The system calculates the total resources consumed by all other execution services and the required resources for the target service to be executed. Here, "resource sum" refers to the total resource amount obtained by adding up the various resource quantities consumed by all services. The system then compares this total resource sum with a pre-set threshold. If the current total resource consumption exceeds this threshold, it indicates that the overall system resources are strained after resource allocation to the target service, potentially affecting the normal operation of the system. Therefore, when the resource sum is found to exceed the threshold, the system will initiate a resource adjustment strategy to find resources that can be released or reduced from other execution services. When adjusting resource acquisition for execution services, methods such as lowering the priority of non-critical services and pausing or reducing the resource consumption of some services can be used to free up resource space for the more important target service to be executed. By adjusting resource allocation for the target service, the system reschedules adjustable resources from other services to the target service, increasing its original baseline resource allocation to the required target resource allocation. This ensures that even when overall system resources are strained, the target service can obtain sufficient resources to meet performance requirements or Service Level Agreement (SLA) requirements.

[0053] This embodiment further illustrates an alternative implementation method provided when system resources are insufficient to support the invocation of business resources to the target business to be executed. This method ensures the timely completion of the target business by adjusting the resources of other business resources.

[0054] In one possible embodiment, after the service resources occupied by the scheduling service information value are increased from the baseline service resources to the target service resources, the method further includes:

[0055] Adjust the execution priority of the target pending task from the target priority to the baseline priority, where the baseline priority is the lowest priority among the tasks; release the central processing unit core unit used to execute the target pending task.

[0056] To ensure timely completion of the target pending task, its execution priority is elevated to a higher target priority to achieve faster response and allocate more computing resources. However, once the target task is successfully completed, its priority is further reduced back to the baseline priority, the lowest priority level in the entire business environment. This means that the task's priority in resource scheduling will be lowered to make way for higher-priority tasks, potentially resulting in a decrease in its execution speed and response time.

[0057] Furthermore, the system no longer reserves or locks CPU core units specifically for the target task to be executed. Once the CPU core units used to execute the target task are released, these core units return to the available resource pool and can be used by any other scheduled task or process. This helps improve the overall system's resource utilization and load balancing, preventing a single task from consuming excessive resources for an extended period, which could lead to a decline in overall system performance.

[0058] Since the various services in the system are running continuously in a time sequence, when a service is completed, in order to further ensure the smooth execution of other services, if its priority is increased during the execution of the service and a corresponding CPU core unit is configured to accelerate its processing, then after the service is completed, its priority is called back and the CPU core unit is returned to its original position. This allows for adjustments and calls during the execution of other services, ensuring the overall orderly execution and reliability of the system.

[0059] This embodiment provides a service resource scheduling device, such as Figure 2 The diagram shown is a structural diagram of the device in this embodiment, including:

[0060] The acquisition module 21 is used to acquire the business execution period of the business to be executed, wherein the number of the business to be executed is at least one, and the business to be executed corresponds one-to-one with the business execution period;

[0061] The determining module 22 is used to determine the pre-overdue business among the pending businesses according to the business execution period, and to take the business with the shortest business execution period among the pre-overdue businesses as the target pending business;

[0062] Calculation module 23 is used to calculate the business information value occupied by the target business to be executed during the execution of the shortest business execution period;

[0063] The scheduling module 24 is used to schedule the business resources corresponding to the business information value.

[0064] In one possible embodiment, the acquisition module 21 is specifically used for:

[0065] Identify the frequency of business requests for tasks to be executed;

[0066] Calculate the reciprocal of the frequency of the business demand, and use it as the business execution cycle of the business to be executed;

[0067] Obtain the number of cycles required for the business execution cycle;

[0068] The product of the cycle duration of the business execution cycle and the number of cycles required is calculated and used as the business execution period of the business to be executed.

[0069] In one possible embodiment, the scheduling module 24 is specifically used for:

[0070] Calculate the baseline execution speed value of the business information value within the shortest business execution period for executing the business information value;

[0071] Determine the baseline service resources occupied by the target service to be executed at the baseline execution speed value;

[0072] Determine the minimum execution speed required for the business information value to be completed within the target task execution period;

[0073] Determine the target business resources occupied by the business information value when the target task is completed within the target execution period based on the minimum execution speed value;

[0074] The service resources occupied by the scheduled service information value are increased from the baseline service resources to the target service resources.

[0075] In one possible embodiment, the scheduling module 24 is specifically used for:

[0076] Increase the execution priority of the target pending service to the target priority;

[0077] Select a central processing unit (CPU) core unit corresponding to the target priority; the CPU core unit is used to execute the target's pending business.

[0078] The target priority and the central processing unit (CPU) are scheduled to the target pending service, and the CPU is used to increase the base service resources occupied by the target pending service to the target service resources.

[0079] In one possible embodiment, the scheduling module 24 is specifically used for:

[0080] Identify other service resources occupied by other execution services, wherein the other execution services are different from the target service to be executed;

[0081] Calculate the resource sum and value of the other business resources and the target business resource;

[0082] Verify whether the resource and value exceed the threshold;

[0083] If the resources and values ​​exceed the threshold, then obtain the business adjustment resources from the other business resources;

[0084] The service adjustment resources are scheduled to the target service to be executed, and the resources and values ​​of the service adjustment resources and the base service resources are combined.

[0085] In one possible embodiment, the scheduling module 24 is further configured to:

[0086] The execution priority of the target pending service is adjusted from the target priority to the baseline priority, where the baseline priority is the lowest priority among the services.

[0087] Release the central processing unit core used to execute the target pending business.

[0088] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.

[0089] Based on the above, Figure 1 The method shown, and Figure 2 To achieve the above objectives, this application also provides an electronic device, which can be configured on the end side of a vehicle (such as a new energy vehicle). This device includes at least one processor and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor. The processor executes a computer program to implement the above-described virtual device embodiments. Figure 1 The method shown.

[0090] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.

[0091] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0092] Based on the above, Figure 1 The method illustrated in this application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the method corresponding to any embodiment. The storage medium may further include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize communication between the components within the storage medium, as well as communication with other hardware and software in the information processing physical device.

[0093] Based on the aforementioned electronic device, this application embodiment also provides a vehicle, which may specifically include: such as Figure 2 The device shown or the electronic equipment described above. The vehicle may specifically be a new energy vehicle or a traditional vehicle, etc.

[0094] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms, or it can be implemented by hardware. By applying the solution of this embodiment, compared with the prior art, this embodiment obtains the business execution period of the business to be executed, the number of business to be executed is at least one, and there is a one-to-one correspondence between the business to be executed and the business execution period; then, based on the business execution period, it determines the pre-overdue business among the business to be executed, and takes the business with the shortest business execution period among the pre-overdue business as the target business to be executed; then it calculates the business information value occupied by the target business to be executed during the execution of the shortest business execution period; finally, it schedules the business resources corresponding to the business information value. In the technical solution of this application, the business execution period of the business to be executed is identified in the continuous execution process, and the target business to be executed corresponding to the shortest business execution period is determined in the business execution period. In order to avoid the target business to be executed overdue, this application proposes to adjust the business resources, schedule the business resources to the target business to be executed, speed up the execution efficiency of the target business to be executed, shorten the execution time of the target business to be executed, make full use of CPU resources to ensure that the business to be executed does not exceed the time limit, and maintain the execution stability of the business system.

[0095] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0096] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for scheduling business resources, characterized in that, include: Obtain the execution period of the pending business operations, wherein there is at least one pending business operation and each pending business operation corresponds one-to-one with the execution period of the business operation. Based on the business execution period, pre-overdue businesses are determined from the pending businesses, and the business with the shortest business execution period among the pre-overdue businesses is selected as the target pending business. Calculate the value of business information required by the target business to be executed during the execution of the shortest business execution period; Schedule the service resources corresponding to the service information value.

2. The method according to claim 1, characterized in that, The business execution period for obtaining the business to be executed includes: Identify the frequency of business requests for tasks to be executed; Calculate the reciprocal of the frequency of the business demand, and use it as the business execution cycle of the business to be executed; Obtain the number of cycles required for the business execution cycle; The product of the cycle duration of the business execution cycle and the number of cycles required is calculated and used as the business execution period of the business to be executed.

3. The method according to claim 1, characterized in that, The scheduling of the service resources corresponding to the service information value includes: Calculate the baseline execution speed value of the business information value within the shortest business execution period for executing the business information value; Determine the baseline service resources occupied by the target service to be executed at the baseline execution speed value; Determine the minimum execution speed required for the business information value to be completed within the target task execution period; Determine the target business resources occupied by the business information value when the target task is completed within the target execution period based on the minimum execution speed value; The service resources occupied by the scheduled service information value are increased from the baseline service resources to the target service resources.

4. The method according to claim 3, characterized in that, The process of scheduling the service resources occupied by the service information value, increasing them from the baseline service resources to the target service resources, includes: Increase the execution priority of the target pending service to the target priority; Select a central processing unit (CPU) core unit that corresponds to the target priority; the CPU core unit is used to participate in the execution of the target's pending business. The central processing unit (CPU) core is scheduled to the target service to be executed. The CPU core includes service resources for increasing the base service resources occupied by the target service to the target service resources.

5. The method according to claim 3, characterized in that, The process of scheduling the service resources occupied by the service information value, increasing them from the baseline service resources to the target service resources, includes: Identify other service resources occupied by other execution services, wherein the other execution services are different from the target service to be executed; Calculate the resource sum and value of the other business resources and the target business resource; Verify whether the resource and value exceed the threshold; If the resources and values ​​exceed the threshold, then obtain the business adjustment resources from the other business resources; The service adjustment resources are scheduled to the target service to be executed, and the sum of the service adjustment resources and the baseline service resources is used as the target service resources.

6. The method according to claim 4, characterized in that, After the service resources occupied by the scheduled service information value are increased from the baseline service resources to the target service resources, the method further includes: The execution priority of the target pending service is adjusted from the target priority to the baseline priority, where the baseline priority is the lowest priority among the services. Release the central processing unit core used to execute the target pending business.

7. A business resource scheduling device, characterized in that, include: The acquisition module is used to acquire the business execution period of the business to be executed. The number of the business to be executed is at least one, and the business to be executed corresponds one-to-one with the business execution period. The determination module is used to determine pre-overdue businesses among the pending businesses based on the business execution period, and to select the business with the shortest business execution period among the pre-overdue businesses as the target pending business; The calculation module is used to calculate the value of business information occupied by the target business to be executed during the execution of the shortest business execution period; The scheduling module is used to schedule the business resources corresponding to the business information value.

8. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-6.

10. A vehicle, characterized in that, The vehicle is equipped with the device as described in claim 7, or the electronic device as described in claim 8.