CN109388489A - A kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems - Google Patents
A kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems Download PDFInfo
- Publication number
- CN109388489A CN109388489A CN201710656987.6A CN201710656987A CN109388489A CN 109388489 A CN109388489 A CN 109388489A CN 201710656987 A CN201710656987 A CN 201710656987A CN 109388489 A CN109388489 A CN 109388489A
- Authority
- CN
- China
- Prior art keywords
- subprocess
- task
- guiding systems
- single guiding
- height
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Hardware Redundancy (AREA)
Abstract
The technological frame of the fault-tolerant high stable of height for more subprocess and process signals processing based on single guiding systems that the invention discloses a kind of, single guiding systems are in such a way that more subprocess processing Multi-task Concurrency and subprocess abnormal signal are handled in the invention, the method for saving subprocess number and mission bit stream etc. in conjunction with persistence, parent process is set to accomplish the capture to abnormal task subprocess signal, and the information saved according to persistence, the new subprocess adapter tube of distribution one reforms the abnormal task, realizes high efficiency, the high fault-tolerant and high stability of the Multi-task Concurrency of single guiding systems.
Description
Technical field
The present invention relates to a kind of Internet communication technology field, in particular to it is a kind of based on more subprocess of single guiding systems with
And the technological frame of the fault-tolerant high stable of height of process signals processing.
Background technique
In March, 2007, National Administration for the Protection of State Secrets and The State Council IT Application Office, which combine, has issued " E-Government secrecy
Administration guide ".Regulation in " guide ": according to the technical requirements of information privacy, concerning security matters network cannot be directly connected to internet;It relates to
When close network and non-concerning security matters are connected to the network, if not concerning security matters network and internet are physically isolated, then concerning security matters are isolated using two-way gateway
Network and non-concerning security matters are connected to the network;If not concerning security matters network and internet are logic isolations, then pacified using security isolation and information
Full isolation realizes that concerning security matters network and non-concerning security matters are connected to the network with information one-way import system, guarantees confidential data not from High Security Level net
Network flows to Low Security Level network.
In general, the confidential data information of single guiding systems transmission includes file, database data, e-mail data
Deng.This just determines that single guiding systems are a kind of systems with certain complexity for handling Multi-task Concurrency, so using linear
The ordinary skill frame processing multitask of the one process of processing shows slightly inefficient.Existing common technology majority is based on the more of lightweight
Thread realizes, but due to more than the data task of single guiding systems and duty cycle circulation and to execute the time long, once there is one
Mission thread occur it is abnormal, then the whole system based on thread also can related appearance it is abnormal, so the scheme of multithreading and uncomfortable
Close single guiding systems.
Summary of the invention
To overcome above-mentioned the deficiencies in the prior art, this programme comprehensively considers the superiority and inferiority of various implementations, using multiple sons
Process corresponds to multitask, and zygote process exception signal processing takes over the mode reformed to abnormal task, realizes single guiding systems
The high efficiency of Multi-task Concurrency and high fault-tolerant high stability.
The present invention is handled using the processing multitask of more subprocess and subprocess abnormal signal capture, is saved in conjunction with persistence
The method of subprocess number and mission bit stream etc. realizes high efficiency, the high fault-tolerant and high stability of the Multi-task Concurrency of single guiding systems.
Due to single guiding systems data task more than and also task have loop cycle and task execution time long, so using subprocess independence
Execution task is optimal selection;And due to the independence of process, in some task process long-time implementation procedure if
Other task process will not be influenced by exception occur, as long as parent process handles sub- process exception signal capture, so that it may accomplish
Abnormal task is reformed by the adapter tube of seamless and efficient, realizes high fault-tolerant and high stability.
This programme implementing procedure is as follows:
1, then Anonymous Pipes of single guiding systems process application initialization for communication obtain institute's doing for task in need and believe
Breath.
2, a subprocess processing is distributed to each task.
2, in terms of subprocess, it is connected to the mission bit stream of parent process distribution, dynamic base needed for loading tasks does task.
3, in terms of parent process, bundle process number and mission bit stream persistence are saved, and to sub- process exception signal registration office
Reason.
If 4, subprocess occurs abnormal, and parent process catchs the exception signal immediately, and reads the subprocess of persistence preservation
Number and corresponding mission bit stream, obtain mission bit stream after, then the exception information is deleted inside the information of preservation, is jumped to
Step 2.
5, when subprocess finishes task, report mission bit stream to parent process by pipeline.
6, parent process while circulation reads duct size information and is handled if receiving the information that subprocess reports.
Technical solution of the present invention bring the utility model has the advantages that
Using the mode of the processing multitask of more subprocess and the processing of subprocess abnormal signal in the present invention, can make singly to lead
System concurrency handles multitask, and due to the independence of process, once, which there is exception, in some task process to be influenced
The operation of whole system can also capture the abnormal signal of task subprocess by parent process, and it is different to do to redistribute subprocess
Permanent business adapter tube and equal processing is reformed, single guiding systems is made to have the characteristics that high efficiency, the fault-tolerant, high stability of height.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is implementation flow chart proposed by the present invention;
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The invention implementing procedure is as follows:
1, then Anonymous Pipes of single guiding systems process application initialization for communication obtain institute's doing for task in need and believe
Breath;
2, a subprocess processing is distributed to each task;
2, in terms of subprocess, it is connected to the mission bit stream of parent process distribution, dynamic base needed for loading tasks does task;
3, in terms of parent process, bundle process number and mission bit stream persistence are saved, and to sub- process exception signal registration office
Reason;
If 4, subprocess occurs abnormal, and parent process catchs the exception signal immediately, and reads the subprocess of persistence preservation
Number and corresponding mission bit stream, obtain mission bit stream after, then the exception information is deleted inside the information of preservation, is jumped to
Step 2;
5, when subprocess finishes task, report mission bit stream to parent process by pipeline;
6, parent process while circulation reads duct size information and is handled if receiving the information that subprocess reports.
Code for example:
1. single guiding systems form task queue g_ after obtaining all mission bit streams, mission bit stream
OuterTaskInfoList, the types of variables are std::list<OuterTaskInfo>, and wherein OuterTaskInfo is to appoint
Business information structure, can be customized.Then a subprocess processing is distributed to each task, parent process is subprocess signal note
Volume event handling function, the code of part are as follows:
2. technical solution of the present invention is mainly in subprocess abnormality processing, wherein handling function sig_chld_handler's
Partial code is as follows:
3. being recognized that more subprocess of the present invention program handle Multi-task Concurrency from code flow above, combine
The processing of subprocess abnormal signal, can accomplish seamless pipe really and reform abnormal task, realize high efficiency, the height of single guiding systems
Fault-tolerance and high stability.
It is provided for the embodiments of the invention a kind of more subprocess and process signals processing based on single guiding systems above
The technological frame of the fault-tolerant high stable of height be described in detail, specific case used herein is to the principle of the present invention and reality
The mode of applying is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Together
When, for those of ordinary skill in the art, according to the thought of the present invention, have in specific embodiments and applications
Change place, in conclusion the contents of this specification are not to be construed as limiting the invention.
Claims (4)
1. a kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems, the hair
Bright to correspond to multitask using multiple subprocess, zygote process exception signal processing takes over the mode reformed to abnormal task, real
The now high efficiency of single guiding systems Multi-task Concurrency and high fault-tolerant high stability.
2. a kind of fault-tolerant height of height of more subprocess and process signals processing based on single guiding systems according to claim 1
Stable technological frame, it is characterised in that: handled using the processing multitask of more subprocess and subprocess abnormal signal capture, knot
It closes persistence and saves subprocess number and mission bit stream.
3. a kind of fault-tolerant height of height of more subprocess and process signals processing based on single guiding systems according to claim 1
Stable technological frame, it is characterised in that: due to single guiding systems data task more than and also task there is loop cycle and task to hold
The row time is long, therefore in such a way that subprocess independently executes task;If gone out in some task process long-time implementation procedure
It is now abnormal to influence other task process, as long as parent process handles sub- process exception signal capture, it can accomplish exception
Task is reformed by the adapter tube of seamless and efficient.
4. a kind of fault-tolerant height of height of more subprocess and process signals processing based on single guiding systems according to claim 1
Stable technological frame, it is characterised in that:
S1. Anonymous Pipes of single guiding systems process application initialization for communication, then obtain the mission bit stream in need done;
S2. a subprocess processing is distributed to each task;
S3. in terms of subprocess, it is connected to the mission bit stream of parent process distribution, dynamic base needed for loading tasks does task;
S4. in terms of parent process, bundle process number and mission bit stream persistence are saved, and to sub- process exception signal location registration process;
S5. if subprocess occurs abnormal, parent process catchs the exception signal immediately, and read persistence preservation subprocess number and
Then corresponding mission bit stream deletes the exception information inside the information of preservation after obtaining mission bit stream, jumps to step
s2;
S6. when subprocess finishes task, report mission bit stream to parent process by pipeline;
S7. parent process while circulation reads duct size information and is handled if receiving the information that subprocess reports.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710656987.6A CN109388489A (en) | 2017-08-03 | 2017-08-03 | A kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710656987.6A CN109388489A (en) | 2017-08-03 | 2017-08-03 | A kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388489A true CN109388489A (en) | 2019-02-26 |
Family
ID=65413086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710656987.6A Pending CN109388489A (en) | 2017-08-03 | 2017-08-03 | A kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388489A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112395106A (en) * | 2020-11-17 | 2021-02-23 | 努比亚技术有限公司 | Process management method, mobile terminal, and computer-readable storage medium |
CN113595887A (en) * | 2021-09-09 | 2021-11-02 | 北京天空卫士网络安全技术有限公司 | Flow control method and device in mail system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006085428A (en) * | 2004-09-16 | 2006-03-30 | Nec Corp | Parallel processing system, interconnection network, node and network control program |
CN1996257A (en) * | 2006-12-26 | 2007-07-11 | 华为技术有限公司 | Method and system for monitoring process |
CN104850394A (en) * | 2015-04-17 | 2015-08-19 | 北京大学 | Management method of distributed application program and distributed system |
CN105260238A (en) * | 2015-10-13 | 2016-01-20 | 珠海许继芝电网自动化有限公司 | Multi-process performance improvement deployment method |
-
2017
- 2017-08-03 CN CN201710656987.6A patent/CN109388489A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006085428A (en) * | 2004-09-16 | 2006-03-30 | Nec Corp | Parallel processing system, interconnection network, node and network control program |
CN1996257A (en) * | 2006-12-26 | 2007-07-11 | 华为技术有限公司 | Method and system for monitoring process |
CN104850394A (en) * | 2015-04-17 | 2015-08-19 | 北京大学 | Management method of distributed application program and distributed system |
CN105260238A (en) * | 2015-10-13 | 2016-01-20 | 珠海许继芝电网自动化有限公司 | Multi-process performance improvement deployment method |
Non-Patent Citations (1)
Title |
---|
郑庆良 等: "网络服务器模型分析与实现_郑庆良", 《杭州电子工业学院学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112395106A (en) * | 2020-11-17 | 2021-02-23 | 努比亚技术有限公司 | Process management method, mobile terminal, and computer-readable storage medium |
CN113595887A (en) * | 2021-09-09 | 2021-11-02 | 北京天空卫士网络安全技术有限公司 | Flow control method and device in mail system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111061715B (en) | Web and Kafka-based distributed data integration system and method | |
Miranda et al. | Appia, a flexible protocol kernel supporting multiple coordinated channels | |
CN107526645B (en) | A kind of communication optimization method and system | |
US10938868B2 (en) | Application service integration | |
CN105956082A (en) | Real-time data processing and storage system | |
CN111694675B (en) | Task scheduling method and device and storage medium | |
CN106293757B (en) | Robotic system software framework and its implementation and device | |
CN102467411A (en) | Workflow processing and workflow agent method, device and system | |
KR20080005523A (en) | Multithreading with concurrency domains | |
CN105553682B (en) | Event notification method and the system notified for event | |
CN110806855B (en) | CAN equipment development system and method thereof | |
CN109388489A (en) | A kind of technological frame of the fault-tolerant high stable of height of more subprocess and process signals processing based on single guiding systems | |
Courtiat et al. | A general-purpose multimedia synchronization mechanism based on causal relations | |
CN110083460A (en) | A kind of design method of the microkernel architecture using event bus technology | |
CN109446130A (en) | A kind of acquisition methods and system of I/O device status information | |
CN104021196B (en) | I/O multiplexing method for System V message queue | |
CN109412970B (en) | Data transfer system, data transfer method, electronic device, and storage medium | |
CN105187519A (en) | Socket transmission system based on AIO | |
CN110334146A (en) | A kind of data transmission method between data source | |
CN101349975B (en) | Method for implementing interrupt bottom semi-section mechanism in embedded operation system | |
Zöllner et al. | A generic C++ toolkit for the development of real-time-capable software defined radio applications | |
CN107911317A (en) | A kind of method for dispatching message and device | |
US20040040032A1 (en) | Computer programs | |
CN107911442A (en) | Receive response interface exchange method, device, computer equipment and storage medium | |
CN103927153B (en) | A kind of method of system configuration, equipment 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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190226 |
|
WD01 | Invention patent application deemed withdrawn after publication |