A method and system for optimizing the real-time performance of CitcomS system
By introducing the architecture of master nodes and multiple slave nodes into the CitcomS system, using task analysis and call relationship graphs to divide computing jobs, and establishing slave node idle lists and single-thread pools, the real-time performance and large-scale computing processing of the CitcomS system are solved. To solve the problem of insufficient capacity, efficient distributed computing and simplified processes are achieved.
Patent Information
- Application Number
- CN202210423288.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-21
AI Technical Summary
The existing CitcomS system has problems with poor real-time performance and insufficient processing capabilities for large-scale computing jobs, mainly due to system bottlenecks caused by its serial operation and stand-alone processing.
It adopts the architecture of master node and multiple slave nodes, divides computing jobs through task analysis and call relationship graph, establishes slave node idle list and single-thread pool, and realizes distributed processing and classification processing of computing jobs.
It improves the real-time performance of CitcomS system and the processing capacity of large-scale computing jobs, reduces time loss and system resource consumption, simplifies the processing process, and directly determines the completion status of computing jobs by returning IDs from nodes to avoid data redundancy.
Smart Images

Figure CN114721831B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of distributed, high performance computing technology and geodynamic simulation, and more specifically, to a method and system for optimizing the real-time performance of a CitcomS system. Background Art
[0002] The CitcomS system is a finite element code written in C language for solving thermochemical convection problems in spherical shells (with limited input and output data). It is very suitable for solving the geodynamic simulation problem of plate tectonics. We can use the CitcomS system to study the evolution of the internal structure of the earth.
[0003] However, the existing CitcomS system has some defects that cannot be ignored: First, the CitcomS system program runs serially, and each time a CitcomS job is submitted, the system will create a thread for it to run and process, and the thread will be destroyed after the job submission is completed, resulting in poor real-time performance of the system; Second, the CitcomS system program runs on a single machine, and a single machine cannot handle a large number of computing jobs, and its processing capabilities for large-scale computing jobs are relatively poor. Summary of the invention
[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a method and system for optimizing the real-time performance of the CitcomS system, which aims to solve the technical problems of poor real-time performance of the existing CitcomS system program and poor processing capability for large-scale computing operations.
[0005] To achieve the above object, according to one aspect of the present invention, a method for optimizing the real-time performance of a CitcomS system is provided. The CitcomS system includes a master node and a plurality of slave nodes. The method includes the following steps:
[0006] (1) The master node receives the CitcomS job from the client and performs task analysis on the CitcomS job to obtain a call relationship graph and the total number of computing jobs in the CitcomS job;
[0007] (2) The master node creates a slave node idle list to record the ID of each slave node in an idle state and the position of the slave node in the slave node idle list, and creates a new single-thread pool for each slave node in an idle state.
[0008] (3) The master node divides all computing jobs in the CitcomS job into first-category computing jobs and second-category computing jobs according to the call relationship graph obtained in step (1);
[0009] (4) The master node sets the counter i=1;
[0010] (5) The master node creates an empty list;
[0011] (6) The master node obtains the i-th computing job in the CitcomS job and determines whether the i-th computing job has been processed. If so, it proceeds to step (12); otherwise, it proceeds to step (7);
[0012] (7) The master node determines whether the i-th computing job belongs to the first category computing job or the second category computing job. If it is the first category computing job, the process proceeds to step (8); if it is the second category computing job, the process proceeds to step (9);
[0013] (8) The master node adds the ID, content, and ID set of the computing job called by the i-th computing job as an entry into the list established in step (5), and proceeds to step (13);
[0014] (9) The master node obtains an idle slave node from the pre-established slave node idle list, deletes the idle slave node from the slave node idle list according to its ID, and sends the i-th computing job to the obtained idle slave node.
[0015] (10) The slave node processes the i-th computing job and returns the ID of the i-th computing job to the master node after processing.
[0016] (11) The master node receives the ID of the i-th computing job returned by the slave node, and uses the ID of the i-th computing job to query the computing job that calls the i-th computing job in the list created in step (5), and determines whether all the computing jobs called by the queried computing job have been executed. If so, it proceeds to step (12); otherwise, it proceeds to step (13);
[0017] (12) The master node determines whether the ID of the computing job that calls the i-th computing job is 1. If so, the process ends. Otherwise, i is set to the ID of the computing job that calls the i-th computing job, and the process returns to step (8).
[0018] (13) The master node sets i=i+1 and returns to step (6).
[0019] Preferably, in step (1), the computing job refers to a function in a CitcomS job, and the master node divides each function in the CitcomS job into a computing job.
[0020] Preferably, the process of performing task parsing on the CitcomS job in step (1) to obtain a call relationship graph includes the following sub-steps:
[0021] (1-1) Set counter i=1;
[0022] (1-2) Determine whether i is equal to the total number of computing jobs in the CitcomS job. If so, the process ends, otherwise proceed to step (1-3);
[0023] (1-3) Obtain the i-th computing job in the CitcomS job, and determine whether the i-th computing job needs to call other computing jobs in the CitcomS job. If yes, proceed to step (1-4); otherwise, proceed to step (1-5);
[0024] (1-4) Obtain other computing jobs in the CitcomS job called by the i-th computing job and the number j of these called computing jobs, and then proceed to step (1-5);
[0025] (1-5) Set i=i+1 and return to step (1-2);
[0026] Preferably, whether the i-th computing job needs to call other computing jobs in the CitcomS job is determined by determining whether the function in the computing job calls functions in other computing jobs in the CitcomS job. If the function in the computing job calls functions in other computing jobs in the CitcomS job, it means that the computing job needs to call other computing jobs in the CitcomS job; otherwise, it means that the computing job does not need to call other computing jobs in the CitcomS job.
[0027] Preferably, the first type of computing job refers to a job that needs to call one or more computing jobs; the second type of computing job refers to a computing job that does not call any other computing jobs;
[0028] Different entries in the list created in step (5) are used to store the IDs, contents, and ID sets of the computing jobs called by different computing jobs.
[0029] Preferably, in step (6), the process of determining whether the i-th computing job has been processed is specifically to determine whether the i-th computing job has been sent by the master node to an idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node. If the i-th computing job has been sent by the master node to an idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node, it means that the i-th computing job has been processed; otherwise, it means that the i-th computing job has not been processed.
[0030] Preferably, the process of processing the i-th computing job in step (10) includes the following sub-steps:
[0031] (10-1) Obtain the i-th computing job from the node;
[0032] (10-2) The slave node determines whether the single-thread pool created for the slave node in step (2) has already started a thread. If not, a new thread is created in the single-thread pool and then the process goes to step (10-3). Otherwise, the process goes directly to step (10-3).
[0033] (10-3) The slave node dispatches the i-th computing job to the single-thread pool for execution;
[0034] (10-4) After the execution of the i-th computing job is completed, the slave node returns the ID of the computing job to the master node;
[0035] (10-5) The master node re-adds the slave node to the slave node idle list.
[0036] According to another aspect of the present invention, a system for optimizing the real-time performance of a CitcomS system is provided, wherein the CitcomS system includes a master node and a plurality of slave nodes, and the system includes:
[0037] The first module is set in the main node and is used to receive the CitcomS job from the client and perform task analysis on the CitcomS job to obtain a call relationship graph and the total number of computing jobs in the CitcomS job;
[0038] The second module is set at the master node and is used to pre-create a slave node idle list, record the ID of each slave node in an idle state and the position of the slave node in the slave node idle list, and create a new single-thread pool for each slave node in an idle state.
[0039] The third module is set in the master node and is used to divide all computing jobs in the CitcomS job into first-category computing jobs and second-category computing jobs according to the call relationship graph obtained by the second module;
[0040] A fourth module, which is arranged at the master node, is used to set the counter i=1;
[0041] The fifth module is set in the master node and is used to create an empty list;
[0042] The sixth module is set in the main node and is used to obtain the i-th computing job in the CitcomS job and determine whether the i-th computing job has been processed. If so, it enters the twelfth module, otherwise it enters the seventh module.
[0043] The seventh module is set in the master node and is used to determine whether the i-th computing job belongs to the first type of computing job or the second type of computing job. If it is the first type of computing job, the eighth module is entered; if it is the second type of computing job, the ninth module is entered;
[0044] An eighth module, which is set in the master node, is used to put the ID, content, and ID set of the computing job called by the i-th computing job into the list established by the fifth module as an entry, and transfer to the thirteenth module;
[0045] The ninth module is set in the master node and is used to obtain an idle slave node from the pre-established slave node idle list, delete the idle slave node from the slave node idle list according to its ID, and send the i-th computing job to the obtained idle slave node.
[0046] The tenth module is set in the slave node and is used to process the i-th computing job and return the ID of the i-th computing job to the master node after the processing is completed.
[0047] The eleventh module is set in the master node, and is used to receive the ID of the i-th computing job returned from the slave node, and query the computing job that calls the i-th computing job in the list created by the fifth module through the ID of the i-th computing job, and determine whether the computing jobs called by the queried computing job have all been executed. If so, enter the twelfth module, otherwise, transfer to the thirteenth module;
[0048] A twelfth module, which is set in the master node, is used to determine whether the ID of the computing job that calls the i-th computing job is 1, if so, the process ends, otherwise, i is set to the ID of the computing job that calls the i-th computing job, and returns to the eighth module;
[0049] The thirteenth module is set at the main node, and is used to set i=i+1 and return to the sixth module.
[0050] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0051] 1. Since the present invention adopts step (1), step (2), step (6) and step (8), first, it creates a call relationship graph in advance. For the search of each computing job called by a computing job, it only needs to search in the call relationship graph, and there is no need to traverse the entire CitcomS job process; second, it establishes a slave node idle list. For the search of idle slave nodes, it only needs to search its ID in the slave node idle list, and no complicated search is required; third, it creates a new single thread pool for each slave node in an idle state, reuses thread pool resources, and reduces time loss and saves system resources; fourth, it classifies the computing jobs and simplifies the entire processing flow; fifth, it can directly determine whether the i-th computing job has been calculated through the return information from the slave node to the master node, without the need for other complicated computing processes; therefore, the above steps can solve the problem of poor system real-time performance in the existing CitcomS system.
[0052] 2. Since the present invention adopts step (9) and step (10), it uses different slave nodes to process different computing jobs, and expands the original single-machine single-node CitcomS system into a multi-server multi-node CitcomS system. Therefore, it can solve the problem that the existing CitcomS system cannot handle a large number of computing jobs and has poor processing capabilities for large-scale computing jobs.
[0053] 3. Since the present invention adopts step (10) to return the ID of the i-th computing job to the master node after the slave node processes the i-th computing job, instead of returning the entire i-th computing job to the master node, it has the advantages of reducing data redundancy and improving storage utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a flow chart of the method for optimizing the real-time performance of the CitcomS system of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0056] The basic idea of the present invention is to provide a method and system for optimizing the real-time performance of the CitcomS system, which establishes a correspondence between each computing job in the CitcomS job, other computing jobs called by the computing job, and the number of other computing jobs called, and forms a call relationship graph for all the corresponding relationships. And each computing job in the CitcomS job is divided into a first type of computing job and a second type of computing job. The processing logic of computing jobs in the new CitcomS system is as follows: for each type of computing job, if the computing jobs it calls have been processed, or the job does not need to call other computing jobs, it will be sent to the slave node for processing. When all computing jobs are processed, the entire CitcomS job process ends.
[0057] like Figure 1 As shown, the present invention provides a method for optimizing the real-time performance of a CitcomS system, wherein the computing environment includes a master node and multiple slave nodes, and the method includes the following steps:
[0058] (1) The master node receives the CitcomS job from the client and performs task analysis on the CitcomS job to obtain a call relationship graph and the total number of computing jobs in the CitcomS job;
[0059] In step (1), the computing job refers to the function in the CitcomS job, and the master node divides each function in the CitcomS job into a computing job.
[0060] In step (1), the task parsing of the CitcomS job to obtain a call relationship graph includes the following sub-steps:
[0061] (1-1) Set counter i=1;
[0062] (1-2) Determine whether i is equal to the total number of computing jobs in the CitcomS job. If so, the process ends, otherwise proceed to step (1-3);
[0063] (1-3) Obtain the i-th computing job in the CitcomS job, and determine whether the i-th computing job needs to call other computing jobs in the CitcomS job. If yes, proceed to step (1-4); otherwise, proceed to step (1-5);
[0064] Specifically, whether the i-th computing job needs to call other computing jobs in the CitcomS job is determined by determining whether the function in the computing job calls functions in other computing jobs in the CitcomS job. If the function in the computing job calls functions in other computing jobs in the CitcomS job, it means that the computing job needs to call other computing jobs in the CitcomS job; otherwise, it means that the computing job does not need to call other computing jobs in the CitcomS job.
[0065] (1-4) Obtain other computing jobs in the CitcomS job called by the i-th computing job and the number j of these called computing jobs, and then proceed to step (1-5);
[0066] (1-5) Set i=i+1 and return to step (1-2);
[0067] After the above steps (1-1) to (1-5), a correspondence is established between each computing job in the CitcomS job - other computing jobs called by the computing job - the number of other computing jobs called, and all the correspondences form a call relationship graph.
[0068] The advantage of the above steps (1-1) to (1-5) is that after establishing the corresponding relationship between each computing job in the CitcomS job - other computing jobs called by the computing job - the number of other computing jobs called, for the search of each computing job called by the computing job, it is only necessary to search in the call relationship graph, without traversing the entire CitcomS job process, thereby improving the real-time performance of the CitcomS system.
[0069] (2) A slave node idle list is pre-created in the master node to record the ID of each slave node in an idle state and the position of the slave node in the slave node idle list, and a single-thread pool is newly created for each slave node in an idle state.
[0070] The advantages of this step are: first, after establishing the slave node idle list, to search for an idle slave node, you only need to search for its ID in the slave node idle list, without complicated search. Second, after creating a single-thread pool for each idle slave node, the slave node only needs to create a thread when the first task arrives, and then reuse the thread after each task arrives, without repeatedly creating and destroying threads, which can reduce time loss and save system resources, and improve the real-time performance of the CitcomS system.
[0071] (3) The master node divides all computing jobs in the CitcomS job into first-category computing jobs and second-category computing jobs according to the call relationship graph obtained in step (1);
[0072] Specifically, the first type of computing job refers to a job that needs to call one or more computing jobs; the second type of computing job refers to a computing job that does not call any other computing jobs.
[0073] The advantage of this step is that after the computing jobs are classified, targeted processing methods can be used for different types of computing jobs, which can simplify the entire processing flow and improve the real-time performance of the CitcomS system.
[0074] (4) The master node sets the counter i=1;
[0075] (5) The master node creates an empty list;
[0076] Specifically, different entries in the list are used to store the IDs and contents of different computing jobs, and the ID sets of the computing jobs called by them.
[0077] (6) The master node obtains the i-th computing job in the CitcomS job and determines whether the i-th computing job has been processed. If so, it proceeds to step (13); otherwise, it proceeds to step (7);
[0078] Specifically, the process of judging whether the i-th computing job has been processed in this step is to judge whether the i-th computing job has been sent by the master node to the idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node. If the i-th computing job has been sent by the master node to the idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node, it means that the i-th computing job has been processed, otherwise the i-th computing job has not been processed.
[0079] The advantage of this step is that to determine whether the i-th computing job has been processed, it only needs to determine that the i-th computing job has been sent by the master node to the idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node, without the need for other complex computing processes, thereby improving the real-time performance of the CitcomS system.
[0080] (7) The master node determines whether the i-th computing job belongs to the first category computing job or the second category computing job. If it is the first category computing job, the process proceeds to step (8); if it is the second category computing job, the process proceeds to step (9);
[0081] (8) The master node adds the ID, content, and ID set of the computing job called by the i-th computing job as an entry into the list established in step (5), and proceeds to step (13);
[0082] The advantage of this step is that when the first type of computing job is called for the first time, an entry will be created for this first type of computing job and added to the list established in step (5). In this way, after processing all the computing jobs called by a computing job, the job that calls these computing jobs can be directly found from the list established in step (5) without traversing the entire CitcomS job process, thereby improving the real-time performance of the CitcomS system.
[0083] (9) The master node obtains an idle slave node from the pre-established slave node idle list, deletes the idle slave node from the slave node idle list according to its ID, and sends the i-th computing job to the obtained idle slave node.
[0084] (10) The slave node processes the i-th computing job and returns the ID of the i-th computing job to the master node after processing.
[0085] Specifically, the process of processing the i-th computing job in this step includes the following sub-steps:
[0086] (10-1) Obtain the i-th computing job from the node;
[0087] (10-2) The slave node determines whether the single-thread pool created for the slave node in step (2) has already started a thread. If not, a new thread is created in the single-thread pool and then the process goes to step (10-3). Otherwise, the process goes directly to step (10-3).
[0088] (10-3) The slave node dispatches the i-th computing job to the single-thread pool for execution;
[0089] (10-4) After the execution of the i-th computing job is completed, the slave node returns the ID of the computing job to the master node;
[0090] (10-5) The master node re-adds the slave node to the slave node idle list;
[0091] The advantage of the above steps (9) to (10) is that the computing jobs are sent to the slave nodes for processing, that is, the original single-machine single-node CitcomS system is expanded to multiple servers and multiple nodes, thereby greatly improving the scale of the CitcomS system and increasing the computing job processing capacity of the CitcomS system.
[0092] (11) The master node receives the ID of the i-th computing job returned by the slave node, and uses the ID of the i-th computing job to query the computing job that calls the i-th computing job in the list created in step (5), and determines whether all the computing jobs called by the queried computing job have been executed. If so, it proceeds to step (12); otherwise, it proceeds to step (13);
[0093] (12) The master node determines whether the ID of the computing job that calls the i-th computing job is 1. If so, the process ends. Otherwise, i is set to the ID of the computing job that calls the i-th computing job, and the process returns to step (9).
[0094] (13) The master node sets i=i+1 and returns to step (6).
[0095] In general, compared with the prior art, the technical solution conceived by the present invention effectively increases the parallelism of CitcomS and increases the usable scale of the model, achieving an effective gain effect, providing parallel processing and high-performance acceleration for numerical simulations in geodynamics projects, and achieving the purpose of optimizing the real-time performance of the CitcomS system.
[0096] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for optimizing the real-time performance of a CitcomS system, wherein the CitcomS system comprises a master node and a plurality of slave nodes, characterized in that: The method comprises the following steps: (1) The master node receives the CitcomS job from the client and performs task analysis on the CitcomS job to obtain a call relationship graph and the total number of computing jobs in the CitcomS job; (2) The master node creates a slave node idle list to record the ID of each slave node in an idle state and the position of the slave node in the slave node idle list, and creates a single-thread pool for each slave node in an idle state; (3) The master node divides all computing jobs in the CitcomS job into first-category computing jobs and second-category computing jobs according to the call relationship graph obtained in step (1); (4) The master node sets the counter i=1; (5) The master node creates an empty list; (6) The master node obtains the i-th computing job in the CitcomS job and determines whether the i-th computing job has been processed. If so, it proceeds to step (12); otherwise, it proceeds to step (7); (7) The master node determines whether the i-th computing job belongs to the first category computing job or the second category computing job. If it is the first category computing job, the process proceeds to step (8); if it is the second category computing job, the process proceeds to step (9); (8) The master node adds the ID, content, and ID set of the computing job called by the i-th computing job as an entry into the list established in step (5), and proceeds to step (13); (9) The master node obtains an idle slave node from the pre-established idle list of slave nodes, deletes the idle slave node from the idle list according to its ID, and sends the i-th computing job to the obtained idle slave node; (10) The slave node processes the i-th computing job and returns the ID of the i-th computing job to the master node after processing. (11) The master node receives the ID of the i-th computing job returned by the slave node, and uses the ID of the i-th computing job to query the computing job that calls the i-th computing job in the list created in step (5), and determines whether all the computing jobs called by the queried computing job have been executed. If so, it proceeds to step (12); otherwise, it proceeds to step (13); (12) The master node determines whether the ID of the computing job that calls the i-th computing job is 1. If so, the process ends. Otherwise, i is set to the ID of the computing job that calls the i-th computing job, and the process returns to step (8). (13) The master node sets i=i+1 and returns to step (6).
2. The method for optimizing the real-time performance of the CitcomS system according to claim 1, characterized in that: In step (1), the computing job refers to the function in the CitcomS job, and the master node divides each function in the CitcomS job into a computing job.
3. The method for optimizing the real-time performance of the CitcomS system according to claim 1 or 2, characterized in that: In step (1), the CitcomS job is parsed to obtain a call relationship graph. This process includes the following sub-steps: (1-1) Set counter i=1; (1-2) Determine whether i is equal to the total number of computing jobs in the CitcomS job. If so, the process ends, otherwise proceed to step (1-3); (1-3) Obtain the i-th computing job in the CitcomS job, and determine whether the i-th computing job needs to call other computing jobs in the CitcomS job. If yes, proceed to step (1-4); otherwise, proceed to step (1-5); (1-4) Obtain other computing jobs in the CitcomS job called by the i-th computing job and the number j of these called computing jobs, and then proceed to step (1-5); (1-5) Set i=i+1 and return to step (1-2).
4. The method for optimizing the real-time performance of the CitcomS system according to any one of claims 1 to 3, characterized in that: Whether the i-th computing job needs to call other computing jobs in the CitcomS job is determined by determining whether the function in the computing job calls functions in other computing jobs in the CitcomS job. If the function in the computing job calls functions in other computing jobs in the CitcomS job, it means that the computing job needs to call other computing jobs in the CitcomS job, otherwise it means that the computing job does not need to call other computing jobs in the CitcomS job.
5. The method for optimizing the real-time performance of the CitcomS system according to claim 1, characterized in that: The first type of computing job refers to a job that needs to call one or more computing jobs; the second type of computing job refers to a computing job that does not call any other computing jobs; Different entries in the list created in step (5) are used to store the IDs, contents, and ID sets of the computing jobs called by different computing jobs.
6. The method for optimizing the real-time performance of the CitcomS system according to claim 1, characterized in that: In step (6), the process of determining whether the i-th computing job has been processed is specifically to determine whether the i-th computing job has been sent by the master node to the idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node. If the i-th computing job has been sent by the master node to the idle slave node for processing and the master node has obtained the ID of the i-th computing job returned by the slave node, it means that the i-th computing job has been processed; otherwise, it means that the i-th computing job has not been processed.
7. The method for optimizing the real-time performance of the CitcomS system according to claim 1, characterized in that: The process of processing the i-th computing job in step (10) includes the following sub-steps: (10-1) Obtain the i-th computing job from the node; (10-2) The slave node determines whether the single-thread pool created for the slave node in step (2) has already started a thread. If not, a new thread is created in the single-thread pool and then the process goes to step (10-3). Otherwise, the process goes directly to step (10-3). (10-3) The slave node dispatches the i-th computing job to the single-thread pool for execution; (10-4) After the execution of the i-th computing job is completed, the slave node returns the ID of the computing job to the master node; (10-5) The master node re-adds the slave node to the slave node idle list.
8. A system for optimizing the real-time performance of a CitcomS system, the CitcomS system comprising a master node and a plurality of slave nodes, characterized in that: The system comprises: The first module is set in the main node and is used to receive the CitcomS job from the client and perform task analysis on the CitcomS job to obtain a call relationship graph and the total number of computing jobs in the CitcomS job; The second module is arranged at the master node, and is used to pre-create a slave node idle list, to record the ID of each slave node in an idle state, and the position of the slave node in the slave node idle list, and to create a single-thread pool for each slave node in an idle state; The third module is set in the master node and is used to divide all computing jobs in the CitcomS job into first-category computing jobs and second-category computing jobs according to the call relationship graph obtained by the second module; A fourth module, which is arranged at the master node, is used to set the counter i=1; The fifth module is set in the master node and is used to create an empty list; The sixth module is set in the master node, and is used to obtain the i-th computing job in the CitcomS job, and determine whether the i-th computing job has been processed. If so, enter the twelfth module, otherwise enter the seventh module; The seventh module is set in the master node and is used to determine whether the i-th computing job belongs to the first type of computing job or the second type of computing job. If it is the first type of computing job, the eighth module is entered; if it is the second type of computing job, the ninth module is entered; An eighth module, which is set in the master node, is used to put the ID, content, and ID set of the computing job called by the i-th computing job into the list established by the fifth module as an entry, and transfer to the thirteenth module; A ninth module, which is arranged at the master node, is used to obtain an idle slave node from a pre-established idle list of slave nodes, delete the idle slave node from the idle list of slave nodes according to its ID, and send the i-th computing job to the obtained idle slave node; A tenth module, which is set in the slave node, is used to process the i-th computing job and return the ID of the i-th computing job to the master node after the processing is completed; The eleventh module is set in the master node, and is used to receive the ID of the i-th computing job returned from the slave node, and query the computing job that calls the i-th computing job in the list created by the fifth module through the ID of the i-th computing job, and determine whether the computing jobs called by the queried computing job have all been executed. If so, enter the twelfth module, otherwise, transfer to the thirteenth module; A twelfth module, which is set in the master node, is used to determine whether the ID of the computing job that calls the i-th computing job is 1, if so, the process ends, otherwise, i is set to the ID of the computing job that calls the i-th computing job, and returns to the eighth module; The thirteenth module is set at the main node, and is used to set i=i+1 and return to the sixth module.
