Network connection state acquisition method for Kylin V10 system
The network connection status of Kylin V10 system equipment is obtained loop through the OpenMP parallel programming interface, which solves the problem of inefficiency in the existing technology, and achieves rapid acquisition and improvement of monitoring efficiency.
Patent Information
- Application Number
- CN202510184038.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-16
AI Technical Summary
The existing methods of obtaining the network connection status of the device require obtaining the network status one by one, resulting in low efficiency, especially when the number of target devices is large and the network is not connected.
Through the shared memory parallel programming interface OpenMP, the network connection status between the target host and other devices is obtained in a circular parallel manner, and the network smoothness is tested multiple times using shell scripts and ping commands.
The speed of quickly obtaining the network connection status of a large number of devices is realized, the work efficiency during device status monitoring is improved, and the flexibility is added to exit the network connection status acquisition process at any time.
Smart Images

Figure CN120017554A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of network connection technology, and more specifically, to a method for obtaining the network connection status of a Kylin V10 system. Background Art
[0002] With the advancement of the domestic information technology wave, under the Kylin V10 embedded operating system, some monitoring software and test software often need to monitor the network connection status of a large number of devices, so that users can find network problems in time and quickly locate them. At present, the commonly used method to obtain the network connection status of the device is to execute the ping command to check the network connection status between the current host and the target device. However, when the number of target devices is too large, it will take a long time to obtain the network status one by one, especially when the network is not connected, which greatly reduces the efficiency. Summary of the invention
[0003] In view of the defects of the prior art, the purpose of this application is to provide a method for obtaining the network connection status of the Kylin V10 system, aiming to solve the problem of low efficiency caused by the existing method of obtaining the network connection status of the device, which requires obtaining the network status one by one.
[0004] To achieve the above objectives, in a first aspect, the present application provides a method for obtaining the network connection status of a Kylin V10 system, comprising: Through a shared memory parallel programming interface (Open Multi-Processing, OpenMP), the network connection status between the target host and other devices is obtained in parallel in a cyclic manner, wherein the operating system of the target host is the KylinV10 system; The obtaining of the network connection status between the target host and other devices includes: Use the shell script to test the network connectivity of the target host and other devices multiple times through the ping command to obtain the network connection status.
[0005] This application uses a method for obtaining the network connection status between the current host and each device through a cyclic traversal method and shell script programming technology, and parallelizes the method through the OpenMP parallel computing interface to quickly obtain the results. This can speed up the acquisition of the network connection status of a large number of devices and improve the work efficiency when monitoring the device status.
[0006] According to a method for obtaining the network connection status of a Kylin V10 system provided in the present application, the network connection status between a target host and other devices is obtained in parallel in a cyclic manner through a shared memory parallel programming OpenMP parallel computing interface, including: A preset number of branch threads are derived through OpenMP, and each branch thread loads a traversal process; The traversal process includes: Get the network connection status between the target host and the target device.
[0007] This application derives several branch threads through OpenMP, and completes the parallel execution of the entire traversal process through the branch threads, so as to quickly obtain the results, which can speed up the acquisition of the network connection status of a large number of devices and improve the work efficiency during device status monitoring.
[0008] According to a method for obtaining the network connection status of a Kylin V10 system provided by the present application, the method further includes: An interrupt response flag judgment is established in the loop, and the state of the interrupt response flag includes non-interruption and interruption. When the interrupt response flag state is interruption, the loop exits.
[0009] The present application establishes an interrupt response identification judgment within a loop, and can exit the network connection status acquisition process at any time, thereby increasing flexibility.
[0010] According to a method for obtaining the network connection status of a Kylin V10 system provided by the present application, the method further includes: Before obtaining the network connection status between the target host and other devices in parallel in a cyclic manner, configuring the relevant information of the other devices through the Qt program graphical user interface and performing a data legitimacy check; If the data validity check is correct, the relevant information of the other devices is saved in the configuration file.
[0011] According to a method for obtaining the network connection status of a Kylin V10 system provided in the present application, the relevant information of other devices includes a whether to obtain a network connection status identifier, and the whether to obtain a network connection status identifier is used to determine whether to obtain the network connection status of the device.
[0012] This application can freely configure the device for which the network connection status is to be obtained, thereby improving the flexibility of obtaining the network connection status.
[0013] According to a method for obtaining the network connection status of a Kylin V10 system provided by the present application, the method further includes: After one cycle is finished, the network connection status is displayed in a visual manner on the Qt program graphical user interface, and the next cycle is entered to continue to obtain the network connection status between the target host and other devices.
[0014] This application visualizes the obtained network connection status results through the Qt program graphical user interface.
[0015] In a second aspect, the present application provides a network connection status acquisition device for a Kylin V10 system, comprising: An acquisition module is used to acquire the network connection status between the target host and other devices in parallel in a cyclic manner through the shared memory parallel programming interface OpenMP, wherein the operating system of the target host is the Kylin V10 system; The obtaining of the network connection status between the target host and other devices includes: Use the shell script to test the network connectivity of the target host and other devices multiple times through the ping command to obtain the network connection status.
[0016] In a third aspect, the present application provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the programs stored in the memory are executed, the processor is used to execute the method for obtaining the network connection status for the Kylin V10 system described in the first aspect or any possible implementation of the first aspect.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method for obtaining the network connection status for the Kylin V10 system described in the first aspect or any possible implementation of the first aspect.
[0018] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method for obtaining the network connection status for the KylinV10 system described in the first aspect or any possible implementation of the first aspect.
[0019] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0020] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the prior art: A method for obtaining the network connection status between the current host and each device is adopted through a cyclic traversal method and shell script programming technology, and the method is parallelized through the OpenMP parallel computing interface to quickly obtain the results. This can speed up the acquisition of the network connection status of a large number of devices and improve the work efficiency of device status monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 It is a flowchart of a method for obtaining the network connection status of a Kylin V10 system provided in an embodiment of the present application; Figure 2 This is a schematic diagram of the shell script execution process provided by the embodiment of the present application; Figure 3 This is a schematic diagram of a process for obtaining network connection status in parallel provided by an embodiment of the present application; Figure 4 It is a schematic diagram of the overall process provided by the embodiment of the present application; Figure 5 It is a structural diagram of a network connection status acquisition device for a Kylin V10 system provided in an embodiment of the present application; Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.
[0025] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0026] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
[0027] First, the following contents are introduced: Parallel computing is a computing method that distributes a computing task to multiple / multi-core processors and runs them simultaneously, thereby speeding up the computing speed. Unlike serial computing, parallel computing divides a large problem into several small problems, and processes them simultaneously on multiple computers or multi-core central processing units (CPUs), and finally summarizes the results to get the final answer. Parallel computing has the advantages of high efficiency, scalability, and flexibility, and has a wide range of applications in scientific computing, data processing, and simulation. In addition, as processors have completely entered the multi-core era, coupled with the emergence of various parallel tools, people have more means to perform parallel computing, which improves computing efficiency.
[0028] Next, combine Figure 1-Figure 4 The method for obtaining the network connection status of the Kylin V10 system provided in the embodiment of the present application is introduced.
[0029] Figure 1 is a flow chart of a method for obtaining the network connection status of a Kylin V10 system provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps: Step 100, using the shared memory parallel programming interface OpenMP, in parallel, in a loop, obtain the network connection status between the target host and other devices, wherein the operating system of the target host is the Kylin V10 system; Get the network connection status between the target host and other devices, including: Use the shell script to test the network connectivity of the target host and other devices multiple times through the ping command to obtain the network connection status.
[0030] OpenMP is an application programming interface for parallel programming. It is optimized for parallel technology of shared memory multi-processor systems and is a portable and scalable parallel programming model.
[0031] When monitoring the network connection status of a large number of devices, since the network connection status of different devices and the current host is independent, this application uses OpenMP to assign different network connection status monitoring tasks to different processes for parallel processing, thereby speeding up the acquisition of the network connection status of a large number of devices.
[0032] Specifically, the network connection status between the target host and other devices is obtained in parallel in a loop through OpenMP. When obtaining the network connection status, the network connectivity between the target host and other devices is tested multiple times through the ping command using shell script parameters to obtain the network connection status.
[0033] Figure 2 It is a schematic diagram of the shell script execution process provided by the embodiment of the present application, such as Figure 2 As shown, in one embodiment of the present application, the execution process of the shell script mainly includes obtaining script input parameters, judging the legitimacy of the parameters, using the ping command to obtain the network connection status between the host and the target device, the second ping judgment, and outputting a normal or error print, etc. Among them, using the ping command to obtain the network connection status between the host and the target device will judge twice, and after both times are successful, the network connection status is printed out to judge the stability of the network connection status over a period of time. The specific process is as follows: 1a. Get the script input parameter, i.e. the device IP address; 2a. Determine the validity of the parameters. If they are correct, proceed to the next step. If they are wrong, output the error code: parametererror and the script execution ends. 3a. Use the ping command to obtain the network connection status between the host and the target device; 4a. If the status is correct, execute the next step. If it is wrong, output the error code: ping ip address error, and the script execution ends; 5a. Get the status twice. If it is satisfied, go to the next step. If it is not satisfied, go back to step 3a. 6a. The network connection between the host and the device with the current IP address is normal, and the output is printed normally: ping IP address succeed; 7a. The script is executed.
[0034] The network connection status acquisition method for the Kylin V10 system provided in this application is mainly used in the field of equipment monitoring and testing under domestic operating systems such as the Kylin V10 system. It can solve the current problem of long time consumption in monitoring the network connection status of a large number of devices. The more devices there are, the more obvious the effect is.
[0035] The present application provides a method for obtaining the network connection status of the Kylin V10 system, which obtains the network connection status between the current host and each device through a cyclic traversal method and shell script programming technology, and parallelizes the method through the OpenMP parallel computing interface to quickly obtain the result, which can speed up the acquisition of the network connection status of a large number of devices and improve the work efficiency during device status monitoring.
[0036] In some embodiments, step 100 specifically includes: Step 1001, deriving a preset number of branch threads through OpenMP, each branch thread loads a traversal process; The traversal process includes: Get the network connection status between the target host and the target device.
[0037] Optionally, the preset number can be set by the designer according to actual conditions, and the preset number is related to the number of CPU cores.
[0038] By calling the OpenMP parallel computing interface and specifying the number of threads to be executed in parallel, the entire traversal process is parallelized and several branch threads are derived. Each thread loads a traversal process. The traversal process is to obtain the network connection status between the host and each device. Each traversal process is independent of each other.
[0039] In some embodiments, the method further comprises: Step 110, establishing an interrupt response flag judgment in the loop, the state of the interrupt response flag includes non-interruption and interruption, when the interrupt response flag state is interruption, the loop exits.
[0040] Start to obtain the network connection status between the current host and the device in a loop, and establish interrupt response identification judgments at various places in the loop. The status of the interrupt response identification (abort) includes non-interruption (false) and interruption (true). If the program receives an interrupt signal, the corresponding slot function will be automatically called, and the interrupt response identification (abort) status will be changed in the slot function. At this time, when the loop body in the monitoring thread runs to a certain interrupt response identification judgment, when the interrupt response identification (abort) status is interruption (true), the loop exits, the monitoring thread ends immediately, and the program stops monitoring the network connection status.
[0041] In some embodiments, before step 100, the method further includes: Step 120, configuring the relevant information of other devices through the Qt program graphical user interface and performing data legitimacy check; Step 130, if the data validity check is correct, save the relevant information of other devices into the configuration file.
[0042] Optionally, you can choose Qt, an open source graphical interface application development environment that supports cross-operating systems, for programming. Through the Qt program graphical user interface, you can modify and save the name, IP address and other information of each device into a configuration file for use in subsequent network connection status acquisition.
[0043] In some embodiments, the relevant information of other devices includes whether to obtain a network connection status identifier, and whether to obtain a network connection status identifier is used to determine whether to obtain the network connection status of the device.
[0044] Optionally, the status of whether to obtain the network connection status indicator includes yes (1) and no (0), and if it is no, it means that the current device does not need to obtain the network connection status temporarily.
[0045] Figure 3 is a schematic diagram of a process of obtaining network connection status in parallel provided by an embodiment of the present application, such as Figure 3 As shown, in one embodiment of the present application, the specific execution process of obtaining the network connection status in parallel is as follows: 1b. Call the OpenMP parallel computing interface, specify the number of threads to be executed in parallel, parallelize the entire traversal process below, derive several branch threads, and each thread loads a traversal process; 2b. Read the configuration information of each device in the device information queue in a traversal manner according to the sequence number, and obtain the network connection status between the host and each device. Each status acquisition during the traversal process is independent of each other; 3b. Interrupt response flag judgment. The status of the interrupt response flag (abort) includes non-interrupt (false) and interrupt (true). In the process of obtaining the network connection status in parallel, there will also be an interrupt response flag judgment. When the interrupt response flag (abort) status is interrupt (true), the current parallel traversal process is exited. After exiting, when the interrupt response flag judgment is executed in the loop body, the loop exits, the monitoring thread ends immediately, and the program stops monitoring the network connection status; 4b. In the thread, the device IP information and whether to obtain the network connection status flag are read out from the device information queue in sequence. The whether to obtain the network connection status flag is used to determine whether to obtain the network connection status of the device. If it is no (0), skip the device and start the next one. 5b. The device IP information is used as a shell script parameter. The shell script is called and executed in the thread. The shell script uses the ping command to test the network connectivity between the host and the target device multiple times to obtain the network connection status. 6b. After the shell script is executed, the result is returned to the thread and saved in the result cache container according to the sequence number in the device information queue; 7b. Different threads obtain the network connection status between the current host and a device each time. After each thread completes the acquisition, it automatically reads the IP information of the next device from the device information queue and starts to obtain it again. All threads stop until the network connection status of all devices in the device information queue is obtained. At this time, the result cache container saves the network connection status results of all devices that have been obtained; 8b. After the parallel processing is completed, the content in the result cache container is sent out through a signal.
[0046] In some embodiments, the method further comprises: Step 140, after one cycle ends, the network connection status is displayed in a visual manner on the Qt program graphical user interface, and the next cycle is entered to continue to obtain the network connection status between the target host and other devices.
[0047] Optionally, after each loop is finished, the network connection status result can be saved in a result cache container, and finally the data in the result cache container is sent to the Qt platform, and then the network connection status result is displayed in a visual manner on the Qt program graphical user interface.
[0048] Figure 4 It is a schematic diagram of the overall process provided by the embodiment of the present application, such as Figure 4 As shown, in one embodiment of the present application, the overall process of the method for obtaining the network connection status of the Kylin V10 system provided by the present application includes the following steps: 1c. Through the Qt program graphical user interface, according to the actual device information, modify the name, IP address, whether to obtain the network connection status mark and other information of each device on the interface. The status of whether to obtain the network connection status mark includes yes (1) and no (0). If it is no (0), it means that the current device does not need to obtain the network connection status; 2c. Save the modified information. After the Qt program receives the save signal from the interface, the corresponding slot function will be automatically called by the Qt platform to parse the device information data of the interface, perform a data validity check, and finally save the device information to the configuration file. 3c. Through the Qt program graphical user interface, after clicking Start Monitoring, the Qt program receives the start monitoring signal from the interface end, and the corresponding slot function is automatically called by the Qt platform. The slot function calls the monitoring thread class, enters the monitoring thread, and starts to obtain the current network connection status between the host and the device in a cyclic manner; 4c. In the loop, initialize the device information queue, result cache container and other variables, etc.; 5c. Interrupt response flag judgments are established at various locations within the loop. The states of the interrupt response flag (abort) include non-interrupt (false) and interrupt (true). If the program receives an interrupt signal, the corresponding slot function will be automatically called by the Qt platform, and the interrupt response flag (abort) state will be changed in the slot function. At this time, when the loop body in the monitoring thread runs to a certain interrupt response flag judgment, when the interrupt response flag (abort) state is interrupt (true), the loop exits, the monitoring thread ends immediately, and the program stops monitoring the network connection status; 6c. Load the configuration file, read and parse the configuration information of each device, and save the device IP information and whether to obtain the network connection status flag into the device information queue; 7c. Call the OpenMP parallel computing interface to obtain the network connection status of the current host and each device in parallel, and finally send the content in the result cache container through a signal; 8c. In the monitoring thread, after one loop ends, the loop continues to obtain the device network connection status and enters the next loop. The monitoring thread will continue to run until an interrupt signal is received to exit the current loop and stop monitoring; 9c. The results in the monitoring thread are transferred to the receiving end of the upper layer of Qt through signals. The slot function of the receiving end is bound to the signal and waits to receive the parsed data. Once the corresponding signal is sent, the slot function will be automatically called by the Qt platform to complete the parsing of the monitoring result data. The parsed data will be placed in the buffered data structure and the results will be displayed in a visual form on the Qt program user interface.
[0049] Figure 5 is a schematic diagram of the structure of a device for acquiring the network connection status of a Kylin V10 system provided in an embodiment of the present application, such as Figure 5 As shown, the system includes an acquisition module 510, wherein: The acquisition module 510 is used to acquire the network connection status between the target host and other devices in parallel in a cyclic manner through the shared memory parallel programming interface OpenMP, wherein the operating system of the target host is the Kylin V10 system; Get the network connection status between the target host and other devices, including: Use the shell script to test the network connectivity of the target host and other devices multiple times through the ping command to obtain the network connection status.
[0050] It should be understood that the above-mentioned system is used to execute the methods in the above-mentioned embodiments. The implementation principles and technical effects of the corresponding program modules in the system are similar to those described in the above-mentioned methods. The working process of the system can refer to the corresponding process in the above-mentioned method and will not be repeated here.
[0051] Based on the method in the above embodiment, Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, an embodiment of the present application provides an electronic device, which may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the network connection status acquisition method for the Kylin V10 system in the above embodiment.
[0052] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method for obtaining the network connection status of the Kylin V10 system described in each embodiment of the present application.
[0053] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the network connection status acquisition method for the Kylin V10 system in the above embodiment.
[0054] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method for obtaining the network connection status for the Kylin V10 system in the above embodiment.
[0055] It is understandable that the processor in the embodiment of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0056] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0057] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0058] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0059] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for obtaining the network connection status of a Kylin V10 system, characterized in that: include: The network connection status between the target host and other devices is obtained in parallel in a cyclic manner through the shared memory parallel programming interface OpenMP, wherein the operating system of the target host is the Kylin V10 system; The obtaining of the network connection status between the target host and other devices includes: Use the shell script to test the network connectivity of the target host and other devices multiple times through the ping command to obtain the network connection status.
2. The method for obtaining the network connection status of the Kylin V10 system according to claim 1, characterized in that: The method of obtaining the network connection status between the target host and other devices in parallel in a cyclic manner through the shared memory parallel programming OpenMP parallel computing interface includes: A preset number of branch threads are derived through OpenMP, and each branch thread loads a traversal process; The traversal process includes: Get the network connection status between the target host and the target device.
3. The method for obtaining the network connection status of the Kylin V10 system according to claim 1, characterized in that: The method further comprises: An interrupt response flag judgment is established in the loop, and the state of the interrupt response flag includes non-interruption and interruption. When the interrupt response flag state is interruption, the loop exits.
4. The method for obtaining the network connection status of the Kylin V10 system according to claim 1, characterized in that: Before acquiring the network connection status between the target host and other devices in parallel in a cyclic manner, the method further includes: Configure the relevant information of the other devices through the Qt program graphical user interface and perform data legitimacy check; If the data validity check is correct, the relevant information of the other devices is saved in the configuration file.
5. The method for obtaining the network connection status of the Kylin V10 system according to claim 4, characterized in that: The related information of other devices includes whether to obtain a network connection status identifier, and the whether to obtain a network connection status identifier is used to determine whether to obtain the network connection status of the device.
6. The method for obtaining the network connection status of the Kylin V10 system according to claim 4, characterized in that: The method further comprises: After one cycle is finished, the network connection status is displayed in a visual manner on the Qt program graphical user interface, and the next cycle is entered to continue to obtain the network connection status between the target host and other devices.
7. A network connection status acquisition device for Kylin V10 system, characterized in that: include: An acquisition module is used to acquire the network connection status between the target host and other devices in parallel in a cyclic manner through the shared memory parallel programming interface OpenMP, wherein the operating system of the target host is the Kylin V10 system; The obtaining of the network connection status between the target host and other devices includes: Use the shell script to test the network connectivity of the target host and other devices multiple times through the ping command to obtain the network connection status.
8. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method for obtaining the network connection status for the Kylin V10 system as described in any one of claims 1-6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program runs on a processor, the processor executes the method for obtaining the network connection status for the Kylin V10 system as described in any one of claims 1 to 6.
10. A computer program product, characterized in that When the computer program product runs on a processor, the processor executes the method for obtaining the network connection status for the Kylin V10 system as described in any one of claims 1 to 6.