CN113296967A - Process management method, device and system based on embedded operating system - Google Patents

Process management method, device and system based on embedded operating system Download PDF

Info

Publication number
CN113296967A
CN113296967A CN202010107916.2A CN202010107916A CN113296967A CN 113296967 A CN113296967 A CN 113296967A CN 202010107916 A CN202010107916 A CN 202010107916A CN 113296967 A CN113296967 A CN 113296967A
Authority
CN
China
Prior art keywords
target
processes
process management
target processes
management list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010107916.2A
Other languages
Chinese (zh)
Inventor
李东青
李强国
周晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202010107916.2A priority Critical patent/CN113296967A/en
Publication of CN113296967A publication Critical patent/CN113296967A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Abstract

The embodiment of the invention provides a process management method based on an embedded operating system, a process management device based on the embedded operating system and a process management system based on the embedded operating system, wherein the process management method comprises the following steps: creating a local socket to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started; receiving process registration information respectively transmitted by the target processes which have established the communication connection; establishing a process management list according to the process registration information; and broadcasting and sending the process management list to the target processes so that each target process establishes a communication relationship with other target processes according to the process management list. The process management method provided by the embodiment of the invention can inform the process running state information of each target process to other target processes in a process communication mode, and realize the management of a plurality of processes.

Description

Process management method, device and system based on embedded operating system
Technical Field
The present invention relates to the field of embedded device technology, and in particular, to a process management method based on an embedded operating system, a process management apparatus based on an embedded operating system, and a process management system based on an embedded operating system.
Background
With the continuous progress of the technology and the open source of an embedded operating system such as a Linux system, more and more embedded Linux devices are currently present around our life, wherein an ARM-based embedded Linux system can simultaneously run a plurality of processes to satisfy more complex upper-layer services, and the simultaneous running of the plurality of processes in the Linux system with complex services is particularly important for process management.
In the prior art, the relevant information of each process of the Linux system is stored in each file under a/proc/PID directory, wherein each PID is a process number, and a cmdline file in the PID indicates which file the process is started by. The Linux system also provides a complete set of tools for viewing the process state. For example, the PS command followed by parameter may look at the process information: -e: displaying all processes; -f, displaying the complete format program information; -U: display specific user process, -o: custom display output. However, a Linux terminal background query mode is mostly adopted for querying the process running state information in the Linux system, and the queried process running state information cannot inform other processes, so that management of multiple processes cannot be realized.
Disclosure of Invention
Therefore, the invention provides a process management method based on an embedded operating system, a process management device based on the embedded operating system and a process management system based on the embedded operating system, which can inform the process running state information of each target process to other target processes in a process communication mode so as to realize the management of a plurality of processes.
Specifically, in a first aspect, an embodiment of the present invention provides a process management method based on an embedded operating system, including: creating a local socket to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started; receiving process registration information respectively transmitted by the target processes which have established the communication connection; establishing a process management list according to the process registration information; and broadcasting and sending the process management list to the target processes so that each target process establishes a communication relationship with other target processes according to the process management list.
In the prior art, an embedded operating system such as a Linux system mostly adopts a Linux terminal background query mode to query process information, and the queried process information cannot inform other processes and cannot realize management of a plurality of processes. The embodiment of the invention establishes communication with the target process by establishing the local socket, receives the process registration information of the target process to establish the list and then broadcasts and sends the list to the plurality of target processes, so that each target process establishes a communication relation with other target processes according to the process management list, the process information of each target process can be informed to other target processes in a process communication mode, the management of the plurality of processes is realized, the processes can directly communicate after establishing connection, subsequent authentication is not needed, and the communication efficiency among the processes is improved.
In an embodiment of the present invention, the establishing, by each target process, a communication relationship with other target processes according to the process management list includes: by each target process: analyzing the process management list to obtain process states corresponding to the other target processes; and responding to the process state of the other target processes as an online state, and establishing communication connection with the other target processes.
In an embodiment of the present invention, the establishing, by each target process, a communication relationship with other target processes according to the process management list includes: by each target process: analyzing the process management list to obtain process states corresponding to the other target processes, and determining connectable processes from the other target processes according to self configuration information; and responding to the process state of the connectable process as an online state, and establishing communication connection with the connectable process.
In an embodiment of the present invention, the process management further includes: and responding to the information viewing instruction, and displaying the process running state information corresponding to the target processes.
In an embodiment of the present invention, the creating a local socket to establish a communication connection with a plurality of target processes includes: and creating the local socket, and selecting the target processes from the processes according to self configuration information to establish communication connection.
In an embodiment of the present invention, after the broadcasting the process management list to the target processes to establish a communication relationship with other target processes according to the process management list, the process management method further includes: sending a heartbeat packet to each target process; and in response to the target process not replying a response packet within the preset times, updating the process state of the target process in the process management list to be an offline state.
In an embodiment of the present invention, after the updating, in response to that the target process does not reply to the response packet within a preset number of times, that the process state of the target process in the process management list is an offline state, the process management method further includes: and broadcasting the off-line state of the target process to the target processes so as to disconnect the communication by the target process which establishes the communication connection with the off-line target process.
In one embodiment of the present invention, the process registration information includes a process identification code, a process name, and a process status; and/or the process management list includes the process registration information of each of the target processes.
In a second aspect, an embodiment of the present invention provides a process management apparatus based on an embedded operating system, configured to execute the process management method according to any one of the foregoing items, where the process management apparatus includes: the system comprises a socket establishing module, an information receiving module, a list establishing module and a list broadcasting module; the socket creating module is used for creating a local socket to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started; the information receiving module is used for receiving process information respectively transmitted by the target processes which have established the communication connection; the list establishing module is used for establishing a process management list according to the process information; and the list broadcasting module is used for broadcasting and sending the process management list to the target processes so that each target process establishes a communication relation with other target processes according to the process management list.
In a third aspect, an embodiment of the present invention provides a process management system based on an embedded operating system, including: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform a process management method as described in any one of the preceding.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, which is a non-volatile memory and stores computer-readable instructions, where the computer-readable instructions include instructions for executing any one of the process management methods described above.
As can be seen from the above, the embodiments of the present invention can achieve one or more of the following advantages: the communication is established with the target process by establishing the local socket, the process registration information of the target process is received, a list is established and then broadcast and sent to the target processes, each target process establishes a communication relation with other target processes according to the process management list, the process information of each target process can be informed to other target processes in a process communication mode, the management of the processes is realized, the processes can be directly communicated after connection is established, subsequent authentication is not needed, and the communication efficiency among the processes is improved; the process state of the process is inquired in real time by sending the heartbeat packet to the target process and changing the process state of the target process which does not reply the response packet within the preset times into an offline state; the off-line state of the target process is sent to the target processes, so that the other target processes disconnect the communication with the off-line target process, and the controllability of the communication of each process is realized; the association relation of each process can be set through the self configuration information, so that communication is limited between the associated processes, the safety is higher, and the interference of irrelevant processes can be eliminated.
Other aspects and features of the present invention will become apparent from the following detailed description, which proceeds with reference to the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart illustrating steps of a process management method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating another step of a process management method according to a first embodiment of the present invention;
fig. 3 is a flowchart related to a specific implementation of a process management method according to a first embodiment of the present invention;
FIG. 4 is a block diagram of a process management apparatus according to a second embodiment of the present invention;
FIG. 5 is a diagram illustrating a process management system according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer storage medium according to a fourth embodiment of the present invention.
[ description of reference ]
S11-S16: a process management method step;
20: a process management device; 21: a socket creation module; 22: an information receiving module; 23: a list establishing module; 24: a list broadcasting module;
30: a process management system; 31: a processor; 32: a memory;
40: a computer storage medium.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not a whole embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
[ first embodiment ] A method for manufacturing a semiconductor device
Referring to fig. 1, a first embodiment of the present invention provides a process management method based on an embedded operating system. The embedded operating system is, for example, a Linux system. Alternatively, the method may be executed by a processor, as shown in fig. 1, and the process management method includes, for example, steps S11 to S14.
Step S11: creating a local socket to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started;
step S12: receiving process registration information respectively transmitted by the target processes which have established the communication connection;
step S13: establishing a process management list according to the process registration information;
step S14: and broadcasting and sending the process management list to the plurality of target processes so that each target process establishes a communication relation with other target processes according to the process management list.
The local socket mentioned in step S11, such as UNIX socket, is mainly used in inter-process communication (IPC). The operation mechanism of UNIX sockets is similar to that of Internet sockets, with the main difference that UNIX sockets can only be used on one computer, while Internet sockets can be used between different computers. The UNIX socket addresses as a file in the local file system. Further, step S11 includes, for example: and creating the local socket, and selecting the target processes from the processes according to self configuration information to establish communication connection. The self-configuration information mentioned therein includes, for example, the name of the process that needs to establish the communication connection. Target processes are selected from the multiple processes through self configuration information, so that communication is limited among the associated processes, and safety is improved.
The process registration information mentioned in step S12 includes, for example: the process identifier represents a process-defined ID number in order to represent a unique process. The process name mentioned represents a process alias, and corresponds to an ID number, so that the process alias is convenient to identify. The process states mentioned include an online state, an offline state, and an undefined state.
The process management list mentioned in step S13 is a table including process registration information corresponding to a plurality of target processes, and the content in the table includes information such as a process identification code, a process name, and a process state.
The step S14 of establishing, by each target process, a communication relationship with other target processes according to the process management list includes, for example: and each target process analyzes the process management list to obtain the process states corresponding to the other target processes, and establishes communication connection with the other target processes in response to the process states of the other target processes being in an online state. The communication relationship mentioned above may be understood that, after each target process parses the process management list to obtain other target processes in the online state, the target processes are all in communication connection with the other target processes, and the target processes are not in communication connection with the other target processes in the offline state. Therefore, the process information of each target process can be informed to other target processes in a process communication mode, and the communication among the online target processes is realized.
Further, the step S14 of establishing, by each target process, a communication relationship with other target processes according to the process management list includes, for example: each target process analyzes the process management list to obtain the process states corresponding to the other target processes, and determines a connectable process from the other target processes according to self configuration information; and responding to the process state of the connectable process as an online state, and establishing communication connection with the connectable process. The mentioned self-configuration information includes, for example, a process name of the connectable process. The mentioned communication relationship may be understood that, after each target process analyzes the process management list to obtain other target processes in the online state, the target processes may be screened according to their own configuration information, and only establish communication connection with the connectable processes in the online state, but not establish communication connection with other target processes including other target processes in the offline state and/or other target processes in the online state. Therefore, the connectable processes are selected from other target processes through the self configuration information, so that the communication is limited among the associated processes, and the safety is improved.
Further, as shown in fig. 2, the process management method according to the first embodiment of the present invention further includes, for example, step S15 and step S16 after step S14.
Step S15: and sending a heartbeat packet to each target process, and updating the process state of the target process in the process management list to be an offline state in response to the target process not replying a response packet within a preset number of times.
Step S16: and broadcasting the off-line state of the target process to the target processes so as to disconnect the communication by the target process which establishes the communication connection with the off-line target process.
Specifically, the heartbeat packet mentioned in step S15 is a self-defined command word for periodically detecting the process state of the target process, and is a data packet sent at a certain time interval. The preset number of times referred to is the number of times of non-response of the custom setting, for example, 3 times. The process state of the target process is detected by sending the heartbeat packet, and the process state of the offline target process is changed into the offline state in the process management list, so that the process state can be conveniently inquired in real time.
The step S16 is to send the offline status broadcast of the target process to the target processes, for example, to broadcast all the relevant process registration information of the offline target process, including the process identification code, the process name, and the process status. The offline state is broadcasted to the target process, so that the target process which establishes communication with the offline target process disconnects the communication, and the communication controllability of each process is realized.
Further, the process management method according to the first embodiment of the present invention further includes, for example: and responding to the information viewing instruction, and displaying the process running state information corresponding to the target processes. The process running state information includes, for example, information such as a process name, a process identification code, a process state, a process PID, and a preset number of times, where content included in the process running state information is displayed according to header content of a display table set by a user. The information viewing instruction mentioned is, for example, an information viewing instruction generated in response to a command input operation by a user, for example, executing "telappnet tmd tcb". Although the process running state information can also be read in the prior art, the read process running state information is running state information of all processes in the system, and therefore a lot of read process information is not needed.
For a better understanding of the present embodiment, a brief description of a specific implementation of the present embodiment is provided below in conjunction with fig. 3.
As shown in fig. 3, in the present embodiment, a process management tool related to implementing the process management method provided in this embodiment is, for example, a TMD process, and target processes are, for example, a process a, a process B, and a process C, although the number of the target processes is not limited in the present invention. The method specifically comprises the following steps:
first, the TMD process is launched and a local socket is created. Wherein the TMD process needs to be started first as a process management tool. The process a, the process B and the process C can be randomly started after the TMD process is started, and the starting sequence of the process a, the process B and the process C is not limited.
Each process would then create its own local socket binding file at startup. Because the TMD process is started firstly, the process A, the process B and the process C can automatically bind the local socket of the TMD process after the local socket is created during starting so as to realize the communication connection between the TMD process and the process A, the process B and the process C.
Then, after the process a, the process B and the process C establish communication with the TMD process, the process a, the process B and the process C notify the TMD process of their own states, that is, the process a, the process B and the process C may send their own process registration information to the TMD process. The process registration information includes, for example, a process name, a process identification code and a process state, when communication is initially established, the process a, the process B and the process C are all in an online state, a process management list is created after the process registration information of the process a, the process B and the process C is received by the TMD process, the process name, the identification code and the process state are listed in the process management list, the TMD process broadcasts the online state of each process, and the TMD process broadcasts the process management list to inform the process a, the process B and the process C.
At this time, process a, process B, and process C may establish communication connection with each other after receiving the process management list, for example, monitor each other and receive and transmit data.
Then, the TMD process sends heartbeat packets to process a, process B, and process C, respectively, in a broadcast manner, waiting for a response. At this time, if the response packet of a process is not received for three times, the process state of the process is set to be the offline state in the process management list and the offline state is broadcasted, and other processes disconnect the communication connection with the process after receiving the TMD process broadcast message. For example, if the TMD process sends a heartbeat packet to the process a in a broadcast manner and does not receive a response packet for three consecutive times, the TMD process changes the process state of the process a from the online state to the offline state in the process management list, then broadcasts the related information of the process a, and after the process B and the process C receive the broadcast information and find that the process a is offline, disconnects the session previously established with the process a.
In addition, the TMD process keeps the session with the process a, the process B and the process C and records the running state of the process at any time. In order to check the running state of each process in the current system, an interface is opened for state printing. Namely, the process running state information corresponding to each process can be obtained by executing the telapnet TMD tcb in the TMD process. For example, the process running state information includes: carrying out identification code, namely process self-defined ID number; the process name is an alias of the process, and the name corresponds to the ID number, so that the process name is convenient to identify; process state, i.e. running state of the process, online: online, offline: offline, unf: is undefined; process PID; and the maximum times that the response packet is not received after the TMD process sends the heartbeat packet.
In addition, the TMD process, the process a, the process B, and the process C all have self-configuration information, and the self-configuration information of the TMD process includes a process name of the monitoring broadcast. The self configuration information of the process a, the process B, and the process C includes connectable process names. The TMD process determines the process to be managed according to the self-configuration information, and the self-configuration information can be modified according to the user requirements, so that the interference of irrelevant processes is eliminated, and the process management efficiency is improved. The TMD process, the process A, the process B and the process C establish communication connection with other processes through self configuration information, so that communication is limited among the associated processes, and the safety is high. In addition, when some processes depend on other processes and can be started only after other processes are started, the running state of other processes can be judged through the TMD process.
In summary, the process management method provided in the first embodiment of the present invention establishes communication with a target process by creating a local socket, receives a process registration information establishment list of the target process, and then broadcasts and sends the process registration information establishment list to a plurality of target processes, so that each target process establishes a communication relationship with other target processes according to the process management list, and can inform the process information of each target process to other target processes in a process communication manner, thereby implementing management of the plurality of processes, and the processes can communicate directly after establishing connection without subsequent authentication, thereby improving communication efficiency between the processes; the process state of the process is inquired in real time by sending the heartbeat packet to the target process and changing the process state of the target process which does not reply the response packet within the preset times into an offline state; the off-line state of the target process is sent to the target processes, so that the other target processes disconnect the communication with the off-line target process, and the controllability of the communication of each process is realized; the association relation of each process can be set through the self configuration information, so that communication is limited between the associated processes, the safety is higher, and the interference of irrelevant processes can be eliminated.
[ second embodiment ]
Referring to fig. 4, a second embodiment of the present invention provides a process management device based on an embedded operating system. The embedded operating system is, for example, a Linux system. As shown in fig. 4, the process management apparatus 20 includes, for example, a socket creation module 21, an information reception module 22, a list creation module 23, and a list broadcast module 24.
Specifically, the socket creating module 21 is configured to create a local socket to establish a communication connection with a plurality of target processes. The information receiving module 22 is configured to receive process information respectively transmitted by the multiple target processes. The list establishing module 23 is configured to establish a process management list according to the process information. The list broadcasting module 24 is configured to send the process management list to the plurality of target processes in a broadcast manner, so that each target process establishes a communication relationship with other target processes according to the process management list.
Further, the list broadcasting module 24 is configured to establish, by each target process, a communication relationship with other target processes according to the process management list, and specifically includes that each target process: analyzing the process management list to obtain process states corresponding to the other target processes; and responding to the process state of the other target processes as an online state, and establishing communication connection with the other target processes.
Further, the list broadcasting module 24 is configured to establish, by each target process, a communication relationship with other target processes according to the process management list, and specifically includes that each target process: analyzing the process management list to obtain process states corresponding to the other target processes, and determining connectable processes from the other target processes according to self configuration information; and responding to the process state of the connectable process as an online state, and establishing communication connection with the connectable process.
Further, the process management apparatus 20 includes, for example: and the information display module is used for responding to the information viewing instruction and displaying the process running state information corresponding to the target processes.
Further, the socket creating module 21 is specifically configured to create the local socket, and select the multiple target processes from the multiple processes according to the configuration information of the socket creating module to establish the communication connection.
Further, the process management apparatus 20 includes, for example: the heartbeat packet sending module is used for sending a heartbeat packet to each target process; and in response to the target process not replying a response packet within the preset times, updating the process state of the target process in the process management list to be an offline state.
Further, after the heartbeat packet sending module responds to that the target process does not reply a response packet within a preset number of times, and updates the process state of the target process in the process management list to be an offline state, the heartbeat packet sending module is further configured to: and broadcasting the off-line state of the target process to the target processes so as to disconnect the communication by the target process which establishes the communication connection with the off-line target process.
Further, the process registration information includes, for example, a process identification code, a process name, and a process status, and/or the process management list includes the process registration information of each of the target processes.
It should be noted that the process management method implemented by the process management device 20 of the present embodiment is as described in the first embodiment, and therefore, the detailed description thereof is omitted. Optionally, each module and the other operations or functions in the second embodiment are respectively for implementing the method in the first embodiment of the present invention, and the technical effect of the process management apparatus 20 provided in this embodiment is the same as that of the process management method in the first embodiment, and for brevity, no further description is provided here.
[ third embodiment ]
Referring to fig. 5, a third embodiment of the present invention provides a process management system based on an embedded operating system. The embedded operating system is, for example, a Linux system. As shown in fig. 5, the process management system 30 includes, for example: a processor 31 and a memory 32 connected to the processor 31. Wherein the memory 32 stores instructions to be executed by the processor 31 and the instructions cause the processor 31 to perform operations to perform the process management method according to the first embodiment.
Specifically, the processor 31 performs the following operations: creating a local socket to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started; receiving process registration information respectively transmitted by the target processes which have established the communication connection; establishing a process management list according to the process registration information; and broadcasting and sending the process management list to the target processes so that each target process establishes a communication relationship with other target processes according to the process management list.
Further, the establishing, by each target process, a communication relationship with other target processes according to the process management list includes, for example, by each target process: analyzing the process management list to obtain process states corresponding to the other target processes; and responding to the process state of the other target processes as an online state, and establishing communication connection with the other target processes.
Further, the establishing, by each target process, a communication relationship with other target processes according to the process management list includes, for example, by each target process: analyzing the process management list to obtain process states corresponding to the other target processes, and determining connectable processes from the other target processes according to self configuration information; and responding to the process state of the connectable process as an online state, and establishing communication connection with the connectable process.
Further, after the broadcasting the process management list to the target processes, for example, the method further includes: and responding to the information viewing instruction, and displaying the process running state information corresponding to the target processes.
Further, the creating a local socket to establish a communication connection with a plurality of target processes includes, for example: and creating the local socket, and selecting the target processes from the processes according to self configuration information to establish communication connection.
Further, after the broadcasting the process management list to the target processes to establish communication relationships with other target processes according to the process management list by each target process, for example, the method further includes: sending a heartbeat packet to each target process; and in response to the target process not replying a response packet within the preset times, updating the process state of the target process in the process management list to be an offline state.
Further, after the updating, in response to that the target process does not reply to the response packet within the preset number of times, that the process state of the target process in the process management list is the offline state, for example, the method further includes: and broadcasting the off-line state of the target process to the target processes so as to disconnect the communication by the target process which establishes the communication connection with the off-line target process.
Further, the process registration information includes, for example, a process identification code, a process name, and a process status; and/or the process management list for example comprises the process registration information of each of the target processes.
It should be noted that the process management system 30 provided in the present embodiment has instructions for enabling the processor 31 to perform operations for performing the process management method as described in the first embodiment, and therefore, the detailed description is omitted here. Optionally, each processor and each memory in this embodiment are respectively for implementing the method in the first embodiment of the present invention, and the technical effect of the process management system 30 provided in this embodiment is the same as that of the process management method in the first embodiment, and details are not described here again.
[ fourth example ] A
Referring to fig. 6, a fourth embodiment of the present invention provides a computer storage medium. As shown in fig. 6, computer-readable storage medium 40 stores computer-readable instructions. The computer readable instructions include instructions for executing the process management method according to the first embodiment, and therefore, will not be repeated here. The computer storage medium 40 is, for example, a non-volatile memory, and includes: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). Computer storage media 40 may execute computer readable instructions by one or more processors or processing devices.
In addition, the technical effect of the computer storage medium 40 provided in this embodiment is the same as that of the process management method in the first embodiment, and is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and the actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A process management method based on an embedded operating system is characterized by comprising the following steps:
creating a local socket to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started;
receiving process registration information respectively transmitted by the target processes which have established the communication connection;
establishing a process management list according to the process registration information; and
and broadcasting and sending the process management list to the plurality of target processes so that each target process establishes a communication relation with other target processes according to the process management list.
2. The process management method according to claim 1, wherein the establishing, by each target process, a communication relationship with other target processes according to the process management list comprises, by each target process:
analyzing the process management list to obtain process states corresponding to the other target processes;
and responding to the process state of the other target processes as an online state, and establishing communication connection with the other target processes.
3. The process management method according to claim 1, wherein the establishing, by each target process, a communication relationship with other target processes according to the process management list comprises, by each target process:
analyzing the process management list to obtain process states corresponding to the other target processes, and determining connectable processes from the other target processes according to self configuration information;
and responding to the process state of the connectable process as an online state, and establishing communication connection with the connectable process.
4. The process management method of claim 1, further comprising, after the broadcasting the process management list to the plurality of target processes:
and responding to the information viewing instruction, and displaying the process running state information corresponding to the target processes.
5. The process management method according to claim 1, wherein the creating a local socket to establish a communication connection with a plurality of target processes comprises:
and creating the local socket, and selecting the target processes from the processes according to self configuration information to establish communication connection.
6. The process management method according to claim 1, wherein after the broadcasting the process management list to the target processes to establish communication with other target processes according to the process management list, the method further comprises:
sending a heartbeat packet to each target process;
and in response to the target process not replying a response packet within the preset times, updating the process state of the target process in the process management list to be an offline state.
7. The process management method according to claim 6, wherein after the updating the process state of the target process in the process management list to an offline state in response to the target process not replying with a response packet within a preset number of times, further comprising:
and broadcasting the off-line state of the target process to the target processes so as to disconnect the communication by the target process which establishes the communication connection with the off-line target process.
8. The process management method according to claim 1, wherein the process registration information includes a process identification code, a process name, and a process status; and/or the process management list includes the process registration information of each of the target processes.
9. A process management apparatus based on an embedded operating system, for performing the process management method according to any one of claims 1 to 8, the process management apparatus comprising:
the socket creating module is used for creating a local socket so as to establish communication connection with a plurality of target processes, wherein the target processes are processes for binding the local socket when being started;
the information receiving module is used for receiving process information respectively transmitted by the target processes which establish the communication connection;
the list establishing module is used for establishing a process management list according to the process information; and
and the list broadcasting module is used for broadcasting and sending the process management list to the target processes so that each target process establishes a communication relation with other target processes according to the process management list.
10. A process management system based on an embedded operating system is characterized by comprising: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform the process management method of any of claims 1 to 8.
CN202010107916.2A 2020-02-21 2020-02-21 Process management method, device and system based on embedded operating system Pending CN113296967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010107916.2A CN113296967A (en) 2020-02-21 2020-02-21 Process management method, device and system based on embedded operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010107916.2A CN113296967A (en) 2020-02-21 2020-02-21 Process management method, device and system based on embedded operating system

Publications (1)

Publication Number Publication Date
CN113296967A true CN113296967A (en) 2021-08-24

Family

ID=77317484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010107916.2A Pending CN113296967A (en) 2020-02-21 2020-02-21 Process management method, device and system based on embedded operating system

Country Status (1)

Country Link
CN (1) CN113296967A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750544A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 Process management system and process management method applied to distributed system
US20160275097A1 (en) * 2015-03-19 2016-09-22 International Business Machines Corporation Inter-process communication in a multi-tenant environment
CN108600011A (en) * 2018-04-26 2018-09-28 百度在线网络技术(北京)有限公司 Method, apparatus, storage medium and the terminal device of communication network data transmission
CN108847988A (en) * 2018-06-29 2018-11-20 百度在线网络技术(北京)有限公司 dynamic topology maintaining method, device and equipment
CN109274734A (en) * 2018-09-07 2019-01-25 海信集团有限公司 A kind of service processes call method and device based on Internet of Things cloud platform
CN110008036A (en) * 2019-02-19 2019-07-12 西安万像电子科技有限公司 Data transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750544A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 Process management system and process management method applied to distributed system
US20160275097A1 (en) * 2015-03-19 2016-09-22 International Business Machines Corporation Inter-process communication in a multi-tenant environment
CN108600011A (en) * 2018-04-26 2018-09-28 百度在线网络技术(北京)有限公司 Method, apparatus, storage medium and the terminal device of communication network data transmission
CN108847988A (en) * 2018-06-29 2018-11-20 百度在线网络技术(北京)有限公司 dynamic topology maintaining method, device and equipment
CN109274734A (en) * 2018-09-07 2019-01-25 海信集团有限公司 A kind of service processes call method and device based on Internet of Things cloud platform
CN110008036A (en) * 2019-02-19 2019-07-12 西安万像电子科技有限公司 Data transmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张立涓;: "基于UDP协议的进程管理系统的设计与实现", 计算机工程与应用, no. 36 *

Similar Documents

Publication Publication Date Title
JP4912503B2 (en) Information processing apparatus, method, and server for determining type of electrical appliance
US8386614B2 (en) Network connection manager
US7761580B2 (en) System and method for determining a designated connection between components of computing devices
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
US20140089383A1 (en) Method and system for automatic detecting and resolving apis
CN109194525A (en) A kind of network node configuration method and management node
WO2017063493A1 (en) Bluetooth communication method and communication apparatus
US20080109545A1 (en) Method and system for two-phase mechanism for discovering web services based management service
CN113891317A (en) Network distribution method and network distribution device of intelligent equipment and electronic equipment
JP2011077920A (en) Communication system, terminal device, communication method and communication program
CN108259523B (en) Data transmission method, Internet of things system and network access method
CN107577822A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN113296967A (en) Process management method, device and system based on embedded operating system
JP4103994B2 (en) Console switch, system using the same, route connection method and route connection program
EP1684481B1 (en) System and Method for selecting an active connection
CN113194119B (en) Configuration file acquisition method and device
CN112152850B (en) Internet of things equipment management method based on flash connection protocol and service terminal
CN115150482A (en) Equipment binding method and device and computer readable storage medium
CN110943975B (en) Service registration method, device, computer equipment and storage medium
CN110109933B (en) Information maintenance method, configuration management database system and storage medium
CN112087318B (en) Network management method, server, client and system
CN111726367A (en) User equipment CPE access binding method, device, system and equipment
CN111147400A (en) Method and device for command line configuration synchronization and electronic equipment
CN116436755B (en) Network management method and device and electronic equipment
CN113992739B (en) Local area network OTA firmware upgrading device, method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination