Service scheduling method and device based on terminal adaptive resources and medium
By collecting and analyzing data from terminal devices, and combining the service library and scheduling module, the service module is dynamically adjusted, which solves the problem of version maintenance difficulties caused by differences in terminal device hardware, and achieves efficient and flexible service scheduling and improved user experience.
Patent Information
- Application Number
- CN202511070679.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-21
AI Technical Summary
In existing technologies, differences in terminal device hardware configurations make version maintenance difficult and make it hard to provide stable and efficient service scheduling under different hardware.
By comprehensively collecting equipment data and combining real-time and static data analysis, the status of equipment resources is determined. Intelligent matching and scheduling are performed using a service library and service list, the operating status of service modules is dynamically adjusted, the addition and updating of new service modules are supported, and a service scheduling interface is set up to receive user adjustment requests.
It achieves efficient utilization of terminal device resources, ensures stable operation of core functions, improves system flexibility and user experience, and adapts to service scheduling needs under different hardware conditions.
Smart Images

Figure CN120994373A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a service scheduling method, device and medium based on terminal adaptive resources. Background Technology
[0002] With technological advancements, the hardware configurations and usability of terminal devices are becoming increasingly diverse. Furthermore, during continuous product iterations, devices of the same model may possess different capabilities due to variations in hardware. In addition, constantly adding extra features can easily impact the core functionality of a device. Currently, a common practice is to release different versions of the application for different hardware, but this leads to difficulties in version maintenance and challenges in continuous development. Using a unified version, on the other hand, may result in older devices becoming unusable or core functions being affected. Summary of the Invention
[0003] To address the aforementioned issues, this application proposes a service scheduling method based on terminal adaptive resources, comprising: collecting device data to determine the device resource status based on the device data; determining a service list through a pre-set service library to determine the service module corresponding to the device resource status based on the service list; and invoking the device resource corresponding to the service module to execute the corresponding service scheduling operation.
[0004] In one example, data collection from the device includes: collecting real-time data of the device, including CPU utilization, memory usage, and real-time bandwidth; collecting static data of the device, including storage space and GPU model; and determining the device resource status based on the real-time data and the static data.
[0005] In one example, determining the device resource status based on the real-time data and the static data specifically includes: analyzing the real-time data to determine the device's operating load and performance status; analyzing the static data to determine the device's hardware configuration and preset capabilities; and determining the device's resource status level based on the analysis results of the real-time data and the static data.
[0006] In one example, determining the service module corresponding to the device resource status based on the service list specifically includes: determining the resource requirements corresponding to the service module based on the service list, and comparing the device resource status with the resource requirements through the service module to determine the service module corresponding to the device resource status.
[0007] In one example, the corresponding service scheduling operation includes: determining the device resource status based on a pre-set resource threshold, whereby the device resource status includes whether the device resources are sufficient or scarce; if the device resources are sufficient, determining the priority of the service module based on the service list, determining a first-tier priority based on a pre-set first threshold, determining a first-tier service module based on the first-tier priority, and starting the first-tier service module; if the device resources are scarce, determining a core priority based on a pre-set second threshold, determining a core module based on the core priority, and starting the core module.
[0008] In one example, dynamically adjusting the running status of a service module specifically includes: determining changes in the device resource status, determining the rate of change of CPU usage frequency based on the changes, comparing the rate of change with a pre-determined threshold; if the rate of change is greater than the threshold, then determining an enhanced service based on the service list and uninstalling the enhanced service.
[0009] In one example, the method further includes: determining a new service module, adding the new service module to the service library, and updating the service list based on the new service module.
[0010] In one example, the method further includes: determining a pre-set service scheduling interface, receiving user adjustment requests through the service scheduling interface, and adjusting the allocation of the service modules according to the adjustment requests.
[0011] On the other hand, this application also proposes a service scheduling device based on terminal adaptive resources, comprising: 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, the instructions being executed by the at least one processor to enable the service scheduling device based on terminal adaptive resources to perform: collecting device data to determine device resource status based on the device data; determining a service list through a pre-set service library to determine the service module corresponding to the device resource status based on the service list; and calling the device resources corresponding to the service module to perform the corresponding service scheduling operation.
[0012] On the other hand, this application also proposes a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: collect device data to determine the device resource status based on the device data; determine a service list through a pre-set service library to determine the service module corresponding to the device resource status based on the service list; and invoke the device resources corresponding to the service module to perform the corresponding service scheduling operation.
[0013] This application comprehensively collects real-time and static data from equipment, enabling precise understanding of equipment resource status and providing a reliable basis for subsequent scheduling. Secondly, it identifies corresponding service modules through a service library and service list, achieving intelligent matching of resources and services and improving scheduling efficiency. Furthermore, it differentiates resource status based on resource thresholds, activating service modules of different priorities to ensure stable operation of core functions while rationally utilizing resources. It dynamically adjusts the operating status of service modules, unloading enhanced services based on the rate of change in CPU usage frequency, enhancing the system's flexibility in responding to resource fluctuations. In addition, it supports the addition of new service modules and updates to the service library and service list, giving the system good scalability and enabling rapid adaptation to new needs. Finally, it sets up a service scheduling interface to receive user adjustment requests, enabling personalized customization of service module allocation and improving user experience. The overall methodology is logically clear, flexible, and efficient, effectively optimizing terminal resource utilization and ensuring stable and reliable service operation. Attached Figure Description
[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart illustrating a service scheduling method based on terminal adaptive resources in an embodiment of this application. Figure 2 This is a schematic diagram of a service scheduling device based on terminal adaptive resources in an embodiment of this application. Detailed Implementation
[0015] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0016] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0017] like Figure 1As shown, to solve the above problems, this application provides a service scheduling method based on terminal adaptive resources, applied in a service scheduling system based on terminal adaptive resources. The system includes: a resource monitoring module, an application service library, and a scheduling module. The method includes: S101. Collect equipment data to determine the equipment resource status based on the equipment data.
[0018] The resource monitoring module is responsible for comprehensively collecting various specified characteristic data of the devices to accurately assess their resource status. This module not only acquires key monitoring items such as hardware information and network status in real time—e.g., real-time monitoring of CPU utilization to determine processing load, tracking memory usage to avoid memory overflow, and measuring real-time bandwidth to ensure data transmission efficiency—but also collects static data, including total and remaining storage space to assess storage capacity, and hardware configuration information such as GPU model to understand graphics processing potential. By comprehensively analyzing this real-time and static data, the resource monitoring module can provide service scheduling with an accurate and comprehensive profile of device resources, ensuring that services can operate efficiently and stably under different resource conditions.
[0019] S102. Determine a service list through a pre-set service library, and determine the service module corresponding to the device resource status based on the service list.
[0020] As a core component of the server, the application service library bears the crucial responsibility of storing and distributing services. This library cleverly breaks down applications and functionalities into independent modules, each encapsulating specific service functions, thus achieving service modularization and standardization. Furthermore, each module is equipped with a detailed service description list. These lists not only clearly define the service category (e.g., core services ensure basic operation, enhancement services improve user experience, and supplementary services provide additional functionality), but also describe in detail the service's function, priority, and required resource conditions. In this way, the application service library can accurately schedule and distribute service modules based on device resource availability and user needs, ensuring service flexibility and efficiency.
[0021] S103. Call the device resources corresponding to the service module to perform the corresponding service scheduling operation.
[0022] As the core of system resource and service scheduling, the scheduling module undertakes the crucial task of intelligently matching device resource and service needs. Upon terminal startup, the scheduling module immediately activates the resource monitoring module, simultaneously initiating real-time monitoring of device resources and ensuring core services run preferentially to guarantee uninterrupted basic functions. Subsequently, the terminal downloads the latest application services and service lists from the server, which detail the resource requirements and priorities of each service. Based on the real-time data provided by the resource monitoring module, the scheduling module compares the resource requirements in the service lists to accurately select the set of services that can run under current resource conditions. During system operation, the scheduling module continuously monitors resource changes. Once a resource decrease or increase triggers a preset resource threshold, it responds rapidly and executes dynamic service scheduling. This includes starting new services based on resource conditions, downgrading resource-constrained services to reduce resource consumption, or stopping non-core services when resources are extremely scarce, ensuring overall system stability and the continuous operation of core functions. The entire scheduling process is efficient and flexible, fully adapting to resource changes in different scenarios.
[0023] In one embodiment, during the scheduling process, the system first meticulously collects real-time data from the device. This data includes CPU utilization to assess processor load, memory usage to monitor memory resource consumption, and real-time bandwidth to determine network transmission capacity. Simultaneously, the system also collects static data from the device, including total and remaining storage space to clarify storage potential, and hardware information such as GPU model to assess graphics processing capabilities. Subsequently, the system performs in-depth analysis of the collected real-time data, accurately determining the device's current operating load and performance status by analyzing CPU utilization levels, memory usage fluctuations, and real-time bandwidth stability. The analysis of static data allows the system to understand the device's hardware configuration and pre-configured capabilities, providing a solid basis for subsequent service scheduling. Finally, the system comprehensively analyzes the results of real-time and static data to scientifically determine the device's resource status level, such as "resources abundant," "resources moderate," or "resources strained." This classification not only reflects the device's current resource utilization but also provides clear guiding principles for subsequent service initiation, scheduling, or degradation.
[0024] In one embodiment, the system analyzes the resource requirements of each service module based on the service list, covering key indicators such as CPU computing power, memory usage, and network bandwidth requirements. Subsequently, the system meticulously compares the currently collected device resource status, such as CPU utilization, remaining memory, and available bandwidth, with the resource requirements of each service module. Through this comparison process, the system can accurately select service modules that can run smoothly under the current device resource conditions. To improve the flexibility and efficiency of service management, the system carefully designs applications and functions into independent modules, storing and distributing them separately. For each module, the system also provides a detailed service description, clearly indicating the service category (e.g., core services ensure basic functions, enhanced services improve user experience, and supplementary services provide unique features). It also details the service's functional characteristics, priority order, and required resource conditions, providing comprehensive and accurate information support for service scheduling. The service categories are shown in Table 1 below.
[0025] Table 1 Service Categories
[0026] In one embodiment, the system comprehensively determines the equipment resource status based on pre-set, finely defined resource thresholds, clearly classifying it into states such as sufficient equipment resources and scarce equipment resources. When equipment resources are sufficient, the system deeply analyzes the service list, accurately defines the first-tier priority based on the pre-set priority of each service module and the first threshold, and then selects the corresponding first-tier service modules, prioritizing the activation of these critical services to fully utilize equipment resources and improve service efficiency. Conversely, if equipment resources are scarce, the system quickly determines the core priority based on the second threshold, locks down indispensable core modules, and ensures the stable operation of these core services to guarantee that the basic functions of the equipment are not affected.
[0027] Meanwhile, the system continuously tracks changes in device resource status, especially the dynamic fluctuations in CPU usage frequency. By calculating the rate of change of CPU usage frequency and comparing it with a pre-set threshold, the system can keenly detect signs of resource strain. Once the rate of change exceeds the threshold, the system will immediately locate the enhanced service module based on the service list and decisively execute the unloading operation to release valuable resources and alleviate device pressure. In actual scheduling, the system closely relies on real-time feedback data from the resource monitoring module, combined with a detailed service description list in the application service library, to intelligently schedule service modules. For example, when CPU usage spikes to the extreme case of 98%, the system will respond quickly and automatically unload non-core enhanced services, ensuring that the device can maintain the stable operation of critical services even under extremely tight resource conditions.
[0028] In one embodiment, upon terminal startup, core, enhanced, and additional module services are activated simultaneously to ensure that the device's basic functions and expansion capabilities are fully ready. For different resource-constrained scenarios, the system implements refined scheduling strategies. For example, when real-time bandwidth is limited to only 128KB / s, the system automatically determines that the bandwidth is insufficient to support high-definition video transmission, immediately stops the high-definition video transmission service, and switches to standard-definition video transmission to adapt to low-bandwidth environments and ensure data transmission continuity. During 4K video playback, if CPU utilization suddenly spikes to 95%, the system quickly identifies resource bottlenecks, prioritizes core playback functions, and then stops non-core services such as real-time video enhancement processing and sensor data acquisition, effectively freeing up CPU resources. This series of scheduling mechanisms is intelligently triggered based on the device's real-time status, ensuring stable operation of core functions while flexibly adjusting non-core services to achieve optimal resource allocation. The broadcast terminals are shown in Table 2 below.
[0029] Table 2 Broadcast Terminals
[0030] In one embodiment, when a new service module needs to be integrated into the system, it must first undergo comprehensive testing and verification to ensure its functionality is complete and its stability is reliable. After successful verification, the system will accurately add the new service module to the service repository for storage and management according to established specifications and standards, ensuring the orderly storage and convenient access of service modules. Simultaneously, based on the new service module's category (e.g., core extension, enhanced upgrade, additional innovation), functional characteristics, priority, and required resources, the existing service list is updated synchronously. This ensures the service list accurately reflects the latest status in the service repository, providing accurate data for subsequent equipment resource assessment and service scheduling, guaranteeing the efficient operation and flexible expansion of the entire system.
[0031] In one embodiment, during the system design phase, a set of standardized and easily expandable service scheduling interfaces is pre-planned and defined. These interfaces serve as key channels for interaction between the system and users, possessing high flexibility and security. Users can submit adjustment requests for service modules through these interfaces according to actual needs, such as adding, removing, or reallocating specific service modules. Upon receiving a user's adjustment request, the system immediately initiates a verification process to ensure the request's legitimacy and feasibility. Once verification is successful, the system will intelligently and dynamically adjust the allocation of service modules based on the adjustment request, optimizing resource configuration and ensuring that all services operate efficiently as expected by the user. This process not only improves the system's response speed but also enhances the personalization and satisfaction of the user experience.
[0032] like Figure 2As shown in the illustration, this application also provides a service scheduling device based on terminal adaptive resources, comprising: 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, which, when executed by the at least one processor, enable the service scheduling device based on terminal adaptive resources to perform the following: Collect equipment data to determine the equipment resource status based on the equipment data; A service list is determined by a pre-set service library, and the service module corresponding to the device resource status is determined based on the service list; The device resources corresponding to the service module are invoked to execute the corresponding service scheduling operation.
[0033] This application embodiment also provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows: Collect equipment data to determine the equipment resource status based on the equipment data; A service list is determined by a pre-set service library, and the service module corresponding to the device resource status is determined based on the service list; The device resources corresponding to the service module are invoked to execute the corresponding service scheduling operation.
[0034] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the description of the method embodiments.
[0035] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0036] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied 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.
[0037] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0038] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0039] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0040] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0041] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0042] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0043] It should also be noted that the terms "comprising," "including," or any other variations thereof are 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 limitation, 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.
[0044] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A service scheduling method based on terminal adaptive resources, characterized in that, include: Collect equipment data to determine the equipment resource status based on the equipment data; A service list is determined by a pre-set service library, and the service module corresponding to the device resource status is determined based on the service list; The device resources corresponding to the service module are invoked to execute the corresponding service scheduling operation.
2. The method according to claim 1, characterized in that, Data collection from the equipment includes: The real-time data collected by the acquisition device includes CPU utilization, memory usage, and real-time bandwidth. The static data of the acquisition device includes storage space and GPU model; The device resource status is determined based on the real-time data and the static data.
3. The method according to claim 2, characterized in that, Determining the device resource status based on the real-time data and the static data specifically includes: The real-time data is analyzed to determine the device's operating load and performance status; The static data is analyzed to determine the hardware configuration and pre-configured capabilities of the device; Based on the analysis results of the real-time data and the analysis results of the static data, the resource status level of the device is determined.
4. The method according to claim 1, characterized in that, The service modules corresponding to the device resource status are determined based on the service list, specifically including: Based on the service list, the resource requirements corresponding to the service module are determined. The device resource status is then compared with the resource requirements through the service module to determine the service module corresponding to the device resource status.
5. The method according to claim 1, characterized in that, Execute the corresponding service scheduling operations, specifically including: The equipment resource status is determined based on a preset resource threshold, and the equipment resource status includes whether the equipment resources are sufficient or the equipment resources are scarce. If the equipment resources are sufficient, the priority of the service module is determined according to the service list, the first priority is determined according to the first threshold, the first service module is determined according to the first priority, and the first service module is started. If equipment resources are scarce, a core priority is determined based on a pre-set second threshold, a core module is determined based on the core priority, and the core module is started.
6. The method according to claim 5, characterized in that, Dynamically adjust the running status of service modules, specifically including: Determine the changes in the device resource status, determine the rate of change of CPU usage frequency based on the changes, and compare the rate of change with a predetermined threshold. If the rate of change is greater than the change threshold, then an enhanced service is determined based on the service list, and the enhanced service is uninstalled.
7. The method according to claim 1, characterized in that, The method further includes: Identify new service modules, add them to the service library, and update the service list based on the new service modules.
8. The method according to claim 1, characterized in that, The method further includes: A pre-defined service scheduling interface is determined, and user adjustment requests are received through the service scheduling interface to adjust the allocation of the service modules according to the adjustment requests.
9. A service scheduling device based on terminal adaptive resources, 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 executable by the at least one processor, which, when executed by the at least one processor, enable the service scheduling device based on terminal adaptive resources to perform the following: Collect equipment data to determine the equipment resource status based on the equipment data; A service list is determined by a pre-set service library, and the service module corresponding to the device resource status is determined based on the service list; The device resources corresponding to the service module are invoked to execute the corresponding service scheduling operation.
10. A non-volatile computer storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are set as follows: Collect equipment data to determine the equipment resource status based on the equipment data; A service list is determined by a pre-set service library, and the service module corresponding to the device resource status is determined based on the service list; The device resources corresponding to the service module are invoked to execute the corresponding service scheduling operation.