System service scheduling method and apparatus, computer device, and storage medium
By generating a system service dependency tree, the task delay problem caused by confusion in system service scheduling is solved, and efficient task execution is achieved.
Patent Information
- Application Number
- PCT/CN2025/073342
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-19
- Filing Date
- 2025-01-20
- Publication Date
- 2025-07-24
AI Technical Summary
In the prior art, the system service scheduling is chaotic, resulting in the problem of task delay.
By using preset models to identify instruction information, generate system service dependency trees, reasonably allocate resources, optimize execution order, and ensure efficient scheduling of system services.
It improves the efficiency of identification of instruction information, ensures the reasonable allocation and effective utilization of system resources, avoids resource waste, and improves the efficiency of task execution.
Smart Images

Figure CN2025073342_24072025_PF_FP_ABST
Abstract
Description
System service scheduling method, device, computer equipment and storage medium Cross-references
[0001] This application refers to Chinese patent application No. 202410081753.3, filed on January 19, 2024, entitled “System service scheduling method, device, computer equipment and storage medium”, which is incorporated into this application in its entirety by reference. Technical Field
[0002] The present invention relates to the field of computer technology, and in particular to a system service scheduling method, device, computer equipment and storage medium. Background Art
[0003] The instruction execution process of smart devices may involve scheduling and executing between multiple system services. However, in the existing technology, after the model sends the task to the device-side interaction engine, the interaction engine will call the corresponding system service to implement the task. Task delays may occur due to thread preemption between different system services. Summary of the Invention
[0004] In view of this, the present invention provides a system service scheduling method, apparatus, computer equipment and storage medium to solve the problem of task delay caused by confusion in system service scheduling when executing instructions.
[0005] In a first aspect, the present invention provides a system service scheduling method, the method comprising:
[0006] Use the preset model to identify pre-acquired instruction information and determine the user's intention;
[0007] Identifying a task list included in the user intention, where the task list includes task information and system service information corresponding to the task information, where the task information corresponds to at least one system service information;
[0008] generating a system service dependency tree according to the task information, the at least one system service information, and the relationship between each piece of system service information;
[0009] Schedule system services and execute instruction information based on task information and system service dependency tree.
[0010] Beneficial effects: using a preset model to identify pre-acquired instruction information, determining user intent, and improving the efficiency of instruction information recognition; identifying a task list in user intent, wherein the task list includes task information and system service information corresponding to the task information, and generating a system service dependency tree based on the task information, at least one system service information, and the relationship between each system service information, which can ensure the reasonable allocation and effective utilization of system resources and avoid waste of resources; scheduling system services and executing instruction information based on the task information and the system service dependency tree, thereby improving the execution efficiency of tasks.
[0011] In an optional embodiment, before scheduling the system service and executing the instruction information according to the task information and the system service dependency tree, the method further includes:
[0012] Clear and / or stop system service processes except those in the system service dependency tree;
[0013] Alternatively, the priority of the execution order of the system service in the system service dependency tree is set to be the first execution among all system service processes.
[0014] In an optional implementation, scheduling system services and executing instruction information based on task information and a system service dependency tree specifically includes:
[0015] Start all system services in the system service dependency tree according to the system service dependency tree;
[0016] According to the task information and the system service dependency tree, the system service execution instruction information is scheduled in sequence.
[0017] In an optional implementation, starting all system services in the system service dependency tree according to the system service dependency tree specifically includes:
[0018] Generate system service system instructions according to the execution order between system services in the system service dependency tree;
[0019] According to the system service system instructions, all system services corresponding to the system service dependency tree are started in sequence.
[0020] In an optional implementation, the instruction information is executed in AOT mode.
[0021] In a second aspect, the present invention provides a system service scheduling device, the device comprising:
[0022] The intention determination module is used to identify the pre-acquired instruction information using a preset model and determine the user's intention;
[0023] A task identification module is used to identify a task list included in the user's intention, where the task list includes task information and system service information corresponding to the task information, where the task information corresponds to at least one system service information;
[0024] A dependency tree determination module is configured to generate a system service dependency tree based on task information, at least one system service information, and a relationship between each system service information;
[0025] The execution instruction module is used to schedule system services and execute instruction information based on task information and system service dependency tree.
[0026] In an optional embodiment, before scheduling the system service and executing the instruction information according to the task information and the system service dependency tree, the apparatus is further configured to:
[0027] Clear and / or stop system service processes except those in the system service dependency tree;
[0028] Alternatively, the priority of the execution order of the system service in the system service dependency tree is set to be the first execution among all system service processes.
[0029] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the system service scheduling method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0030] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the system service scheduling method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] FIG1 is a flow chart of a system service scheduling method according to an embodiment of the present invention;
[0033] FIG2 is a flowchart of another system service scheduling method according to an embodiment of the present invention;
[0034] FIG3 is a schematic diagram of a system service scheduling method according to an embodiment of the present invention;
[0035] FIG4 is a schematic diagram of a system service scheduling method according to an embodiment of the present invention;
[0036] 5 is a structural block diagram of a system service scheduling device according to an embodiment of the present invention;
[0037] FIG6 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0039] In this embodiment, a system service scheduling method is provided. FIG1 is a flowchart of the system service scheduling method according to an embodiment of the present invention. The method can be applied to mobile phones, computers, and other smart devices. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Moreover, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in a different order than shown here.
[0040] As shown in Figure 1, the process of the system service scheduling method includes the following steps:
[0041] Step S101: using a preset model to identify pre-acquired instruction information and determine the user's intention.
[0042] For example, a preset model can recognize user instructions. The preset model is trained using a known user intent dataset to enable it to learn and recognize user intent. Specifically, this can involve the application of machine learning or deep learning algorithms to improve the accuracy of the model's recognition of user intent.
[0043] After obtaining the raw instruction information, it can be cleaned, filtered, and formatted as necessary to facilitate subsequent processing and analysis. This may include removing irrelevant information, correcting erroneous data, and unifying data formats. Features relevant to user intent are extracted from the preprocessed instruction information. These features can be in the form of text, sound, images, etc., depending on the specific instruction information and how the user intent is represented. The purpose of feature extraction is to convert the raw data into feature vectors that can be used for model training and recognition.
[0044] The pre-processed instruction information is input into the trained model for processing. Through model analysis and inference, the user intent is identified. Specifically, this may include technologies such as natural language processing, speech recognition, and image recognition, depending on the specific application scenario and user input form. The identified user intent is output in an appropriate form to facilitate subsequent processing and execution. This may include generating corresponding instructions, recommendations, feedback, and other operations, depending on the specific application requirements.
[0045] Step S102 : identifying a task list included in the user intention, wherein the task list includes task information and system service information corresponding to the task information, and the task information corresponds to at least one system service information.
[0046] For example, a user's intent might be "send a YY image to user XX on WeChat." The corresponding task information would be "send the image to user XX on WeChat," and the corresponding system service information would be the image system, image recognition system, and WeChat system. In other words, one task information corresponds to at least one system service information. Specifically, natural language generation technology can be used to convert task information into natural language instructions or requests. By combining this with natural language processing technology, the system service corresponding to the user's intent can be determined.
[0047] Step S103: Generate a system service dependency tree based on the task information, the at least one piece of system service information, and the relationship between each piece of system service information.
[0048] Illustratively, constructing a system service dependency tree can more accurately and clearly determine the execution relationship between task information and system services, as well as the dependency relationship between system services.
[0049] Specifically, a graph model can be used to represent the dependencies between system services. Nodes in the graph model represent system services, and edges represent the dependencies between services. Based on task information and system service information, an initial graph model is constructed to connect related system services. The inputs and outputs of each system service are further analyzed to determine their dependencies and order. Based on the analysis results, the graph model is optimized and adjusted to determine the final system service dependency tree.
[0050] Step S104: Schedule system services and execute instruction information according to the task information and the system service dependency tree.
[0051] For example, according to the order of each system service in the system service dependency tree, the corresponding data information can be determined. According to the instruction information corresponding to each system service, the task information here can be identifying YY pictures, opening the picture system, and opening WeChat and sending YY pictures.
[0052] Specifically, the system service dependency tree is converted into a directed graph, where each node represents a service and the edges in the graph represent the service dependencies. A graph algorithm (such as topological sort) is used to traverse the graph and determine the order in which services should be executed. Based on the algorithm's results, the services are scheduled and the instructions are executed.
[0053] In a preferred embodiment, before step S104, system service processes other than the system services in the system service dependency tree may be cleared and / or stopped;
[0054] Alternatively, the priority of the execution order of the system service in the system service dependency tree is set to be the first execution among all system service processes.
[0055] This is more conducive to ensuring the execution timeliness of the corresponding system services in the system service dependency tree and avoiding task delays.
[0056] In a preferred embodiment, the above step S104 specifically includes:
[0057] Step S1041, starting all system services in the system service dependency tree according to the system service dependency tree;
[0058] For example, an event-driven architecture can be established, where tasks act as events to trigger the execution of other related services. Based on task information and the system service dependency tree, the triggering conditions for the event and the response logic of the related services are determined. When an event is triggered, the related services are executed according to the predefined logic. This approach enables rapid response to changes and events.
[0059] In a preferred embodiment, as shown in FIG2 , the above step S1041 includes:
[0060] Step a1, generating system service system instructions according to the execution order between system services in the system service dependency tree;
[0061] Step a2: According to the system service system instruction, all system services corresponding to the system service dependency tree are started in sequence.
[0062] For example, the system service dependency tree is traversed to determine the execution order and dependency relationships of each service. Based on the execution order and dependency relationships, corresponding system service system instructions are generated. Each instruction should contain information such as the service identifier, startup parameters, and dependency relationships.
[0063] Start the corresponding system services in sequence according to the order of system service instructions. Use the system's service management tools or scripts to start and manage services. Configure and initialize each service based on its startup parameters and dependencies. Ensure the normal operation of the service and its interoperability with other services. During the service startup process, monitor the service status and performance indicators to ensure service stability and reliability. If errors or exceptions occur during the startup process, perform appropriate error handling and log records to facilitate subsequent troubleshooting and resolution.
[0064] Step S1042: Schedule the system service execution instruction information in sequence according to the task information and the system service dependency tree.
[0065] For example, when an event is triggered, related services are executed according to predefined logic. This approach allows for rapid response to changes and events. Event triggering here means executing instructions in the order of the system service dependency tree, thus realizing user intent in a timely manner, avoiding the problem of chaotic execution order, and improving execution efficiency and accuracy.
[0066] The above embodiment is further explained below with a specific example. FIG3 is a schematic diagram of the execution process of a task in the prior art. The instruction process is:
[0067] 1) After the large model identifies the user's intent, it issues a task list;
[0068] 2) The local human-computer interaction engine calls the corresponding system service to complete the task execution;
[0069] 3) During the execution process, if the system service is not started, or the service that the service depends on is not started, start the corresponding services in sequence, and then continue to complete the execution of the task.
[0070] Figure 4 is a schematic diagram of the task execution process described in the above embodiment. Before a task is executed, it is necessary to generate a dependency graph of the system services that the task depends on; start the dependent system services in advance (to avoid JIT); increase the priority of the dependent system services to avoid preemption; and clear out useless background applications and services to free up computing power and memory.
[0071] For example, 1) User instruction: Please send the photo of the puppy I took yesterday to Kevin.
[0072] 2) After the large model is parsed, the task is sent to the interaction engine
[0073] 3) The interaction engine passes the task to the DGM
[0074] 4) DGM analysis generates system services that the task depends on.
[0075] For example, it relies on the photo application (not started), relies on WeChat (not started), and relies on the image recognition service (not started)
[0076] 1) DGM initiates parallel messages to synchronously start the above two applications and one system service and increase their process priority;
[0077] 2) DGM clears inactive background applications such as system settings and TikTok to free up computing power and memory;
[0078] 3) DGM calls the corresponding service / application to complete the task issued by the large model.
[0079] The system service scheduling method provided in this embodiment uses a preset model to identify pre-acquired instruction information, determine user intentions, and improve the efficiency of identifying instruction information; identify the task list in the user intention, where the task list includes task information and system service information corresponding to the task information, and generate a system service dependency tree based on the task information, at least one system service information, and the relationship between each system service information, which can ensure the reasonable allocation and effective utilization of system resources and avoid waste of resources; schedule system services and execute instruction information based on the task information and the system service dependency tree, thereby improving the execution efficiency of tasks.
[0080] In this embodiment, a system service scheduling device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments. The details that have been described will not be repeated here. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0081] This embodiment provides a system service scheduling device, as shown in FIG5 , which includes:
[0082] Intention determination module 501, used to identify pre-acquired instruction information using a preset model and determine user intention;
[0083] The task identification module 502 is used to identify a task list included in the user's intention, wherein the task list includes task information and system service information corresponding to the task information, wherein the task information corresponds to at least one system service information;
[0084] Determine dependency tree module 503, for generating a system service dependency tree based on task information, at least one system service information and the relationship between each system service information;
[0085] The instruction execution module 504 is used to schedule system services and execute instruction information according to the task information and the system service dependency tree.
[0086] In some optional implementations, before scheduling the system service and executing the instruction information according to the task information and the system service dependency tree, the apparatus is further configured to:
[0087] Clear and / or stop system service processes except those in the system service dependency tree;
[0088] Alternatively, the priority of the execution order of the system service in the system service dependency tree is set to be the first execution among all system service processes.
[0089] In some optional implementations, executing the instruction module specifically includes:
[0090] Start the system unit, which is used to start all system services in the system service dependency tree according to the system service dependency tree;
[0091] The scheduling execution unit is used to schedule the system service execution instruction information in sequence according to the task information and the system service dependency tree.
[0092] In some optional implementations, starting the system unit specifically includes:
[0093] A scheduling instruction generation subunit is used to generate system service system instructions according to the execution order between system services in the system service dependency tree;
[0094] The startup system subunit is used to start all system services corresponding to the system service dependency tree in sequence according to the system service system instructions.
[0095] In some optional implementations, the instruction information is executed in AOT mode.
[0096] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0097] The system service scheduling device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0098] An embodiment of the present invention further provides a computer device having the system service scheduling device shown in FIG. 5 .
[0099] Please refer to Figure 6, which is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention. As shown in Figure 6, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, with each device providing some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 takes a processor 10 as an example.
[0100] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0101] The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to execute the method shown in the above embodiment.
[0102] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0103] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0104] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0105] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0106] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A system service scheduling method, characterized in that, The method includes: Identifying pre-acquired instruction information using a preset model to determine the user intent; Identifying a task list included in the user intent, where the task list includes task information and system service information corresponding to the task information, and the task information corresponds to at least one system service information; Generating a system service dependency tree according to the task information, the at least one system service information, and the mutual relationship between each system service information; Scheduling the system service and executing the instruction information according to the task information and the system service dependency tree.
2. The method according to claim 1, characterized in that, Before scheduling the system service and executing the instruction information according to the task information and the system service dependency tree, the method further includes: Clearing and / or stopping system service processes other than the system services in the system service dependency tree; Or, setting the priority of the execution order of the system services in the system service dependency tree to be the priority execution among all system service processes.
3. The method according to claim 1 or 2, characterized in that, The scheduling the system service and executing the instruction information according to the task information and the system service dependency tree specifically includes: Starting all the system services in the system service dependency tree according to the system service dependency tree; Scheduling the system service to execute the instruction information in sequence according to the task information and the system service dependency tree.
4. The method according to claim 3, characterized in that, The starting all the system services in the system service dependency tree according to the system service dependency tree specifically includes: Generating system service system instructions according to the execution order between the system services in the system service dependency tree; Starting all the system services corresponding to the system service dependency tree in sequence according to the system service system instructions.
5. The method according to claim 4, wherein Executing the instruction information in AOT mode.
6. A system service scheduling device, characterized in that, The device includes: An intent determination module for identifying pre-acquired instruction information using a preset model to determine the user intent; A task identification module for identifying a task list included in the user intent, where the task list includes task information and system service information corresponding to the task information, and the task information corresponds to at least one system service information; A dependency tree determination module for generating a system service dependency tree according to the task information, the at least one system service information, and the mutual relationship between each system service information; An instruction execution module for scheduling the system service and executing the instruction information according to the task information and the system service dependency tree.
7. The device according to claim 6, characterized in that, Before scheduling the system service and executing the instruction information according to the task information and the system service dependency tree, the device is further used for: Clearing and / or stopping system service processes other than the system services in the system service dependency tree; Or, setting the priority of the execution order of the system services in the system service dependency tree to be the priority execution among all system service processes.
8. A computer device, characterized in that, It includes: A memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the system service scheduling method according to any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to execute the system service scheduling method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Service scheduling method and device and robot service system
CN106777135A
Service orchestration method, service orchestration system, storage medium and electronic equipment
CN116938931A
Information processing method, information processing device, computer equipment and storage medium
CN117273017A
Automated chatbot generation from an interactive voice response tree
US20230020613A1