Task processing method and device, computer equipment and storage medium
By switching to the real-time operating system processing when simulating tasks on the communication protocol on the BMC, the problem that non-real-time operating systems cannot guarantee immediacy and accuracy is solved, the immediacy and accuracy of tasks are achieved, and the flexibility of the system is improved. and efficiency.
Patent Information
- Application Number
- CN202411280423.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-31
AI Technical Summary
BMC is equipped with a non-real-time operating system on a single-core CPU, and cannot ensure the immediacy and accuracy of communication protocol simulation tasks.
When the pending task is a communication protocol simulation task, stop interrupt processing of the non-real-time operating system, start the real-time operating system for processing, and restore the non-real-time operating system after the task is completed, ensuring that the real-time operating system and the non-real-time operating system are between the real-time operating system and the non-real-time operating system. smooth switching.
Through the real-time operating system processing communication protocol simulation tasks, the immediacy and accuracy of tasks are ensured, and tasks are avoided or restarted when switching the operating system, improving system flexibility and efficiency.
Smart Images

Figure CN119225828A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of operating system application technology, and in particular to a task processing method, device, computer equipment and storage medium. Background Art
[0002] A baseboard management controller (BMC) is usually embedded in a server and is used to monitor and manage the hardware status of the system.
[0003] In the related art, BMC monitors and manages the hardware status of the system through hardware. To save costs, the BMC software can be used to control the general-purpose input / output (GPIO) pins to maintain high and low level states for a fixed time to simulate the hardware communication protocol, so as to monitor and manage the hardware status of the system. The time for the GPIO pins to maintain high and low level states is determined by the provisions of the communication protocol.
[0004] However, since BMCs are generally equipped with non-real-time operating systems, which use a process time slice rotation strategy, the immediacy and accuracy of communication protocol simulation task execution cannot be ensured on a single-core central processing unit (CPU). Summary of the invention
[0005] In view of this, the present invention provides a task processing method, apparatus, computer device and storage medium to solve the problem in the related art that the BMC is equipped with a non-real-time operating system and cannot ensure the immediacy and accuracy of the communication protocol simulation task execution in the case of a single-core CPU.
[0006] In a first aspect, the present invention provides a task processing method, the method comprising:
[0007] During the system power-on phase, start the non-real-time operating system;
[0008] Get pending tasks;
[0009] In the case where the task to be processed is a non-real-time task, using the non-real-time operating system to process the non-real-time task;
[0010] In the case where the task to be processed is a communication protocol simulation task, shutting down the interrupt processing of the non-real-time operating system and starting the real-time operating system;
[0011] Processing the communication protocol simulation task using the real-time operating system;
[0012] When the communication protocol simulation task is completed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system continues to run.
[0013] The task processing method provided in this embodiment uses a non-real-time operating system to process the non-real-time task when the task to be processed is a non-real-time task, and when the task to be processed is a communication protocol simulation task, the non-real-time operating system is shut down for interrupt processing, the real-time operating system is started, and the communication protocol simulation task is processed using the real-time operating system. When the communication protocol simulation task is processed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system is continued to run. By carrying a real-time operating system and using the real-time operating system to process the communication protocol simulation task, the immediacy and accuracy of the execution of the communication protocol simulation task are guaranteed.
[0014] In an optional implementation, before starting the real-time operating system, the method further includes:
[0015] Obtaining a snapshot of the operating environment context of the non-real-time operating system;
[0016] Saving the operating environment context snapshot to a first storage area;
[0017] The continuing to run the non-real-time operating system comprises:
[0018] Using the real-time operating system to obtain the operating environment context snapshot in the first storage area;
[0019] Based on the operating environment context snapshot, the operating environment of the non-real-time operating system is restored to continue running the non-real-time operating system.
[0020] The task processing method provided in this embodiment achieves smooth switching between the operating environments of the two operating systems by obtaining a snapshot of the operating environment context of the non-real-time operating system before starting the real-time operating system, and restoring the snapshot of the operating environment context when necessary to restore the non-real-time operating system, thereby ensuring that tasks on the non-real-time operating system can continue to execute after power failure after an interruption, and that the tasks being processed will not be lost or need to be restarted due to operating system switching, thereby improving the overall flexibility and operating efficiency of the system.
[0021] In an optional implementation, the saving the execution environment context snapshot to the first storage area includes:
[0022] Compressing the operating environment context snapshot to obtain a compressed operating environment context snapshot;
[0023] The compressed execution environment context snapshot is saved to the first storage area.
[0024] The task processing method provided in this embodiment significantly reduces the size of the snapshot file by compressing the operating environment context snapshot and saving it to the first storage area, thereby storing more snapshots in a limited storage area, improving storage efficiency and enhancing system reliability.
[0025] In an optional implementation, the operating environment context snapshot includes a register context snapshot, and restoring the operating environment of the non-real-time operating system based on the operating environment context snapshot includes:
[0026] Acquire an operating system context and a user context of the non-real-time operating system in the second storage area;
[0027] The operating environment of the non-real-time system is restored based on the operating system context, user context and register context snapshots.
[0028] The task processing method provided in this embodiment obtains the operating system context and user context of the non-real-time operating system in the second storage area, and restores the operating environment of the non-real-time system based on the operating system context, user context and register context snapshots. In essence, it is only necessary to restore the register context snapshot stored in the first storage area to restore the operating environment of the non-real-time system, thereby improving the recovery speed of the operating environment of the non-real-time system.
[0029] In an optional implementation, before starting the real-time operating system, the method further includes:
[0030] Parsing the communication protocol simulation task to obtain parameter information and number information of the communication protocol simulation task;
[0031] When the data volume of the parameter information is greater than a preset data volume threshold, the parameter information is written into a third storage area, and address information of the parameter information in the third storage area and length information of the parameter information are obtained;
[0032] Writing the number information, the address information of the parameter information in the third storage area, and the length information of the parameter information into a target register as communication protocol simulation task information;
[0033] The processing of the communication protocol simulation task by using the real-time operating system includes:
[0034] The real-time operating system is used to obtain the communication protocol simulation task information in the target register, and the communication protocol simulation task is processed based on the communication protocol simulation task information.
[0035] The task processing method provided in this embodiment simplifies the complexity of real-time operating system task processing by storing communication protocol simulation task information in the target register, reduces potential memory access errors, and enhances the stability and reliability of the system.
[0036] In an optional embodiment, the method further includes:
[0037] When the data volume of the parameter information is not greater than a preset data volume threshold, the number information and the parameter information are written into the target register as communication protocol simulation task information.
[0038] The task processing method provided in this embodiment can write directly into the target register without performing additional external storage operations when the amount of parameter information is small, thereby simplifying the process of the real-time operating system obtaining communication protocol simulation task information, reducing system overhead and improving processing speed.
[0039] In an optional implementation, the using the real-time operating system to obtain the communication protocol simulation task information in the target register, and processing the communication protocol simulation task based on the communication protocol simulation task information includes:
[0040] Using the real-time operating system to read the serial number information of the communication protocol simulation task in the target register;
[0041] Based on the numbering information, determining a communication protocol simulation task to be processed;
[0042] Reading a read flag value of the parameter information in the target register;
[0043] In a case where the read flag value of the parameter information is a first preset value, determining that the parameter information of the communication protocol simulation task is stored in the target register;
[0044] Reading parameter information of the communication protocol simulation task from the target register, and processing the communication protocol simulation task to be processed based on the parameter information of the communication protocol simulation task;
[0045] In a case where the read flag value of the parameter information is a second preset value, determining that the target register stores address information of the parameter information in the third storage area and length information of the parameter information;
[0046] Acquire address information of the parameter information in the third storage area and length information of the parameter information from the target register;
[0047] Based on the address information of the parameter information in the third storage area and the length information of the parameter information, the parameter information is acquired from the third storage area, and the communication protocol simulation task to be processed is processed based on the parameter information.
[0048] The task processing method provided in this embodiment determines the storage location of parameter information by reading the flag value, thereby realizing on-demand access, which not only optimizes memory usage, but also maintains efficient processing of large amounts of parameter information, thereby improving the efficiency of the real-time operating system in acquiring parameter information and the processing speed of the communication protocol simulation tasks to be processed.
[0049] In a second aspect, the present invention provides a task processing device, the device comprising:
[0050] The first startup module is used to start the non-real-time operating system during the system power-on phase;
[0051] The acquisition module is used to obtain tasks to be processed;
[0052] A first processing module, configured to process the non-real-time task by using the non-real-time operating system when the task to be processed is a non-real-time task;
[0053] A second startup module is used for shutting down the interrupt processing of the non-real-time operating system and starting the real-time operating system when the task to be processed is a communication protocol simulation task;
[0054] A second processing module, used for processing the communication protocol simulation task using the real-time operating system;
[0055] The running module is used to shut down the interrupt processing of the real-time operating system and continue to run the non-real-time operating system when the communication protocol simulation task processing is completed.
[0056] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the task processing method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0057] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the task processing method of the first aspect or any corresponding embodiment thereof.
[0058] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the task processing method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0060] Figure 1 is a flowchart of a task processing method according to an embodiment of the present invention;
[0061] Figure 2 is a flowchart of another task processing method according to an embodiment of the present invention;
[0062] Figure 3 is a schematic diagram of a process of switching an RTOS system to a Linux system according to an embodiment of the present invention;
[0063] Figure 4 is a flowchart of another task processing method according to an embodiment of the present invention;
[0064] Figure 5 is a schematic diagram of memory partition according to an embodiment of the present invention;
[0065] Figure 6 is a schematic diagram of a process of switching a Linux system to an RTOS system according to an embodiment of the present invention;
[0066] Figure 7 is a structural block diagram of a task processing device according to an embodiment of the present invention;
[0067] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0069] BMC is usually embedded in the server and is a dedicated controller for monitoring and managing the server. It is used to monitor and manage the hardware status of the system. It can also perform some operations such as upgrading the machine firmware and checking the machine equipment when the machine is not turned on.
[0070] It should be noted that BMC mainly has the following functions:
[0071] (1) Equipment information management: record server information (model, manufacturer, date, production and technical information of each component, chassis information, motherboard information, etc.), BMC information (server host name, IP, BMC firmware version, etc.);
[0072] (2) Server status monitoring and management: Detect the temperature, voltage and other health status of each server component (CPU, memory, hard disk, fan, chassis, etc.), and adjust the fan speed according to the conditions of each temperature collection point to ensure that the server does not overheat and control the overall power consumption.
[0073] (3) Remote control management of servers: server power on / off, restart, maintenance, firmware update, system installation, etc.;
[0074] (4) Maintenance management: log management, user management, BIOS management, alarm management, etc.
[0075] In the related technology, BMC obtains the temperature information of CPU through the Platform Environment Control Interface (PECI) protocol controller, and upgrades the firmware of Complex Programmable Logic Device (CPLD) through the Joint Test Action Group (JTAG) controller. Such controllers are generally implemented by purchasing the IP of the corresponding manufacturer, and each server needs to pay a certain fee.
[0076] To save the cost of purchasing IO, the BMC software can be used to control the GPIO pins to simulate the hardware communication protocol to achieve the same functions as the hardware controller. The software control method is more flexible than the hardware controller method.
[0077] It should be noted that the essence of the software simulation of common hardware communication protocols on the BMC is to control the high and low states of the GPIO pins for a fixed period of time, where the length of the fixed time is determined according to the provisions of the corresponding communication protocol. Meeting the time specified by the communication protocol can also be called meeting the timing requirements.
[0078] However, BMC usually runs Linux system, which is a non-real-time operating system. Because its design and scheduling strategy mainly focus on high throughput and high efficiency, in order to ensure high throughput and high efficiency, Linux system adopts the strategy of time slice rotation between processes. In other words, the processes use the CPU core through time slice polling. This polling guarantees the overall performance of the system, but the entire business cannot monopolize the CPU for a period of time. This leads to the fact that on a single-core CPU, the method of simulating the hardware communication protocol by controlling the GPIO pins through software is affected by the Linux process scheduling, and it is impossible to ensure that the simulated hardware communication protocol meets the timing requirements, that is, it is impossible to ensure the immediacy and accuracy of the execution of the communication protocol simulation task, and it is impossible to ensure the precise control of the high and low state time length of the GPIO pin.
[0079] It can be seen that how to realize the simulation of common communication protocols through the software on the BMC and meet the corresponding timing requirements to achieve the purpose of cost saving is the main purpose of the embodiment of the present invention. The embodiment of the present invention provides a task processing method, by using a non-real-time operating system to process the non-real-time task when the task to be processed is a non-real-time task, and when the task to be processed is a communication protocol simulation task, the non-real-time operating system is shut down for interrupt processing, the real-time operating system is started, and the communication protocol simulation task is processed by the real-time operating system. When the communication protocol simulation task is completed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system continues to run. By carrying a real-time operating system and using the real-time operating system to process the communication protocol simulation task, the effect of ensuring the immediacy and accuracy of the execution of the communication protocol simulation task can be achieved.
[0080] According to an embodiment of the present invention, a task processing method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0081] In this embodiment, a task processing method is provided, which can be used in a baseboard management controller. Figure 1 is a flowchart of a task processing method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0082] Step S101, during the system power-on phase, starting a non-real-time operating system.
[0083] It should be noted that a real-time operating system (RTOS) is a lightweight real-time operating system that can accept and process external time or data at a fast enough speed when it is generated. The processing results can control the production process or respond quickly to the processing system within the specified time, schedule all available resources to complete real-time tasks, and control the coordinated operation of all real-time tasks.
[0084] RTOS provides task priority and task preemption mechanisms, which can solve the problem that the Linux system process preemption cannot guarantee the precise control of the high and low state time lengths of the GPIO pins. However, there are many businesses on the BMC server, and the business values with strict timing requirements account for a small part. Therefore, the BMC cannot only run the RTOS system. It is necessary to combine the advantages of the Linux system and the RTOS system to improve system performance.
[0085] In order to combine the advantages of the Linux system and the RTOS system, the present application starts the non-real-time operating system first, that is, starts the Linux system first, during the system power-on phase.
[0086] Step S102, obtaining tasks to be processed.
[0087] The BMC obtains pending tasks, wherein the pending tasks may be system monitoring, remote management, firmware upgrade and other tasks.
[0088] Step S103: When the task to be processed is a non-real-time task, the non-real-time task is processed using a non-real-time operating system.
[0089] After obtaining the task to be processed, it is determined whether the task to be processed is a real-time task. It can be understood that a real-time task is a task that needs to be processed in real time, such as a communication protocol simulation task.
[0090] If the task to be processed is a non-real-time task and the Linux system runs stably, the non-real-time operating system is used to process the non-real-time task.
[0091] That is to say, the Linux system is used to handle most of the daily tasks, that is, non-real-time tasks.
[0092] Step S104, when the task to be processed is a communication protocol simulation task, the non-real-time operating system is shut down for interrupt processing and the real-time operating system is started.
[0093] Figure 2 is a flowchart of a task processing method according to an embodiment of the present invention. Figure 2As shown, the task to be processed is a communication protocol simulation task, that is, if a communication protocol simulation task needs to be run, the non-real-time operating system is shut down for interrupt processing and the real-time operating system is started.
[0094] That is to say, if the task to be processed is a communication protocol simulation task, the BMC will disable interrupt processing for the non-real-time operating system to prevent interruption during system switching and disrupt the entire process. The communication protocol simulation task is a task that simulates the communication protocol used by the BMC to monitor and manage other server hardware.
[0095] After disabling interrupt processing for the non-real-time operating system, the real-time operating system RTOS is started to implement switching between the non-real-time operating system and the real-time operating system, that is, switching from the Linux system to the RTOS system.
[0096] That is to say, when a communication protocol simulation task needs to be run, the Linux system first disables interrupts and then starts the RTOS system.
[0097] Step S105, using the real-time operating system to process the communication protocol simulation task.
[0098] Wherein, when the RTOS system is started and stably operated, the real-time operating system is used to process the current communication protocol simulation task.
[0099] Step S106, when the communication protocol simulation task processing is completed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system continues to run.
[0100] in, Figure 3 This is a schematic diagram of a process of switching from an RTOS system to a Linux system according to an embodiment of the present invention. Figure 3 As shown in the figure, after the RTOS system completes the processing of the communication protocol simulation task, that is, when the RTOS completes the simulation task, the BMC shuts down the interrupt processing of the real-time operating system, stops the system scheduling, and switches back to the Linux system to continue running, that is, switches from the RTOS system to the Linux system, and the Linux system continues to run. Among them, stopping the system scheduling means suspending all tasks except the currently processed communication protocol simulation task.
[0101] It is understandable that if a communication protocol simulation task is received subsequently, the above steps S104 to S106 are executed.
[0102] It should be noted that the RTOS system is much lighter than the Linux system, so the startup and exit of the RTOS system are very fast, and the resource overhead in all aspects is relatively small. Therefore, even if the Linux system frequently switches the RTOS system, the impact on the overall system performance is very limited.
[0103] The task processing method provided in this embodiment uses a non-real-time operating system to process the non-real-time task when the task to be processed is a non-real-time task, and when the task to be processed is a communication protocol simulation task, the non-real-time operating system is shut down for interrupt processing, the real-time operating system is started, and the communication protocol simulation task is processed by the real-time operating system. When the communication protocol simulation task is processed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system continues to run. By carrying a real-time operating system and a non-real-time operating system, dynamic switching between the real-time operating system and the non-real-time operating system is realized during operation, and the communication protocol simulation task is processed by the real-time operating system, thereby ensuring the immediacy and accuracy of the execution of the communication protocol simulation task.
[0104] The task processing method provided in this embodiment can support dynamic switching between the Linux system and the RTOS system on a single-core CPU, so that while supporting communication protocol simulation tasks, it has both the high throughput and high efficiency of the Linux system and the timely processing of services with strict timing requirements such as simulation of the communication protocol by the RTOS system. According to the actual business scenario requirements, it switches to the appropriate operating system to run the corresponding business, thereby achieving services that meet high throughput requirements while meeting strict timing requirements, and realizing the use of software to simulate common communication protocols, thereby saving hardware procurement costs.
[0105] In this embodiment, a task processing method is provided, which can be used in a baseboard management controller. Figure 4 is a flowchart of a task processing method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0106] Step S401: During the system power-on phase, start the non-real-time operating system. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0107] Step S402: Obtain tasks to be processed. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0108] Step S403: If the task to be processed is a non-real-time task, use the non-real-time operating system to process the non-real-time task. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0109] Step S404: when the task to be processed is a communication protocol simulation task, interruption processing is disabled for the non-real-time operating system.
[0110] Step S405: obtaining a snapshot of the operating environment context of the non-real-time operating system.
[0111] After the non-real-time operating system is shut down for interrupt processing, a snapshot of the running environment context of the non-real-time operating system needs to be obtained.
[0112] Among them, the operating environment context snapshot of the Linux system is to save the context environment information when the Linux system is running intact in a method similar to camera photos.
[0113] Step S406: Save the execution environment context snapshot to the first storage area.
[0114] After acquiring the operating environment context snapshot of the non-real-time operating system, the operating environment context snapshot is saved in the first storage area.
[0115] It should be noted that Figure 5 Schematic diagram of memory partition according to an embodiment of the present invention. Figure 5 As shown, this embodiment divides the memory into four areas, wherein the first area is an area specifically used for the Linux system operation, namely, the Linux system dedicated area, including the Linux system kernel and the actual business on the Linux system use this area. The second area is specifically used to save the context snapshot of the Linux system operating environment, namely, the Linux operating environment context dedicated storage area, which mainly saves the snapshot data described in the context of the Linux system operating environment. The third area is a shared memory area used by the Linux system and the RTOS system for communication and data transmission, namely, the shared area of Linux and RTOS, and both systems can access this area. The fourth area is an area specifically used for the RTOS system operation, namely, the RTOS system dedicated area, and the RTOS system and the communication protocol simulation tasks all run on this area.
[0116] It can be understood that the first storage area is the second area of the memory.
[0117] Step S407, start the real-time operating system.
[0118] After the running environment context snapshot of the non-real-time operating system is saved in the first storage area, the real-time operating system is started, that is, switched to the real-time operating system.
[0119] It should be noted that the Linux system directly jumps to the entry function of the RTOS system through function calls to start and run the RTOS system.
[0120] Step S408: Use the real-time operating system to process the communication protocol simulation task. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0121] Step S409, when the communication protocol simulation task processing is completed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system continues to run.
[0122] Specifically, the above step S409 includes:
[0123] Step S4091: using the real-time operating system to obtain a snapshot of the operating environment context in the first storage area.
[0124] Among them, Figure 3 As shown, after the real-time operating system is interrupted, the real-time operating system is used to obtain the operating environment context snapshot of the non-real-time operating system in the first storage area, that is, the RTOS obtains the snapshot of the operating context environment previously saved by Linux.
[0125] Step S4092: based on the snapshot of the operating environment context, restore the operating environment of the non-real-time operating system to continue running the non-real-time operating system.
[0126] After obtaining the running environment context snapshot of the non-real-time operating system, the running environment of the non-real-time operating system is restored based on the running environment context snapshot of the non-real-time operating system, that is, the context environment of the non-real-time operating system is restored, that is, the RTOS restores the running context environment of Linux. After restoring the running environment of the non-real-time operating system, the real-time operating system jumps to the running environment of the non-real-time operating system, that is, the RTOS jumps to the running environment of Linux, and the non-real-time operating system continues to run, that is, Linux continues to run, thereby realizing the switching from the RTOS system to the Linux system.
[0127] The task processing method provided in this embodiment achieves smooth switching between the operating environments of the two operating systems by obtaining a snapshot of the operating environment context of the non-real-time operating system before starting the real-time operating system, and restoring the snapshot of the operating environment context when necessary to restore the non-real-time operating system, thereby ensuring that tasks on the non-real-time operating system can continue to execute after power failure after an interruption, and that the tasks being processed will not be lost or need to be restarted due to operating system switching, thereby improving the overall flexibility and operating efficiency of the system.
[0128] In some optional implementations, the above step S406 includes:
[0129] Step a1, compressing the operating environment context snapshot to obtain a compressed operating environment context snapshot.
[0130] After the operating environment context snapshot of the non-real-time operating system is obtained, the operating environment context snapshot is compressed to obtain a compressed operating environment context snapshot.
[0131] Step a2: Save the compressed operating environment context snapshot to the first storage area.
[0132] After obtaining the compressed execution environment context snapshot, the compressed execution environment context snapshot is saved to the first storage area.
[0133] It can be understood that using the real-time operating system to obtain the operating environment context snapshot in the first storage area includes: using the real-time operating system to obtain a compressed operating environment context snapshot in the first storage area, and decompressing the compressed operating environment context snapshot to obtain the operating environment context snapshot.
[0134] The task processing method provided in this embodiment significantly reduces the size of the snapshot file by compressing the operating environment context snapshot and saving it to the first storage area, thereby storing more snapshots in a limited storage area, improving storage efficiency and enhancing system reliability.
[0135] In some optional implementations, the execution environment context snapshot includes a register context snapshot, and the above step S4092 includes:
[0136] Step b1, obtaining the operating system context and user context of the non-real-time operating system in the second storage area.
[0137] It should be noted that the operating environment context of the Linux system, i.e., a non-real-time operating system, mainly includes register context, operating system context, and user context. Among them, the register context mainly includes the general registers, status registers, control registers, and stack pointers inside the CPU core. The operating system context includes kernel stack information, memory management information, process control blocks, etc. The user context mainly includes the process's running data, user stack, and other information.
[0138] Among them, the operating system context and the user context are essentially stored in an area specifically used for the Linux system, that is, the first area of the above-mentioned memory. Since the memory data in this part is relatively large, there is no need to copy it all, that is, there is no need to save the operating system context snapshot and the user context snapshot. It is only necessary to ensure that the data in the first area of the above-mentioned memory remains unchanged when switching to the RTOS system and processing the communication protocol simulation task in the RTOS system until the RTOS completes the communication protocol simulation task and switches back to the Linux system.
[0139] It can be understood that the second storage area is the first area of the above-mentioned memory.
[0140] The register context may be read through a dedicated instruction of the CPU to obtain a register context snapshot, and the register context snapshot is saved to the first storage area.
[0141] Step b2, based on the operating system context, user context and register context snapshot, restore the operating environment of the non-real-time system.
[0142] Since the data in the first area of the above memory remains unchanged when switching to the RTOS system and while the RTOS system processes the communication protocol simulation task until the RTOS completes the communication protocol simulation task and switches back to the Linux system, after switching back to the Linux system, it is only necessary to restore the register context of the CPU core according to the register context snapshot to ensure that the Linux system is restored to the operating environment before switching to the RTOS system, so that the Linux system continues to run in the previous state.
[0143] The task processing method provided in this embodiment obtains the operating system context and user context of the non-real-time operating system in the second storage area, and restores the operating environment of the non-real-time system based on the operating system context, user context and register context snapshots. In essence, it is only necessary to restore the register context snapshot stored in the first storage area to restore the operating environment of the non-real-time system, thereby improving the recovery speed of the operating environment of the non-real-time system.
[0144] In some optional implementations, before starting the real-time operating system, the task processing method further includes:
[0145] Step c1, parse the communication protocol simulation task to obtain parameter information and number information of the communication protocol simulation task.
[0146] Before starting the real-time operating system, the BMC parses the communication protocol simulation task to obtain parameter information and number information of the communication protocol simulation task. The parameter information of the communication protocol simulation task is the parameter information required to execute the communication protocol simulation task, and the number information of the communication protocol simulation task can be determined according to the preset communication protocol simulation task and number mapping table. It should be noted that the preset communication protocol simulation task and number mapping table are set by the technician.
[0147] Step c2: when the data volume of the parameter information is greater than a preset data volume threshold, the parameter information is written into a third storage area, and address information of the parameter information in the third storage area and length information of the parameter information are obtained.
[0148] in, Figure 6This is a schematic diagram of a process of switching from a Linux system to an RTOS system according to an embodiment of the present invention. Figure 6 As shown, Linux writes the task number and parameters into registers, and writes the data to be transferred into shared memory.
[0149] That is to say, after obtaining the parameter information of the communication protocol simulation task, it is determined whether the data volume of the parameter information is greater than the preset data volume threshold. The preset data volume threshold is set by a technician. Exemplarily, the preset data volume threshold is 2 32-bit data.
[0150] If the data volume of the parameter information is greater than the preset data volume threshold, it means that the data volume currently required to be transmitted to the RTOS system is large, and the parameter information is written into the third storage area, which is the third area of the memory, namely the shared memory area.
[0151] After the parameter information is written into the third storage area, address information of the parameter information in the third storage area and length information of the parameter information are acquired.
[0152] Step c3, writing the number information, the address information of the parameter information in the third storage area and the length information of the parameter information into the target register as the communication protocol simulation task information.
[0153] After acquiring the address information of the parameter information in the third storage area and the length information of the parameter information, the number information of the communication protocol simulation task, the address information of the parameter information in the third storage area and the length information of the parameter information are written into the target register as the communication protocol simulation task information.
[0154] It should be noted that the execution order of the above steps c1 to c3 is before the execution order of the above step S405, that is, after Linux writes the task number and parameters into the register and writes the data to be transferred into the shared memory, Linux saves the runtime context environment, and then Linux jumps to the entry address of the RTOS, and the RTOS system starts running.
[0155] The above step S408 includes:
[0156] Step d1, using the real-time operating system to obtain the communication protocol simulation task information in the target register, and processing the communication protocol simulation task based on the communication protocol simulation task information.
[0157] After switching to the real-time operating system, the real-time operating system is used to obtain the communication protocol simulation task information in the target memory, and the communication protocol simulation task is processed based on the communication protocol simulation task information.
[0158] The task processing method provided in this embodiment simplifies the complexity of real-time operating system task processing by storing communication protocol simulation task information in the target register, reduces potential memory access errors, and enhances the stability and reliability of the system.
[0159] In some optional implementations, the task processing method further includes:
[0160] Step e1, when the data volume of the parameter information is not greater than a preset data volume threshold, the number information and the parameter information are written into the target register as communication protocol simulation task information.
[0161] Among them, the data volume of the parameter information is not greater than the preset data volume threshold, which means that the parameter information can be saved using the target register without using the shared memory area to save the parameter information. The number information and parameter information can be directly written into the target register as the communication protocol simulation task information.
[0162] The task processing method provided in this embodiment can write directly into the target register without performing additional external storage operations when the amount of parameter information is small, thereby simplifying the process of the real-time operating system obtaining communication protocol simulation task information, reducing system overhead and improving processing speed.
[0163] In some optional implementations, the above step d1 includes:
[0164] Step d11, using the real-time operating system to read the number information of the communication protocol simulation task in the target register.
[0165] It can be understood that the communication protocol simulation task information is transmitted through the target register and the shared memory area. Among them, the target register can transmit 4 32-bit data, and the data format is defined as follows:
[0166] struct msg{
[0167] UINT32 taskId;
[0168] UINT32 flag;
[0169] UINT32 data0;
[0170] UINT32 data1;
[0171] };
[0172] Among them, taskId indicates the number of the communication protocol simulation task that RTOS needs to run. Flag is a read flag. Flag 0 indicates that the parameters transmitted this time are short message parameters, and flag 1 indicates that the parameters transmitted this time are long message parameters. When short message parameters are transmitted, data0 and data1 are used to store the parameter information transmitted by the Linux system to the RTOS system. That is to say, if short message parameters are transmitted, the Linux system can only transmit up to 2 additional 32-bit data.
[0173] It should be noted that the data volume of the short message parameter, i.e. the parameter information, is greater than the preset data volume threshold, while the data volume of the long message parameter, i.e. the parameter information, is not greater than the preset data volume threshold.
[0174] When a long message parameter is passed, data0 is used to indicate the address information of the long message parameter in the shared memory area, and data1 is used to indicate the length information of the long message parameter information in the shared memory area. That is to say, the actual parameter information is stored in the shared memory area of the Linux system and the RTOS system.
[0175] Step d12, determining the communication protocol simulation task to be processed based on the numbering information.
[0176] After obtaining the number information of the communication protocol simulation task from the target register, the real-time operating system can determine the communication protocol simulation task it needs to run according to the number information, that is, the real-time operating system can determine the communication protocol simulation task to be processed.
[0177] Step d13, reading the read flag value of the parameter information in the target register.
[0178] The read flag value in the read target register is the value corresponding to the flag in the read target register.
[0179] Step d14, when the read flag value of the parameter information is the first preset value, determining whether the parameter information of the communication protocol simulation task is stored in the target register.
[0180] The first preset value may be 0. If the parameter information read flag value is the first preset value, it means that the parameter information is a short message parameter, and it is determined that the target register stores the parameter information of the communication protocol simulation task.
[0181] Step d15, reading parameter information of the communication protocol simulation task from the target register, and processing the communication protocol simulation task to be processed based on the parameter information of the communication protocol simulation task.
[0182] The data corresponding to the data0 and data1 fields in the target register are read to obtain parameter information of the communication protocol simulation task, and the real-time operating system processes the communication protocol simulation task to be processed based on the parameter information of the communication protocol simulation task.
[0183] Step d16, when the parameter information read flag value is the second preset value, determining that the target register stores address information of the parameter information in the third storage area and length information of the parameter information.
[0184] The second preset value may be 1. The parameter information read flag value is the second preset value, indicating that the parameter information is a long information parameter, and the address information of the parameter information of the communication protocol simulation task to be processed is stored in the target register in the third storage area and the length information of the parameter information.
[0185] Step d17, obtaining address information of the parameter information in the third storage area and length information of the parameter information from the target register.
[0186] The data corresponding to the data0 field in the target register is read to obtain the address information of the parameter information of the communication protocol simulation task in the third storage area.
[0187] Read the data corresponding to the data1 field in the target register to obtain the length information of the parameter information of the communication protocol simulation task.
[0188] Step d18, based on the address information of the parameter information in the third storage area and the length information of the parameter information, the parameter information is obtained from the third storage area, and the communication protocol simulation task to be processed is processed based on the parameter information.
[0189] After obtaining the address information of the parameter information of the communication protocol simulation task in the third storage area and the length information of the parameter information, the parameter information is obtained from the third storage area based on the address information of the parameter information in the third storage area and the length information of the parameter information, and the communication protocol simulation task to be processed is processed based on the parameter information.
[0190] The task processing method provided in this embodiment determines the storage location of parameter information by reading the flag value, thereby realizing on-demand access, which not only optimizes memory usage, but also maintains efficient processing of large amounts of parameter information, thereby improving the efficiency of the real-time operating system in acquiring parameter information and the processing speed of the communication protocol simulation tasks to be processed.
[0191] It should be noted that the embodiment of the present invention is described by taking a single-core CPU system as an example. In fact, a multi-core system can also use the task processing solution of the present invention. In addition, the present invention is described by taking two typical operating systems, the Linux system and the RTOS system, as examples. In fact, there is no restriction on the use of the operating system. Any two different operating systems can use the task processing method of the embodiment of the present invention to implement task processing.
[0192] In some optional implementations, the task processing method further includes:
[0193] In the process of processing the non-real-time task by using the non-real-time operating system, the processing status of the non-real-time task is monitored in real time.
[0194] When it is detected that the processing state of the non-real-time task is an abnormal state, the type of the abnormal state is determined.
[0195] When the type of the abnormal state is a temporary abnormality, the non-real-time task is processed again.
[0196] The non-real-time task can be reprocessed by rolling back to the state before the non-real-time task is executed.
[0197] When the abnormal state is of a type that cannot be recovered, an alarm message is issued so that the technical staff can take timely measures according to the alarm message.
[0198] It is understandable that in the process of processing the communication protocol simulation task using the real-time operating system, it is also necessary to monitor the processing status of the communication protocol simulation task in real time. When it is detected that the processing status of the communication protocol simulation task is an abnormal state, the type of the abnormal state is determined. When the type of the abnormal state is a temporary abnormality, the communication protocol simulation task is reprocessed. Among them, the communication protocol simulation task can be reprocessed by rolling back to the state before the communication protocol simulation task is executed. When the type of the abnormal state is an unrecoverable abnormality, an alarm message is issued so that the technician can take timely measures according to the alarm message.
[0199] The task processing method provided in this embodiment can detect abnormal situations in time and take corresponding measures to avoid task processing failure or system failure, thereby improving system reliability by monitoring the task processing status in real time during the task processing process.
[0200] In this embodiment, a task processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0201] This embodiment provides a task processing device, such as Figure 7 As shown, including:
[0202] The first startup module 701 is used to start the non-real-time operating system during the system power-on phase.
[0203] The acquisition module 702 is used to acquire tasks to be processed.
[0204] The first processing module 703 is used to process the non-real-time task by using the non-real-time operating system when the task to be processed is a non-real-time task.
[0205] The second starting module 704 is used to disable interrupt processing for the non-real-time operating system and start the real-time operating system when the task to be processed is a communication protocol simulation task.
[0206] The second processing module 705 is used to process the communication protocol simulation task using a real-time operating system.
[0207] The running module 706 is used to shut down the interrupt processing of the real-time operating system and continue to run the non-real-time operating system when the communication protocol simulation task processing is completed.
[0208] In some optional implementations, before starting the real-time operating system, the task processing device further includes:
[0209] The first acquisition unit is used to acquire a snapshot of the operating environment context of the non-real-time operating system.
[0210] The first saving unit is used to save the operating environment context snapshot to the first storage area.
[0211] The operation module 706 includes:
[0212] The second acquisition unit is used to acquire the operating environment context snapshot in the first storage area by using the real-time operating system.
[0213] The first recovery unit is used to recover the operating environment of the non-real-time operating system based on the operating environment context snapshot to continue running the non-real-time operating system.
[0214] In some optional implementations, the first storage unit includes:
[0215] The compression unit is used to compress the running environment context snapshot to obtain a compressed running environment context snapshot.
[0216] The first saving subunit is used to save the compressed operating environment context snapshot to the first storage area.
[0217] In some optional implementations, the first recovery unit includes:
[0218] The third acquisition unit is used to acquire the operating system context and the user context of the non-real-time operating system in the second storage area.
[0219] The first recovery subunit is used to recover the operating environment of the non-real-time system based on the operating system context, the user context and the register context snapshot.
[0220] In some optional implementations, before starting the real-time operating system, the task processing device further includes:
[0221] The fourth acquisition unit is used to parse the communication protocol simulation task to obtain parameter information and number information of the communication protocol simulation task.
[0222] The fifth acquisition unit is used to write the parameter information into the third storage area when the data volume of the parameter information is greater than a preset data volume threshold, and to acquire address information of the parameter information in the third storage area and length information of the parameter information.
[0223] The first writing unit is used to write the numbering information, the address information of the parameter information in the third storage area and the length information of the parameter information into the target register as the communication protocol simulation task information.
[0224] The second processing module 705 includes:
[0225] The first processing unit is used to obtain the communication protocol simulation task information in the target register by using the real-time operating system, and process the communication protocol simulation task based on the communication protocol simulation task information.
[0226] In some optional implementations, the task processing device further includes:
[0227] The second writing unit is used to write the numbering information and the parameter information as the communication protocol simulation task information into the target register when the data volume of the parameter information is not greater than a preset data volume threshold.
[0228] In some optional implementations, the first processing unit includes:
[0229] The first reading unit is used to read the serial number information of the communication protocol simulation task in the target register by using the real-time operating system.
[0230] The first determining unit is used to determine the communication protocol simulation task to be processed based on the number information.
[0231] The second reading unit is used to read the reading flag value of the parameter information in the target register.
[0232] The second determining unit is used to determine whether the parameter information of the communication protocol simulation task is stored in the target register when the read flag value of the parameter information is a first preset value.
[0233] The third reading unit is used to read the parameter information of the communication protocol simulation task from the target register, and process the communication protocol simulation task to be processed based on the parameter information of the communication protocol simulation task.
[0234] The third determining unit is used to determine the address information of the parameter information in the third storage area and the length information of the parameter information stored in the target register when the read flag value of the parameter information is the second preset value.
[0235] The sixth acquisition unit is used to acquire address information of the parameter information in the third storage area and length information of the parameter information from the target register.
[0236] The seventh acquisition unit is used to acquire the parameter information from the third storage area based on the address information of the parameter information in the third storage area and the length information of the parameter information, and process the communication protocol simulation task to be processed based on the parameter information.
[0237] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0238] The task processing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0239] The embodiment of the present invention also provides a computer device having the above Figure 7 The task processing device shown.
[0240] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8As shown, the computer device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Each component utilizes different buses to communicate with each other, and can be installed on a common mainboard or installed in other ways as required. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 801 is taken as an example.
[0241] The processor 801 may be a central processing unit, a network processor or a combination thereof. The processor 801 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.
[0242] The memory 802 stores instructions executable by at least one processor 801, so that the at least one processor 801 executes the method shown in the above embodiment.
[0243] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 802 may optionally include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0244] The memory 802 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 802 may also include a combination of the above types of memory.
[0245] The computer device also includes a communication interface 803, which is used for the computer device to communicate with other devices or a communication network.
[0246] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0247] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0248] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A task processing method, characterized in that: The method comprises: During the system power-on phase, start the non-real-time operating system; Get pending tasks; In the case where the task to be processed is a non-real-time task, using the non-real-time operating system to process the non-real-time task; In the case where the task to be processed is a communication protocol simulation task, shutting down the interrupt processing of the non-real-time operating system and starting the real-time operating system; Processing the communication protocol simulation task using the real-time operating system; When the communication protocol simulation task is completed, the real-time operating system is shut down for interrupt processing, and the non-real-time operating system continues to run.
2. The method according to claim 1, characterized in that Before starting the real-time operating system, the method further includes: Obtaining a snapshot of the operating environment context of the non-real-time operating system; Saving the operating environment context snapshot to a first storage area; The continuing to run the non-real-time operating system comprises: Using the real-time operating system to obtain the operating environment context snapshot in the first storage area; Based on the operating environment context snapshot, the operating environment of the non-real-time operating system is restored to continue running the non-real-time operating system.
3. The method according to claim 2, characterized in that Saving the operating environment context snapshot to the first storage area includes: Compressing the operating environment context snapshot to obtain a compressed operating environment context snapshot; The compressed execution environment context snapshot is saved to the first storage area.
4. The method according to claim 2, characterized in that: The operating environment context snapshot includes a register context snapshot, and the restoring the operating environment of the non-real-time operating system based on the operating environment context snapshot includes: Acquire an operating system context and a user context of the non-real-time operating system in the second storage area; The operating environment of the non-real-time system is restored based on the operating system context, user context and register context snapshots.
5. The method according to claim 1, characterized in that Before starting the real-time operating system, the method further includes: Parsing the communication protocol simulation task to obtain parameter information and number information of the communication protocol simulation task; When the data volume of the parameter information is greater than a preset data volume threshold, the parameter information is written into a third storage area, and address information of the parameter information in the third storage area and length information of the parameter information are obtained; Writing the number information, the address information of the parameter information in the third storage area, and the length information of the parameter information into a target register as communication protocol simulation task information; The processing of the communication protocol simulation task by using the real-time operating system includes: The real-time operating system is used to obtain the communication protocol simulation task information in the target register, and the communication protocol simulation task is processed based on the communication protocol simulation task information.
6. The method according to claim 5, characterized in that The method further comprises: When the data volume of the parameter information is not greater than a preset data volume threshold, the number information and the parameter information are written into the target register as communication protocol simulation task information.
7. The method according to claim 5, characterized in that The using the real-time operating system to obtain the communication protocol simulation task information in the target register, and processing the communication protocol simulation task based on the communication protocol simulation task information includes: Using the real-time operating system to read the serial number information of the communication protocol simulation task in the target register; Based on the numbering information, determining a communication protocol simulation task to be processed; Reading a read flag value of the parameter information in the target register; In a case where the read flag value of the parameter information is a first preset value, determining that the parameter information of the communication protocol simulation task is stored in the target register; Reading parameter information of the communication protocol simulation task from the target register, and processing the communication protocol simulation task to be processed based on the parameter information of the communication protocol simulation task; In a case where the read flag value of the parameter information is a second preset value, determining that the target register stores address information of the parameter information in the third storage area and length information of the parameter information; Acquire address information of the parameter information in the third storage area and length information of the parameter information from the target register; Based on the address information of the parameter information in the third storage area and the length information of the parameter information, the parameter information is acquired from the third storage area, and the communication protocol simulation task to be processed is processed based on the parameter information.
8. A task processing device, characterized in that: The device comprises: The first startup module is used to start the non-real-time operating system during the system power-on phase; The acquisition module is used to obtain tasks to be processed; A first processing module, configured to process the non-real-time task by using the non-real-time operating system when the task to be processed is a non-real-time task; A second startup module is used for shutting down the interrupt processing of the non-real-time operating system and starting the real-time operating system when the task to be processed is a communication protocol simulation task; A second processing module, used for processing the communication protocol simulation task using the real-time operating system; The running module is used to shut down the interrupt processing of the real-time operating system and continue to run the non-real-time operating system when the communication protocol simulation task processing is completed.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the task processing method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the task processing method according to any one of claims 1 to 7.
