A task scheduling method based on an education network and an electronic device
By enabling devices in the education network to autonomously participate in scheduling decisions, and analyzing the teaching load based on the cached information and task priorities of multi-level teaching tasks, the problem of single point of failure and task allocation imbalance caused by centralized scheduling in the education scenario is solved, thereby improving the utilization rate of equipment resources and the effectiveness of education services.
Patent Information
- Application Number
- CN202611636821.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-20
AI Technical Summary
Existing distributed teaching task scheduling schemes in educational scenarios suffer from single points of failure, performance bottlenecks, and unbalanced task allocation caused by centralized scheduling. Especially in a campus multi-device peer-to-peer networking environment, the central device is overloaded, and the task allocation among devices is unbalanced, resulting in some devices accumulating tasks and others having idle computing power.
A task scheduling method based on the education network is adopted, in which devices in the education network autonomously participate in scheduling decisions. By utilizing the cache information and task priority of multi-level teaching tasks, the impact of teaching load is analyzed, target teaching load information is generated, and autonomous load assessment and task allocation among devices are realized, avoiding dependence on central scheduling equipment.
It effectively improved the problem of unbalanced task allocation, enhanced the utilization rate of campus computing resources, ensured the service effect and user experience of inference tasks in educational scenarios, and avoided device task congestion and idle computing power.
Smart Images

Figure CN123137946A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of educational technology, and in particular to a task scheduling method and electronic device based on an educational network. Background Technology
[0002] With the implementation of smart education, personalized teaching, intelligent Q&A, homework grading, and learning analysis, large language models are being deployed extensively in school computer labs and smart classroom edge devices to handle various artificial intelligence (AI) inference tasks initiated by teachers and students. These AI inference tasks include student Q&A, subjective question grading, teaching material generation, and learning diagnosis—teaching tasks in educational scenarios. Teaching tasks in educational scenarios exhibit significant burst concurrency characteristics. Periods of concentrated classroom questioning and batch homework submission generate a large number of teaching task requests instantaneously. The computing power of a single device cannot handle the entire workload. Therefore, a multi-device distributed collaborative inference architecture is commonly adopted, distributing teaching tasks to multiple inference nodes to complete the computation together. This reduces the load on a single device, shortens inference response latency, and ensures a real-time learning experience.
[0003] Most existing distributed teaching task scheduling solutions in educational scenarios adopt a centralized scheduling architecture with a central device. The central scheduling node collects the global device status, receives all teaching tasks, and then distributes these tasks to individual slave devices for inference computation. This model heavily relies on the central device to handle all load data collection, task allocation, and routing decisions, with slave devices passively receiving tasks and performing inference computation. However, in actual campus environments, distributed teaching task scheduling solutions using a centralized scheduling architecture have several drawbacks: First, the scheduling of teaching tasks depends entirely on the central device, which needs to collect the operating status of all slave devices and handle all AI inference task requests. When concurrent requests surge during class, the central device is prone to becoming a performance bottleneck. Furthermore, if the central device lags or malfunctions, it will directly lead to interruptions in educational services such as Q&A and homework grading, resulting in poor overall reliability. Second, the load assessment logic is centrally deployed on the central device, with slave devices passively executing the distributed inference tasks. They cannot perform autonomous quantitative assessments of the number and priority distribution of tasks in their own multi-level task queues; they can only report basic hardware usage data. Third, the data collected by the central equipment is mostly coarse-grained hardware metrics such as GPU utilization and CPU usage, which cannot reflect the accumulation of teaching tasks within the equipment.
[0004] In educational settings, teaching tasks of varying priorities occur concurrently. Relying on coarse-grained hardware metrics for task allocation can easily lead to task overload on some devices while other devices suffer from idle and wasted computing power, resulting in an imbalanced task allocation. Furthermore, existing centralized scheduling architectures suffer from performance bottlenecks and poor reliability, and lack a peer-to-peer bidding mechanism between devices, making them unsuitable for deployments requiring multi-device peer-to-peer networking on campuses. Therefore, there is an urgent need for a task scheduling solution adapted to multi-device peer-to-peer networking on campuses to address the single point of failure, performance bottlenecks, and task allocation imbalances caused by centralized scheduling. Summary of the Invention
[0005] In view of this, this application provides a task scheduling method and electronic device based on an education network, the main purpose of which is to improve the technical problems of single point of failure, performance bottleneck and task allocation imbalance caused by centralized scheduling in the existing education scenario.
[0006] In a first aspect, this application provides a task scheduling method based on an educational network, applied to a first device; comprising: In response to a task bidding request for a scheduled teaching task broadcast by the second device in the education network, cache information of multi-level teaching tasks in the first device is determined, wherein the first device and the second device include student devices and / or teacher devices in the education network; Based on the task priorities of the multi-level teaching tasks and the teaching tasks to be scheduled, determine the target teaching task among the multi-level teaching tasks whose task priority is higher than or equal to that of the teaching task to be scheduled. Based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, analyze the degree of impact of the teaching task to be scheduled on the teaching load of the first device, and generate the target teaching load information of the first device based on the degree of impact of the teaching load. The target teaching load information is used as a bidding response message for the task bidding request, and the bidding response message is sent to the second device. The bidding response message is used by the second device to determine the target device for processing the teaching task to be scheduled from among multiple first devices in the education network.
[0007] Secondly, this application provides a task scheduling method based on an educational network, applied to a second device, comprising: Broadcasting task bidding requests for scheduled teaching tasks to multiple first devices in the education network, wherein the first devices and second devices include student devices and / or teacher devices in the education network; The system receives bidding response messages corresponding to the task bidding requests sent by multiple first devices. The bidding response messages contain the target teaching load information of the first devices. The target teaching load information is generated based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, by analyzing the degree of influence of the teaching task to be scheduled on the teaching load of the first devices. The target teaching task is a teaching task in the multi-level teaching tasks of the first devices whose task priority is higher than or equal to the teaching task to be scheduled. Based on the bidding response messages from multiple first devices, a target device for processing the teaching task to be scheduled is determined from among the multiple first devices in the education network.
[0008] Optionally, the bidding response message may also include device status information, which includes one of the following: idle status, busy status, and resource reservation status of the corresponding first device. The step of determining the target device for processing the teaching task to be scheduled from among the multiple first devices in the education network based on the bidding response messages of multiple first devices includes: Based on the device status information of multiple first devices, the first devices in the idle state and the busy state are selected as candidate devices; If the candidate devices include a first device in an idle state, the target device for processing the teaching task to be scheduled is determined from the first device in the idle state. If the candidate devices do not include an idle first device, the target device for processing the scheduled teaching task is determined from the busy first devices based on the target teaching load information of the busy first devices.
[0009] Optionally, the method further includes: An authorization message is sent to the target device in the education network, the authorization message carrying task execution instruction information for the teaching task to be scheduled; Obtain the response message corresponding to the authorization message sent by the target device, wherein the response message carries identification information indicating that the target device has successfully reserved local execution resources; Based on the identification information, a confirmation execution message for the teaching task to be scheduled is sent to the target device, and the confirmation execution message carries the teaching task to be scheduled.
[0010] Thirdly, this application provides a task scheduling device based on an educational network, applied to a first device, comprising: The response module is configured to respond to a task bidding request for a scheduled teaching task broadcast by the second device in the education network, and to determine the cache information of multi-level teaching tasks in the first device, wherein the first device and the second device include student devices and / or teacher devices in the education network. The determination module is configured to determine, based on the task priorities of the multi-level teaching tasks and the teaching tasks to be scheduled, the target teaching task whose task priority is higher than or equal to that of the teaching task to be scheduled. The analysis module is configured to analyze the impact of the teaching task to be scheduled on the teaching load of the first device based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, and generate the target teaching load information of the first device based on the impact of the teaching load. The first sending module is configured to send the target teaching load information as a bidding response message to the task bidding request and send the bidding response message to the second device. The bidding response message is used by the second device to determine the target device for processing the teaching task to be scheduled from among a plurality of first devices in the education network.
[0011] Fourthly, this application provides a task scheduling device based on an educational network, applied to a second device, comprising: The second sending module is configured to broadcast task bidding requests for scheduled teaching tasks to a plurality of first devices in the education network, wherein the first devices and the second devices include student devices and / or teacher devices in the education network. The receiving module is configured to receive bidding response messages corresponding to the task bidding requests sent by the first device. The bidding response messages contain the target teaching load information of the first device. The target teaching load information is generated based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, by analyzing the degree of influence of the teaching task to be scheduled on the teaching load of the first device. The target teaching task is a teaching task in the multi-level teaching tasks of the first device whose task priority is higher than or equal to the teaching task to be scheduled. The selection module is configured to determine the target device for processing the scheduled teaching task from among the multiple first devices in the education network based on the bidding response messages of multiple first devices.
[0012] Fifthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the task scheduling method based on the first or second aspect.
[0013] In a sixth aspect, this application provides an electronic device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the computer program to implement the task scheduling method based on the education network described in the first or second aspect.
[0014] In a seventh aspect, this application provides a computer program product, which includes a computer program that, when executed by a processor, implements the task scheduling method based on an educational network as described in the first or second aspect.
[0015] By employing the above technical solution, this application provides a task scheduling method and electronic device based on an educational network. Compared with existing technologies, this application broadcasts task bidding requests through a second device, allowing each first device to autonomously participate in scheduling decisions. Since the first and second devices are student and / or teacher devices within the educational network, and all devices in the network have equal status, it can eliminate dependence on a central scheduling device and avoid concurrency bottlenecks and single points of failure caused by a central node. Furthermore, this application, through the first device responding to task bidding requests, determines the cache information of local multi-level teaching tasks and filters out target teaching tasks with a priority higher than or equal to the teaching task to be scheduled. Then, combining the task priority of the teaching task to be scheduled and the cache information of the target teaching task, it analyzes the impact of the teaching task to be scheduled on its own teaching load and generates target teaching load information as a bidding response. In this way, the first device possesses autonomous load assessment capabilities, overcoming the technical shortcomings of traditional slave devices that cannot autonomously assess load or participate in scheduling decisions. Furthermore, this application conducts load analysis based on the cache information and task priority of multi-level teaching tasks, which can accurately reflect the actual task backlog status inside the device. This allows the second device to select the most suitable target device for handling the scheduled teaching tasks based on the target teaching load information fed back by each first device, thereby effectively improving the problem of task allocation imbalance, avoiding the situation where some devices are congested and others have idle computing power, improving the utilization rate of campus computing resources, and ensuring the service effect and user experience of reasoning tasks in educational scenarios such as Q&A, essay correction, and learning analysis. Attached Figure Description
[0016] 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.
[0017] 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.
[0018] Figure 1 A schematic diagram of the architecture of an educational network provided in an embodiment of this application is shown; Figure 2 A flowchart illustrating a task scheduling method based on an educational network provided in an embodiment of this application is shown. Figure 3 A flowchart illustrating another task scheduling method based on an educational network provided in an embodiment of this application is shown. Figure 4 The diagram illustrates the execution flow of a low-priority task scheduling strategy provided in an embodiment of this application. Figure 5 The diagram illustrates the execution flow of a high-priority task scheduling strategy provided in an embodiment of this application. Figure 6 This illustration shows a schematic diagram of the execution flow for obtaining device queue information interaction according to an embodiment of this application; Figure 7 This illustration shows a schematic diagram of an execution flow for selecting a target device according to an embodiment of this application; Figure 8 A schematic diagram illustrating the execution flow of a teaching task provided in an embodiment of this application is shown; Figure 9 This illustration shows a schematic diagram of the structure of a task scheduling device based on an education network according to an embodiment of this application; Figure 10 This invention provides a schematic diagram of another task scheduling device based on an educational network according to an embodiment of the present application. Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0019] The embodiments of this application will now be described in more detail with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0020] To address the technical issues of single point of failure, performance bottlenecks, and task allocation imbalance caused by centralized scheduling in existing educational scenarios, this embodiment provides a task scheduling method based on an educational network. This method is applied to a first device, which can be any device within the educational network.
[0021] The educational network described in this application is, for example, a decentralized peer-to-peer network constructed using a multi-device peer-to-peer architecture on a campus. This network employs a Multicast Domain Name System (mDNS) to automatically discover services among inference nodes (devices) within the network. Data exchange between inference nodes is achieved via point-to-point communication links based on the Transmission Control Protocol (TCP). A heartbeat mechanism maintains the validity of communication connections between inference nodes within the network, promptly detecting node offline or fault states. The network supports the sharing of queue depth information (cache information) and the broadcasting of node state changes. When the local multi-level First-In, First-Out (FIFO) queue cache state or the device's operating state changes, the device can broadcast the state change message externally. Simultaneously, the device can obtain queue depth information from other nodes as needed, providing network layer support for peer-to-peer bidding and scheduling.
[0022] like Figure 1 The diagram illustrates the architecture of an educational network. This network comprises multiple inference nodes (devices A, B, C, and D). Each inference node deploys a large model inference unit, a local FIFO queue, and a Local Scheduling Agent (LSA). In this network, any device can act as either a first or second device. When a device generates a teaching task, it acts as the second device, broadcasting a task bidding request to the network. The remaining devices receiving this broadcast message act as the first devices, performing local load assessments and returning bidding response messages. The educational network does not have a dedicated central scheduling node; scheduling capabilities are distributed across the LSAs of each device.
[0023] The method described in this application can be deployed in the LSA of any inference node within an educational network. When a node acts as the first device, its LSA performs local load assessment and sends back bidding response messages. When a node acts as the second device, its LSA performs task bidding request broadcasting, bidding response message collection, and target device filtering. For ease of description, the following will describe the method flow of this application using the device as the execution entity. Those skilled in the art will understand that all processing logic on the device side described below is actually executed by the LSA inside the device.
[0024] The teaching tasks described in this application are, for example, AI reasoning tasks for educational scenarios. These AI reasoning tasks include, for example, answering student questions about knowledge points, grading subjective questions, generating teaching materials, and reasoning tasks for diagnosing student learning. The teaching tasks are performed by large model reasoning units within the nodes.
[0025] The local FIFO queue described in this application is used to cache teaching tasks of different priorities. When a node is busy and cannot process newly arrived tasks in a timely manner, or when task preemption occurs, the teaching task will enter the corresponding priority FIFO queue to wait. The LSA reads the cached information of the teaching tasks in the queue, which is used as the basis for load assessment.
[0026] like Figure 2 The diagram shown illustrates a task scheduling method based on an educational network. The method includes: Step 101: In response to the task bidding request for the teaching task to be scheduled broadcast by the second device in the education network, determine the cache information of the multi-level teaching tasks in the first device.
[0027] The first and second devices include student devices and / or teacher devices within the education network. For example, any student or teacher device within the education network can act as either a second device generating teaching tasks to be scheduled and initiating task bidding requests externally, or as a first device receiving broadcast requests and performing local load assessment. When a teacher device needs to process batch assignment grading and reasoning tasks, it acts as a second device, broadcasting task bidding requests to the entire education network. Upon receiving this broadcast message, other idle or busy teacher and student devices within the network all act as first devices, reading their own local multi-level teaching task cache information and conducting load assessment processes.
[0028] In this embodiment of the application, the task bidding request can be a message sent by the second device to each device in the education network via multicast. The message carries at least the identifier of the teaching task to be scheduled and the task priority level. It can also carry information such as task type and task data according to actual business needs, so that the first device that receives the request can conduct local load assessment.
[0029] In the embodiments of this application, the first device receives a task bidding request broadcast by the second device via a TCP communication link in the education network. After the second device completes node discovery within the education network, it broadcasts the task bidding request to the local area network. The first device listens for and receives this broadcast message through the communication link, and then determines the local cache information of multi-level teaching tasks. For example, the first device locally contains multi-level task queues, each level of task queue corresponding to a task priority, and the queue depth characterizes the total number of teaching tasks in the corresponding queue that are currently being executed or waiting to be executed. The first device reads the queue depth of each priority queue to obtain the cache information of multi-level teaching tasks.
[0030] In the above example, the multi-level task queue can be configured with three levels: P0, P1, and P2. The smaller the priority value, the higher the task priority; that is, P0 has a higher priority than P1, and P1 has a higher priority than P2. The P0 queue stores urgent inference requests, real-time interactive tasks, and critical business requests with a priority value of 0; the P1 queue stores regular inference requests, general interactive tasks, and ordinary business requests with a priority value of 1; and the P2 queue stores batch inference requests, background processing tasks, and non-urgent requests with a priority value of 2. High-priority tasks have task preemption capabilities; a P0 task can preempt tasks P1 and P2, and a P1 task can preempt tasks P2. It should be noted that this application is not limited to the above three-level queue; those skilled in the art can extend the configuration to include more priority levels such as P3 and P4 according to actual business needs.
[0031] In educational scenarios, the P0 queue can handle urgent interactive reasoning tasks such as real-time classroom Q&A; the P1 queue can handle routine reasoning tasks such as grading students' daily homework; and the P2 queue can handle non-urgent background tasks such as batch student learning statistics and batch document parsing.
[0032] Step 102: Based on the task priorities of the multi-level teaching tasks and the teaching tasks to be scheduled, determine the target teaching task in the multi-level teaching tasks whose task priority is higher than or equal to that of the teaching task to be scheduled.
[0033] In the embodiments of this application, the target teaching task is all teaching tasks within the local multi-level task queue of the first device, with a priority not lower than the currently scheduled teaching task. For example, if the scheduled teaching task has a priority of P1, the task priority in queue P0 is higher than P1, the task priority in queue P1 is equal to P1, and the task priority in queue P2 is lower than P1, then the teaching tasks stored in queues P0 and P1 are the target teaching tasks. If the scheduled teaching task has a priority of P2, then all teaching tasks in queues P0, P1, and P2 are target teaching tasks. If the scheduled teaching task has a priority of P0, then only the teaching tasks within queue P0 are target teaching tasks.
[0034] After determining the target teaching task, the first device obtains the cache information corresponding to that target teaching task by reading the queue depth of the corresponding priority task queue. For example, when the teaching task to be scheduled is of priority P1, the target teaching task corresponds to queues P0 and P1. The first device reads the queue depths of queues P0 and P1 respectively and uses the queue depths of queues P0 and P1 as the cache information of the target teaching task in this scenario. If the teaching task to be scheduled is of priority P0, only the queue depth of queue P0 is read to obtain the cache information corresponding to the target teaching task. If the teaching task to be scheduled is of priority P2, the queue depths of queues P0, P1, and P2 are read simultaneously as the cache information of the target teaching task.
[0035] Step 103: Based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, analyze the degree of impact of the teaching task to be scheduled on the teaching load of the first device, and generate the target teaching load information of the first device based on the degree of impact of the teaching load.
[0036] The target teaching load information represents the suitability of the first device for the scheduled teaching task. This suitability can be quantified, for example, through multiple influence dimensions representing the impact of the teaching load, comprehensively reflecting three aspects: the load capacity of the first device to handle the scheduled teaching task, the risk of high-priority task preemption faced by the scheduled teaching task, and the scale of the waiting backlog of existing tasks within the device. If the queue depth corresponding to the target teaching task is small, it means that there is less task backlog and lower preemption risk within the device, and the suitability represented by the target teaching load information is higher, making the first device more suitable for undertaking the scheduled teaching task. Conversely, if the queue depth corresponding to the target teaching task is large, it indicates that the device already has a large number of high-priority or same-priority tasks queuing, resulting in high task backlog pressure and a low suitability, making it unsuitable for undertaking the scheduled teaching task.
[0037] In one implementation, the first device performs load assessment based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, from several impact dimensions such as load pressure, preemption execution risk, and task backlog scale. The device combines the weight coefficients corresponding to each dimension to obtain the degree of impact of the teaching load, and then generates the target teaching load information.
[0038] Taking an educational scenario as an example, if the current teaching task to be scheduled is a student homework grading task at level P1, the first device reads the depths of queues at levels P0 and P1, and completes a comprehensive assessment based on the aforementioned impact dimensions. For queue P0, which contains teaching tasks with higher priority than the teaching task to be scheduled, it is mainly used to assess the risk of the teaching task being preempted; the greater the depth of queue P0, the higher the likelihood of subsequent task preemption. For queue P1, which contains teaching tasks with the same priority as the teaching task to be scheduled, it is mainly used to assess the load on the first device for handling this teaching task, as well as the scale of task backlog caused by tasks of the same and higher priority.
[0039] It should be noted that this application is not limited to the above three influencing dimensions, and the number of dimensions and weight coefficients can be adjusted adaptively according to the actual business scenario.
[0040] Step 104: Use the target teaching workload information as the bidding response message for the task bidding request, and send the bidding response message to the second device.
[0041] Among them, the bidding response message is used by the second device to determine the target device for processing the teaching task to be scheduled from multiple first devices in the education network.
[0042] In this embodiment, the first device, relying on the TCP communication link of the education network, returns a bidding response message to the second device that initiated the task. This bidding response message carries at least the target teaching load information generated by the first device, and may also include the device's current operating status, such as idle status, busy status, and resource reservation status. After receiving all or some of the bidding response messages from the first devices within the education network, the second device, based on the target teaching load information and device status of each device, selects and determines the target execution device to undertake the scheduled teaching task.
[0043] For example, the bidding response message is a point-to-point reply message. The first device no longer broadcasts the message outwards but only replies to the second device that initiated the task bidding request. For instance, when the second device initiates a bidding request for a P1 priority homework grading task, multiple first devices on the local area network each complete their local load assessment and obtain target teaching load information. Then, each first device replies to the second device point-to-point with a bidding response message, carrying its own target teaching load information and its idle or busy status. The second device collects the messages reported by each first device and prioritizes filtering candidate devices that are idle. If there are no idle devices, it selects the device with the highest suitability represented by the target teaching load information from the busy devices as the target execution device. If multiple candidate devices have the same suitability, the second device prioritizes selecting its own device as the target execution device. It should be understood that auxiliary fields such as device identifiers and timestamps can be added to the message as needed for business purposes, and this application does not limit this.
[0044] Taking an educational scenario as an example, the teacher's device (the teacher's device) acts as the second device, submitting a batch of P1 inference tasks for grading student subjective assignments and broadcasting a task bidding request to the campus LAN education network. The other three inference nodes in the network, device A, device B, and device C, act as the first devices, each reading their own P0 and P1 queue depths and performing load assessments locally: device A currently has no queued tasks and is in an idle state, with the highest suitability for the target teaching load information representation; device B is currently processing P0-level real-time classroom Q&A tasks and is in a busy state, with a lower suitability; device C is currently processing P2-level batch learning statistics backend tasks and is in a busy state, with a suitability between device A and device B. The three first devices each return bidding response messages to the teacher's second device point-to-point. After receiving all response messages, the second device prioritizes filtering idle candidate devices, identifies device A as an idle device, and directly selects device A as the target execution device for this assignment grading task. Subsequently, it issues task execution instructions to device A, and device A's large model inference unit completes the student assignment grading inference work.
[0045] In addition, this embodiment also provides a task scheduling method based on an educational network, which is applied to a second device. For example... Figure 3 The diagram shows another task scheduling method based on an educational network, which includes: Step 201: Broadcast task bidding requests for teaching tasks to be scheduled to multiple primary devices in the education network.
[0046] The first and second devices include student devices and / or teacher devices in the education network.
[0047] Step 202: Receive bidding response messages corresponding to multiple task bidding requests sent by the first devices. The bidding response messages contain the target teaching load information of the first devices. The target teaching load information is generated based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, analyzing the degree of influence of the teaching task to be scheduled on the teaching load of the first devices. The target teaching task is a teaching task in the multi-level teaching tasks of the first devices whose task priority is higher than or equal to the teaching task to be scheduled.
[0048] Step 203: Based on the bidding response messages from multiple first devices, determine the target device for processing the teaching task to be scheduled from among the multiple first devices in the education network.
[0049] It is understood that the specific calculation logic of the above-mentioned target teaching load information, the message structure of the task bidding request and bidding response message, the configuration of the multi-level task queue, etc. have been described in detail in the first device-side embodiment, and will not be repeated here.
[0050] Compared to existing technologies, this application broadcasts task bidding requests through a second device, allowing each first device to autonomously participate in scheduling decisions. Since the first and second devices are student and / or teacher devices within the education network, all devices are equal in status, thus eliminating dependence on a central scheduling device and avoiding concurrency bottlenecks and single points of failure caused by a central node. Furthermore, this application, through the first device responding to task bidding requests, determines the cache information of local multi-level teaching tasks and filters out target teaching tasks with a priority higher than or equal to the teaching task to be scheduled. Then, combining the task priority of the teaching task to be scheduled and the cache information of the target teaching task, it analyzes the impact of the teaching task to be scheduled on its own teaching load and generates target teaching load information as a bidding response. In this way, the first device possesses autonomous load assessment capabilities, overcoming the technical shortcomings of traditional slave devices that cannot autonomously assess load or participate in scheduling decisions. Furthermore, this application conducts load analysis based on the cache information and task priority of multi-level teaching tasks, which can accurately reflect the actual task backlog status inside the device. This allows the second device to select the most suitable target device for handling the scheduled teaching tasks based on the target teaching load information fed back by each first device, thereby effectively improving the problem of task allocation imbalance, avoiding the situation where some devices are congested and others have idle computing power, improving the utilization rate of campus computing resources, and ensuring the service effect and user experience of reasoning tasks in educational scenarios such as Q&A, essay correction, and learning analysis.
[0051] Optionally, this application also provides an embodiment of analyzing the impact of the teaching task to be scheduled on the teaching load of the first device based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task.
[0052] In this embodiment, the first device calculates the impact score corresponding to each impact dimension according to the task priority of the teaching task to be scheduled and the cache information of the target teaching task, based on multiple impact dimensions that characterize the degree of impact of the teaching load. The impact scores corresponding to each impact dimension are accumulated to obtain the target impact score of the teaching task to be scheduled on the first device. The target impact score characterizes the degree of impact of the teaching load.
[0053] This embodiment sets up multiple influence dimensions, including a first influence dimension representing the load-bearing pressure of the first device in handling scheduled teaching tasks, a second influence dimension representing the risk of preemption of scheduled teaching tasks, and a third influence dimension representing the pressure of task backlog within the device. Each dimension calculates its influence score based on the cache information of the corresponding target teaching task and a corresponding weight coefficient. Specifically, the first influence dimension calculates its first influence score based on the cache information and first weight of the first target teaching task with the same priority; the second influence dimension calculates its second influence score based on the cache information and second weight of the second target teaching task with a higher priority; and the third influence dimension calculates its third influence score based on the cache information and third weight of both the first and second target teaching tasks.
[0054] Taking an educational scenario as an example, the teaching task to be scheduled is a student homework grading task at level P1. The first target teaching task is the teaching task in queue P1, and the second target teaching task is the teaching task in queue P0. The first device reads the queue depths corresponding to queues P0 and P1 as the cache information of the target teaching tasks, and calculates the first, second, and third impact scores respectively. The impact scores are accumulated to obtain the target impact score, which quantifies the degree of impact of the P1 homework grading task on the current teaching load of the first device. Based on the calculated target impact score, the corresponding target teaching load information is generated.
[0055] This embodiment quantifies and accumulates the target impact score by using multiple impact dimensions that characterize the degree of influence of teaching load. This objectively quantifies the degree of influence of teaching load and provides reliable data for generating target teaching load information.
[0056] Optionally, this application also provides an embodiment that calculates the influence score corresponding to each influence dimension according to multiple influence dimensions that characterize the degree of influence of the teaching load, based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task.
[0057] In this embodiment, the first influence score corresponding to the first influence dimension is calculated based on the cache information of the first target teaching task with the same task priority as the teaching task to be scheduled, and the first weight.
[0058] The first impact dimension characterizes the load on the first device to handle scheduled teaching tasks. For example, the first target teaching task is stored in a local task queue with the same priority as the scheduled teaching task. The queue depth (number of tasks) of this queue corresponds to the cache information. The greater the queue depth, the more first target teaching tasks reside in the queue, and the higher the pressure on the first device to handle new scheduled teaching tasks; conversely, if the queue depth is small, the device's load on the scheduled teaching task is lower.
[0059] Taking a homework grading task at the P1 level as an example, the first target teaching task is a teaching material generation task or a general knowledge point Q&A task with the same priority as the teaching task to be scheduled. These types of tasks are cached in the local P1 queue. The first device reads the queue depth of the P1 queue as cache information and calculates the first influence score by combining it with the first weight.
[0060] For example, the first weight is a pre-configured weight coefficient on the first device, used to reflect the importance of load capacity in the overall load assessment. The value of the first weight is higher than the second and third weights, indicating that the load capacity of queues of the same priority is the primary consideration in assessing device load.
[0061] In this embodiment, the second influence score corresponding to the second influence dimension is calculated based on the cache information of the second target teaching task with a higher task priority than the teaching task to be scheduled, and the second weight.
[0062] The second impact dimension characterizes the risk of a scheduled teaching task being preempted by a subsequent second target teaching task arriving at the first device. For example, the second target teaching task is stored in a local task queue with a higher priority than the scheduled teaching task. The queue depth of this queue represents the corresponding cache information. A smaller queue depth indicates fewer second target teaching tasks residing in the queue, meaning the local queue has available space to accept newly arriving high-priority teaching tasks, and the risk of the scheduled teaching task being preempted is higher. Conversely, a larger queue depth results in a lower risk of preemption. Taking a P1-level homework grading task as an example, the second target teaching task is a locally residing teaching task with a higher priority than the scheduled teaching task, such as a P0-priority real-time classroom Q&A task. Such tasks are stored in a local P0 queue. The first device reads the queue depth of the P0 queue as cache information and calculates the second impact score based on the second weight.
[0063] For example, the second weight is the lowest among the three, which is used to reflect the smallest reference proportion of the preemption risk dimension in the overall load assessment.
[0064] In this embodiment, the third influence score corresponding to the third influence dimension is calculated based on the cache information of the first and second target teaching tasks and the third weight.
[0065] The third influence dimension characterizes the backlog pressure of the first and second target teaching tasks waiting to be executed in the first device. For example, the first and second target teaching tasks reside in the aforementioned two levels of local task queues, respectively. The first device comprehensively obtains the queue depths of the two levels of queues as corresponding cache information. The larger the sum of the queue depths of the two levels, the greater the total number of pending teaching tasks residing in the two queues. Even if no task preemption occurs subsequently, the teaching tasks to be scheduled still need to be queued after these existing tasks, resulting in a large task waiting scale and higher overall task backlog pressure. Conversely, the smaller the sum of the queue depths of the two levels, the lower the overall task backlog pressure. Taking a homework correction task at the P1 level as an example, the first target teaching task, such as a teaching material generation task or a general knowledge point Q&A task belonging to the same P1 priority, is stored in the local P1 queue; the second target teaching task, such as a real-time classroom Q&A task belonging to the P0 priority, is stored in the local P0 queue. The first device comprehensively reads the queue depths of the P0 and P1 queues as cache information and calculates the third influence score in conjunction with the third weight.
[0066] For example, the third weight is lower than the first weight but higher than the second weight, which means that the importance of the task backlog pressure dimension is lower than that of the load pressure dimension.
[0067] In this embodiment, the specific values and magnitude relationships of the first weight, the second weight, and the third weight can be adaptively adjusted according to the actual needs of the education business.
[0068] In this embodiment, the target influence score can be calculated according to the following expression. S :
[0069] In the above formula, the first term 1.0 / (Q n +1) The first influence score corresponds to the first influence dimension, with a coefficient of 1.0 representing the first weight. Q n This represents the queue depth of the priority queue corresponding to the teaching tasks to be scheduled.
[0070] Second item 0.5 / (ΣQ i +1) The third influence score corresponds to the third influence dimension, with a coefficient of 0.5 representing the third weight. ΣQ i This is the sum of the queue depths corresponding to the first and second objective teaching tasks; Third item 0.2×Σ(Q i / (Q i+1)) The second influence score corresponds to the second influence dimension, with a coefficient of 0.2 representing the value of the second weight. Σ(Q i / (Q i +1) For each queue with a higher priority than the teaching tasks to be scheduled.
[0071] The target impact score is obtained through the above calculations. S Subsequently, based on the target impact score, corresponding target teaching load information is generated. The target impact score can be directly mapped to the degree of adaptation; the higher the target impact score, the higher the degree of adaptation of the first device to the teaching task to be scheduled.
[0072] This embodiment calculates and accumulates the target impact score by considering three different dimensions: load pressure, preemption risk, and task backlog pressure. It relies on the depth of local multi-level queues to perform sub-item quantitative calculations. It can distinguish and identify the load of tasks of the same priority, the risk of preemption of high-priority tasks, and the queuing scale of existing tasks. This adapts to the load assessment needs of multi-priority teaching tasks in educational scenarios and provides a refined data basis for generating target teaching load information.
[0073] Optionally, this application also provides an embodiment for targeted scheduling of a teaching task to be scheduled, executed on the first device side. In this embodiment, the first device, in response to the authorization message corresponding to the teaching task to be scheduled, which is targetedly sent by the second device in the education network, obtains the task execution instruction information of the teaching task to be scheduled; reserves local execution resources according to the task execution instruction information; uses the identification information of successful local execution resource reservation as a response message corresponding to the authorization message, and sends the response message to the second device; the first device, in response to the confirmation execution message corresponding to the teaching task to be scheduled sent by the second device, obtains the teaching task to be scheduled.
[0074] In this embodiment, the scheduling of the teaching task to be scheduled is achieved between the first device and the second device through a three-way handshake interaction process: authorization message - response message - confirmation execution message. Specifically, the second device sends an authorization message to the first device as the start message of the handshake. After receiving the authorization message, the first device performs a local resource reservation operation, and after the resource reservation is completed, it replies with a response message as the response message of the handshake. After receiving the response message, the second device sends a confirmation execution message to the first device to complete the handshake and sends the teaching task to be scheduled. This handshake interaction can confirm the resource reservation status of the first device, avoiding the problem of the same teaching task to be scheduled being received and repeatedly executed by multiple devices at the same time.
[0075] In this embodiment, the first device assesses the available resource balance of its large model inference unit and computation cache based on the task priority and resource consumption requirements carried in the task execution instruction information. If the available resources can meet the running conditions of the teaching task to be scheduled, the device pre-allocates the corresponding inference computing resources and cache resources, and switches itself to a resource reservation state. After resource reservation is completed, the device no longer responds to task bidding requests from other devices to prevent other tasks from preempting the pre-allocated execution resources, ensuring that subsequent teaching tasks to be scheduled can smoothly obtain computing resources to carry out inference operations. If the task execution instruction information determines that the local execution resources are insufficient to meet the resource consumption requirements, the first device may not return a reservation success response message, and the handshake interaction terminates.
[0076] Optionally, this application also provides an embodiment for targeted scheduling of a teaching task to be scheduled, executed on the second device side. The second device sends an authorization message to the target device in the education network, the authorization message carrying task execution instruction information of the teaching task to be scheduled; obtains a response message corresponding to the authorization message sent by the target device, the response message carrying identification information of successful local execution resource reservation of the target device; and, based on the identification information, sends a confirmation execution message of the teaching task to be scheduled to the target device, the confirmation execution message carrying the teaching task to be scheduled.
[0077] In this embodiment, the second device acts as the initiator of the handshake interaction. After determining the corresponding target device based on the target teaching load information fed back by each first device, it sends an authorization message to the target device according to the device identifier of the target device. The specific handshake interaction process has been described in the above embodiment on the first device side and will not be repeated here.
[0078] Optionally, this application also provides an embodiment for processing tasks to be executed. In this embodiment, when the first device is idle, the teaching task to be scheduled is executed; when the first device is busy and the task priority of the currently executing teaching task is lower than the task priority of the teaching task to be scheduled, the currently executing teaching task is interrupted and the teaching task to be scheduled is executed; the currently executing teaching task is placed at the head of the corresponding task queue; when the first device is busy and the task priority of the currently executing teaching task is equal to or higher than the task priority of the teaching task to be scheduled, the teaching task to be scheduled is placed at the tail of the corresponding task queue.
[0079] In this embodiment, the first device reads the locally maintained status flag to obtain its current device status, and simultaneously reads the priority information of the currently running teaching tasks, using this as the basis for determining subsequent task branch processing. When the priority of the teaching task to be scheduled is higher, a preemption logic is triggered, interrupting the running lower-priority teaching task. The preempted teaching task is stored at the head of the corresponding queue, so that the interrupted task can be resumed first after the higher-priority task is completed. If the priority of the teaching task to be scheduled is lower than that of the running teaching task, the teaching task to be scheduled is placed at the tail of the queue and queued in order to ensure the execution order of existing tasks.
[0080] For example, taking a classroom real-time Q&A task at level P0 as an example, the first device obtains its own status as busy, and the device is currently executing a batch learning statistics task at level P2. After priority comparison, the P0 task has a higher priority than the P2 task, so the running P2 batch learning statistics task is interrupted, the P0 classroom real-time Q&A task is executed immediately, and the interrupted P2 batch learning statistics task is placed at the head of the P2 queue. After the P0 task is completed, the P2 task will be resumed first. If the first device is executing a homework grading task at level P1, and a document parsing task at level P2 is accessed at this time, since the P2 task has a lower priority, the P2 document parsing task is directly placed at the tail of the P2 queue to wait for execution.
[0081] This embodiment, through local autonomous state reading and priority preemption and queuing processing logic, can ensure that high-priority teaching tasks such as real-time classroom Q&A receive timely responses. At the same time, low-priority tasks that are preempted are placed at the head of the queue to avoid long-term starvation and inability to execute low-priority tasks. It balances the real-time nature of urgent teaching tasks with the fairness of execution of ordinary background teaching tasks, and adapts to the business characteristics of mixed concurrency of multiple types and priorities of reasoning tasks in education scenarios.
[0082] Optionally, this application also provides an embodiment for sending device status information. In this embodiment, the device status information of a first device is obtained, including one of idle status, busy status, and resource reservation status; a bidding response message is sent to a second device, including sending a bidding response message containing target teaching load information and device status information to the second device.
[0083] In this embodiment, the first device reads its own device status information from its local status flag, encapsulates the device status information and the target teaching load information together into a bidding response message, and sends it to the second device. When evaluating each candidate first device, the second device can, in addition to referring to the load evaluation results, also comprehensively screen target devices based on the actual operating status of the devices, such as prioritizing idle devices to undertake tasks and reducing task queuing latency.
[0084] Optionally, this application also provides an embodiment for determining a target device to process a scheduled teaching task from multiple first devices in an education network based on bidding response messages from multiple first devices. In this embodiment, a second device, based on the device status information of multiple first devices, identifies first devices in idle and busy states as candidate devices; if the candidate devices include first devices in idle states, the target device to process the scheduled teaching task is determined from the first devices in idle states; if the candidate devices do not include first devices in idle states, the target device to process the scheduled teaching task is determined from the first devices in busy states based on the target teaching load information of the first devices in busy states.
[0085] In this embodiment, the second device first filters all received bidding response messages by status, excluding the first device in the resource reservation state, and only including the first devices in the idle or busy state into the candidate device set. If there is at least one idle first device in the candidate device set, the target device selection is prioritized within the range of idle first devices, and busy devices are not selected. Idle devices currently have no running teaching tasks, and can start execution immediately after receiving a task, which can minimize the start-up waiting time of the teaching tasks to be scheduled. When multiple idle first devices coexist, the target teaching load information reported by each idle device is further combined for optimal selection, and the one with the best fit is selected as the target device.
[0086] If no idle first device exists in the candidate device set, and all candidate devices are busy, then the target teaching load information reported by each busy first device is compared, and the first device with the best suitability is selected as the target device. At this time, each device has running tasks. Based on the load information obtained from multi-dimensional quantification, the device with the best overall performance in terms of current task pressure, preemption risk, and backlog pressure is selected to undertake the task, avoiding the assignment of tasks to devices with poor load conditions and preventing long queues or frequent preemption of teaching tasks to be scheduled.
[0087] For example, there are four primary devices in the education network: device A is idle, devices B and C are busy, and device D is in a resource-reserved state. The secondary device first excludes device D, and then selects devices A, B, and C as candidate devices. Since device A is idle among the candidates, the target device is directly selected from the idle devices, and the teaching tasks to be scheduled are preferentially assigned to device A. When devices A and D are both in a resource-reserved state, leaving only busy devices B and C as candidates, the target teaching load information of B and C is compared, and the device with the higher score and better fit is selected as the target device.
[0088] In this embodiment, when the second device recognizes itself (the local device) in the candidate device set, it also participates in the target device determination following the complete screening mechanism described above. The local device generates its own target teaching load information and collects its own device status information as bidding parameters to participate in the comparison and screening of the candidate device set, following a bidding process completely identical to that of other first devices. When the local device and other candidate devices meet the same screening conditions, such as both being in an idle state, or both being in a busy state and having similar matching scores for their target teaching load information, the local device is preferentially identified as the target device. If the local device is in an idle state, and there are idle devices in the candidate set, the local device and the other idle first devices participate in the selection process, with the local device being preferred when conditions are the same. If the local device is identified as the target device, the scheduled teaching task is executed locally without sending authorization messages outward through the education network. If the local device is not selected, the original scheduling process is maintained, and a targeted scheduling handshake interaction is initiated with the externally identified target device.
[0089] This embodiment prioritizes utilizing idle devices for low-latency task scheduling; when no idle devices are available, it allocates tasks among busy devices based on multi-dimensional load information. Furthermore, the local machine acting as the scheduler participates in the complete bidding and selection process and, under the same conditions, prioritizes local execution, reducing network transmission overhead and balancing task response time with device load balancing. This approach is suitable for scheduling scenarios where multiple devices concurrently undertake teaching and reasoning tasks in educational networks.
[0090] In conjunction with the above embodiments, this application also provides some examples of logical execution flows.
[0091] like Figure 4 The diagram illustrates the execution flow of a low-priority task scheduling strategy. When a P2 priority teaching task arrives, the system first checks if the local device is idle. If idle, the local device directly executes the P2 task. If busy, the system enters a global scheduling process to search for an idle remote device (the first device) within the education network. If the global scheduling finds an idle remote device, it assigns the P2 task to that device. If no idle device is found, the system searches for the device with the smallest P2 task queue depth as a candidate set; then it checks if the local device is in this candidate set. If the local device is in the candidate set, it is prioritized as the target device; if not, another device is selected from the candidate set as the target device. After determining the target device, the P2 task is sent to the target device's P2 task queue. This task does not trigger preemption logic and waits in the queue for execution.
[0092] like Figure 5The diagram illustrates the execution flow of a high-priority task scheduling strategy. When a teaching task with priority P0 arrives, it enters a three-level, hierarchical screening and scheduling process: Layer 1 checks if there are any idle devices in the education network. If idle devices exist, and their scores are the same, the local device or any other idle device is selected, and the selected device immediately executes the P0 task. If no idle devices exist, the process proceeds to Layer 2, checking if there are any preemptible devices. Preemptible devices are those currently executing P1 or P2 priority tasks. If preemptible devices exist, the scores (target impact score) of all preemptible devices are calculated, resulting in a list of devices with the highest scores. In cases of identical scores, the local device is selected first; otherwise, the device with the highest score is selected. The selected device preempts the currently running task, and the preempted task is placed at the head of its corresponding queue to wait for execution of the P0 task. If no preemptible devices exist, the process proceeds to Layer 3, filtering among all devices in a BUSY state. The scores of all busy devices are calculated, resulting in a list of devices with the highest scores. In cases of identical scores, the local device is selected first; otherwise, the device with the highest score is selected. The P0 task is then placed in the queue of that device to wait for execution.
[0093] like Figure 6 The diagram illustrates an execution flow for obtaining device queue information. The coordinator (second device) initiates a queue depth query process. The coordinator broadcasts a task bidding request (QUEUE_QUERY query message) to all devices in the network. Devices A, B, and C, upon receiving the QUEUE_QUERY message, calculate the queue depths of their local queues P0, P1, and P2, respectively, obtaining queue depth arrays [Q0, Q1, Q2] for each priority queue. Each device generates a bidding response message (QUEUE_RESPONSE response message) and returns it to the coordinator. The QUEUE_RESPONSE message carries the device identifier (device_id), the queue depth arrays [] for each priority queue, and the device status (status). The coordinator receives the QUEUE_RESPONSE messages from each device, summarizes the queue depth information of all devices in the education network, and constructs a device scoring data structure based on this information for subsequent calculation of target teaching load information and target device selection.
[0094] Figure 6 The example adopts a broadcast query-response reporting message interaction mode. The second device (coordinator) collects the original data of the multi-priority queue depth and device status of each device in the network in batches in the form of bidding requests. The device scoring related calculations are completed on the second device side.
[0095] like Figure 7The diagram illustrates an execution flow for selecting a target device, taking a device list and task priority level n as input parameters. First, it checks if the device list is empty; if empty, it returns a default value and does not output a target device. If the device list is not empty, it checks if there is only one device in the list; if there is only one device, it directly returns that device as the target device. If the device list contains multiple devices, it iterates through all devices in the list and calculates the device score for each device. S The system calculates scores for each device using a pre-defined scoring formula; it then identifies the device with the highest score and generates a list of candidate devices corresponding to that score. It checks if the number of devices with the highest score is greater than one. If there is only one device with the highest score, that device is directly returned as the target device. If two or more devices have the same highest score, the system prioritizes the local device, further determining if the local device is in the list of devices with the highest score. If the local device is in the list, it is returned as the target device; otherwise, the first device in the list is returned as the target device.
[0096] like Figure 8 The diagram illustrates the execution flow of a teaching task. After a teaching task currently running on the device is completed, the device state is set to IDLE. The device traverses each task queue from highest to lowest priority, starting with priority queue P0. It checks if the queue corresponding to the current priority is empty; if not, it retrieves the task at the head of the queue and checks if the task has a preempted flag (was_paused). If the task was previously preempted, its execution context is restored; otherwise, it starts execution normally (default execution) and begins running. If the current priority queue is empty, the priority flag (level) is incremented, and the device switches to the next priority queue. It then checks if the current priority is less than the maximum priority level N. If the maximum priority level is not reached, it returns to continue checking the corresponding queue; if all priority queues have been traversed and none have pending tasks, the device remains in IDLE, waiting to receive new teaching tasks.
[0097] Furthermore, as Figure 1 The specific implementation of the method shown in this embodiment provides a task scheduling device based on an educational network, such as... Figure 9 The diagram shows a structural schematic of a task scheduling device based on an education network. The task scheduling device 300 based on the education network includes: a response module 301, a determination module 302, an analysis module 303, and a first sending module 304.
[0098] The response module 301 is configured to respond to a task bidding request for a scheduled teaching task broadcast by the second device in the education network, and to determine the cache information of multi-level teaching tasks in the first device. The first device and the second device include student devices and / or teacher devices in the education network. Module 302 is configured to determine the target teaching task whose priority is higher than or equal to the teaching task to be scheduled in the multi-level teaching tasks based on the task priorities of the multi-level teaching tasks and the teaching tasks to be scheduled. The analysis module 303 is configured to analyze the impact of the teaching task to be scheduled on the teaching load of the first device based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, and generate the target teaching load information of the first device based on the impact of the teaching load. The first sending module 304 is configured to send the target teaching load information as a bidding response message to the task bidding request and send the bidding response message to the second device. The bidding response message is used by the second device to determine the target device to process the teaching task to be scheduled from multiple first devices in the education network.
[0099] Optionally, when the analysis module 303 analyzes the impact of the teaching task to be scheduled on the teaching load of the first device based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, it is further configured to calculate the impact score corresponding to each impact dimension according to multiple impact dimensions that characterize the impact of the teaching load, based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task; and to accumulate the impact scores corresponding to each impact dimension to obtain the target impact score of the teaching task to be scheduled on the first device, wherein the target impact score characterizes the impact of the teaching load.
[0100] Optionally, when the analysis module 303 calculates the impact score corresponding to each impact dimension according to multiple impact dimensions representing the degree of influence of the teaching load based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, it is also configured to calculate the first impact score corresponding to the first impact dimension based on the cache information of the first target teaching task with the same task priority as the teaching task to be scheduled and the first weight. The first impact dimension represents the load pressure of the first device on the teaching task to be scheduled. Based on the cache information of the second target teaching task with a higher task priority than the teaching task to be scheduled and the second weight, it calculates the second impact score corresponding to the second impact dimension. The second impact dimension represents the risk of the teaching task to be scheduled being preempted by the second target teaching task that arrives at the first device later. Based on the cache information of the first target teaching task and the second target teaching task and the third weight, it calculates the third impact score corresponding to the third impact dimension. The third impact dimension represents the backlog pressure of the first target teaching task and the second target teaching task waiting to be executed in the first device.
[0101] Optionally, the device further includes a resource configuration module, configured to: in response to an authorization message corresponding to a teaching task to be scheduled sent by the second device in the education network, obtain task execution instruction information of the teaching task to be scheduled; reserve local execution resources according to the task execution instruction information; use the identifier information of successful reservation of local execution resources as a response message corresponding to the authorization message and send the response message to the second device; and in response to a confirmation execution message corresponding to the teaching task to be scheduled sent by the second device, obtain the teaching task to be scheduled.
[0102] Optionally, the device further includes an execution module. After acquiring the teaching task to be scheduled, the execution module executes the teaching task to be scheduled when the first device is idle; interrupts the currently executing teaching task and executes the teaching task to be scheduled when the first device is busy and the task priority of the currently executing teaching task is lower than the task priority of the teaching task to be scheduled; places the currently executing teaching task at the head of the corresponding task queue; and places the teaching task to be scheduled at the tail of the corresponding task queue when the first device is busy and the task priority of the currently executing teaching task is equal to or higher than the task priority of the teaching task to be scheduled.
[0103] Optionally, the determining module 302 is further configured to obtain the device status information of the first device, which includes one of idle status, busy status, and resource reservation status; when the first sending module 304 sends the bidding response message to the second device, it is also configured to send the bidding response message containing the target teaching load information and device status information to the second device.
[0104] Furthermore, as Figure 2 A specific example of the method shown is provided in this embodiment, which offers a task scheduling device based on an educational network, such as... Figure 10 The diagram shows another type of task scheduling device based on an educational network. The task scheduling device 400 based on the educational network includes: a second sending module 401, a receiving module 402, and a selection module 403.
[0105] The second sending module 401 is configured to broadcast a task bidding request for a scheduled teaching task to a plurality of first devices in the education network. The first devices and second devices include student devices and / or teacher devices in the education network. The receiving module 402 is configured to receive bidding response messages corresponding to multiple task bidding requests sent by the first devices. The bidding response messages contain the target teaching load information of the first devices. The target teaching load information is generated based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, analyzing the degree of influence of the teaching task to be scheduled on the teaching load of the first devices. The target teaching task is a teaching task in the multi-level teaching tasks of the first devices whose task priority is higher than or equal to the teaching task to be scheduled. Module 403 is configured to select a target device from multiple first devices in the education network to process the teaching task to be scheduled, based on the bidding response messages of multiple first devices.
[0106] Optionally, when the selection module 403 executes the bidding response message based on multiple first devices to determine the target device for processing the scheduled teaching task from multiple first devices in the education network, it is further configured to, based on the device status information of multiple first devices, select first devices in idle state and busy state as candidate devices; if the candidate devices include first devices in idle state, select the target device for processing the scheduled teaching task from the first devices in idle state; if the candidate devices do not include first devices in idle state, select the target device for processing the scheduled teaching task from the first devices in busy state based on the target teaching load information of the first devices in busy state.
[0107] Optionally, the device also includes a handshake interaction module, configured to send an authorization message to the target device in the education network, the authorization message carrying task execution instruction information of the teaching task to be scheduled; obtain a response message corresponding to the authorization message sent by the target device, the response message carrying identification information of successful local execution resource reservation of the target device; and send a confirmation execution message of the teaching task to be scheduled to the target device based on the identification information, the confirmation execution message carrying the teaching task to be scheduled.
[0108] It should be noted that other corresponding descriptions of the functional units involved in the task scheduling device based on an education network provided in this embodiment can be found in [reference needed]. Figure 1 or Figure 2 The corresponding description in [the document] will not be repeated here.
[0109] Based on the above, Figure 1 and Figure 2 Accordingly, this embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method. Figure 1 and Figure 2 The method shown.
[0110] 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.
[0111] like Figure 11 The diagram shown is a hardware structure schematic of an electronic device according to the present invention, comprising: At least one processor 501; and, Memory 502 is communicatively connected to at least one processor 501; wherein, The memory 502 stores instructions that can be executed by at least one processor to enable the at least one processor to perform the task scheduling method based on the educational network as described above.
[0112] Figure 11 Take a processor 501 as an example.
[0113] The electronic device may also include an input device 503 and an output device 504.
[0114] The processor 501, memory 502, input device 503, and output device 504 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.
[0115] The memory 502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the task scheduling method based on the education network in the embodiments of this application, for example, Figure 1 and Figure 2The method flow is shown. Processor 501 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in memory 502, thereby implementing the task scheduling method based on the education network in the above embodiments.
[0116] Memory 502 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data created according to the use of the task scheduling method based on the education network. Furthermore, memory 502 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 502 may optionally include memory remotely located relative to processor 501, and these remote memories may be connected via a network to the apparatus performing the task scheduling method based on the education network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0117] Input device 503 can receive user clicks and generate signal inputs related to user settings and function control of the task scheduling method based on the education network. Output device 504 may include display devices such as a display screen.
[0118] One or more modules are stored in memory 502, and when run by one or more processors 501, the task scheduling method based on the education network in any of the above method embodiments is executed.
[0119] 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.
[0120] 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.
[0121] The storage medium may also 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, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
[0122] 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 application broadcasts task bidding requests through a second device, and each first device can autonomously participate in scheduling decisions. Since the first and second devices are student devices and / or teacher devices in the education network, and the status of each device in the network is equal, it can get rid of the dependence on the central scheduling device and avoid the concurrency bottleneck and single point of failure problems caused by the central node. Furthermore, this application, through the first device responding to the task bidding request, determines the cache information of local multi-level teaching tasks, and filters out target teaching tasks with a priority higher than or equal to the teaching tasks to be scheduled; combining the task priority of the teaching tasks to be scheduled and the cache information of the target teaching tasks, it analyzes the degree of impact of the teaching tasks to be scheduled on its own teaching load and generates target teaching load information as a bidding response, so that the first device has autonomous load assessment capabilities, overcoming the technical defects of traditional slave devices that cannot autonomously assess load and cannot participate in scheduling decisions. Furthermore, this application conducts load analysis based on the cache information and task priorities of multi-level teaching tasks, no longer limited to coarse-grained hardware indicators such as CPU and GPU utilization, and can accurately reflect the actual task backlog status inside the device. The second device selects the target device to process the scheduled teaching tasks based on the target teaching load information fed back by each first device, effectively improving the problem of task allocation imbalance, avoiding the situation where some devices are congested and others have idle computing power, improving the utilization rate of campus computing resources, and ensuring the service effect and user experience of reasoning tasks in educational scenarios such as Q&A, essay correction, and learning analysis.
[0123] 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 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. Unless otherwise specified, 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 the element.
[0124] The above are merely specific embodiments 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 these embodiments, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A task scheduling method based on an educational network, characterized in that, Applied to the first device, including: In response to a task bidding request for a scheduled teaching task broadcast by the second device in the education network, cache information of multi-level teaching tasks in the first device is determined, wherein the first device and the second device include student devices and / or teacher devices in the education network; Based on the task priorities of the multi-level teaching tasks and the teaching tasks to be scheduled, determine the target teaching task among the multi-level teaching tasks whose task priority is higher than or equal to that of the teaching task to be scheduled. Based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, analyze the degree of impact of the teaching task to be scheduled on the teaching load of the first device, and generate the target teaching load information of the first device based on the degree of impact of the teaching load. The target teaching load information is used as a bidding response message for the task bidding request, and the bidding response message is sent to the second device. The bidding response message is used by the second device to determine the target device for processing the teaching task to be scheduled from among multiple first devices in the education network.
2. The method according to claim 1, characterized in that, The step of analyzing the impact of the teaching task to be scheduled on the teaching load of the first device based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task includes: Based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, the influence score corresponding to each influence dimension is calculated according to multiple influence dimensions that characterize the degree of influence of the teaching load. The impact scores corresponding to each impact dimension are accumulated to obtain the target impact score of the teaching task to be scheduled on the first device. The target impact score represents the degree of impact of the teaching load.
3. The method according to claim 2, characterized in that, The step involves calculating the impact score for each of the following dimensions based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task: each dimension represents the degree of influence of the teaching load. Based on the cache information of the first target teaching task with the same task priority as the teaching task to be scheduled, and the first weight, the first influence score corresponding to the first influence dimension is calculated. The first influence dimension represents the load-bearing pressure of the first device on the teaching task to be scheduled. Based on the cache information of the second target teaching task with a higher task priority than the teaching task to be scheduled, and the second weight, the second influence score corresponding to the second influence dimension is calculated. The second influence dimension represents the risk that the teaching task to be scheduled will be preempted by the second target teaching task that arrives at the first device later. Based on the cache information of the first target teaching task and the second target teaching task, and the third weight, the third influence score corresponding to the third influence dimension is calculated. The third influence dimension represents the backlog pressure of the first target teaching task and the second target teaching task waiting to be executed in the first device.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to the authorization message corresponding to the teaching task to be scheduled sent by the second device in the education network, the task execution instruction information of the teaching task to be scheduled is obtained; Based on the task execution instruction information, reserve local execution resources; The identifier information indicating successful local execution resource reservation is used as the response message corresponding to the authorization message, and the response message is sent to the second device. In response to the confirmation execution message corresponding to the teaching task to be scheduled sent by the second device, the teaching task to be scheduled is obtained.
5. The method according to claim 4, characterized in that, After obtaining the teaching task to be scheduled, the method further includes: When the first device is idle, the scheduled teaching task is executed; If the first device is busy and the priority of the teaching task being executed is lower than the priority of the teaching task to be scheduled, the teaching task being executed is interrupted and the teaching task to be scheduled is executed; the teaching task being executed is placed at the head of the corresponding task queue. If the first device is busy and the priority of the teaching task being executed is equal to or higher than the priority of the teaching task to be scheduled, the teaching task to be scheduled will be placed at the tail of the corresponding task queue.
6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Obtain the device status information of the first device, wherein the device status information includes one of idle status, busy status, and resource reservation status; Sending the bidding response message to the second device includes: Send a bidding response message containing the target teaching load information and the device status information to the second device.
7. A task scheduling method based on an educational network, characterized in that, Applied to a second device, including: Broadcasting task bidding requests for scheduled teaching tasks to multiple first devices in the education network, wherein the first devices and second devices include student devices and / or teacher devices in the education network; The system receives bidding response messages corresponding to the task bidding requests sent by multiple first devices. The bidding response messages contain the target teaching load information of the first devices. The target teaching load information is generated based on the task priority of the teaching task to be scheduled and the cache information of the target teaching task, by analyzing the degree of influence of the teaching task to be scheduled on the teaching load of the first devices. The target teaching task is a teaching task in the multi-level teaching tasks of the first devices whose task priority is higher than or equal to the teaching task to be scheduled. Based on the bidding response messages from multiple first devices, a target device for processing the teaching task to be scheduled is determined from among the multiple first devices in the education network.
8. The method according to claim 7, characterized in that, The bidding response message also includes device status information, which includes one of the idle status, busy status, and resource reservation status of the corresponding first device. The step of determining the target device for processing the teaching task to be scheduled from among the multiple first devices in the education network based on the bidding response messages of multiple first devices includes: Based on the device status information of multiple first devices, the first devices in the idle state and the busy state are selected as candidate devices; If the candidate devices include a first device in an idle state, the target device for processing the teaching task to be scheduled is determined from the first device in the idle state. If the candidate devices do not include an idle first device, the target device for processing the scheduled teaching task is determined from the busy first devices based on the target teaching load information of the busy first devices.
9. The method according to claim 7 or 8, characterized in that, The method further includes: An authorization message is sent to the target device in the education network, the authorization message carrying task execution instruction information for the teaching task to be scheduled; Obtain the response message corresponding to the authorization message sent by the target device, wherein the response message carries identification information indicating that the target device has successfully reserved local execution resources; Based on the identification information, a confirmation execution message for the teaching task to be scheduled is sent to the target device, and the confirmation execution message carries the teaching task to be scheduled.
10. An electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 6, or the method of any one of claims 7 to 9.
