CN105224395A - A kind of process management method and system - Google Patents

A kind of process management method and system Download PDF

Info

Publication number
CN105224395A
CN105224395A CN201510650851.5A CN201510650851A CN105224395A CN 105224395 A CN105224395 A CN 105224395A CN 201510650851 A CN201510650851 A CN 201510650851A CN 105224395 A CN105224395 A CN 105224395A
Authority
CN
China
Prior art keywords
business process
managing
operating system
business
exits
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
CN201510650851.5A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510650851.5A priority Critical patent/CN105224395A/en
Publication of CN105224395A publication Critical patent/CN105224395A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a kind of process management method and system, for managing business process each in operating system, described process management method comprises: create one for managing the managing process of each business process; Described managing process creates and configures each business process; When described business process exits operating system, described operating system sends the notification to described managing process, when described business process exits operating system in improper mode, described managing process creates a business process identical with the business process exiting operating system in improper mode.The present invention is by the method for an increase managing process concrete management business procedure collapse, replace defensive programming, receive the notice at the end of business process with managing process management and judge whether to restart business process according to exiting reason, and managing process is restarted at once and is configured, to improve the robustness of software product after a certain process collapse.

Description

A kind of process management method and system
Technical field
The present invention relates to networking technology area, particularly management of process technical field, be specially a kind of process management method and system.
Background technology
Process is the program entity run, and comprises all system resources occupied in this program run, such as CPU (register), IO, internal memory, Internet resources etc.A lot of people, when the concept of the process of answer, often only can say that it is an entity run, and can neglect the resource occupied by process.Such as a same program, synchronization has been run by twice, and so they are exactly two independently processes.One of function of operating system, mainly manages processor.Multiprogramming technology is adopted in order to improve the utilization factor of CPU.Coordinate the relation between multiprogramming by management of process, CPU is fully utilized.
In the design of software product, due to the uncertainty of input and running environment etc., many times there will be the situation that some are difficult to predict, program often can be difficult to the factor of prediction due to various and occur mistake, causes program crashing.Such as, if more crucial program, finger daemon, program crashing is unacceptable.The method of current this problem of reply is all generally with defensive programming, and namely key point place as much as possible in a program attempts catch unexpected and processed for various accident.But existing disposal route has following shortcoming: 1) add code complexity and coupling, in program, catching unexpected and processing code accordingly all can appear in a lot of place, and these local logics are generally random; 2) require higher to designer's business and technical merit, designer needs to know when may occur how which kind of surprisingly also processes; 3) product is difficult to safeguard, generally can not exhaustive for all accidents complete.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of process management method and system, difficulty large problem complicated for the method solving the program crashing of precautionary process in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of process management method, for managing business process each in operating system, described process management method comprises: create one for managing the managing process of each business process; Described managing process creates and configures each business process; When described business process exits operating system in improper mode, described managing process creates a business process identical with the business process exiting operating system in improper mode.
As a preferred embodiment of the present invention, described process management method also comprises: when described business process exits operating system, described operating system sends the notification to described managing process.
As a preferred embodiment of the present invention, what described notification package at least comprised the ID of described business process and described business process exits reason.
As a preferred embodiment of the present invention, according to the reason that exits of described business process, described managing process judges whether described business process exits operating system in improper mode.
As a preferred embodiment of the present invention, described process management method also comprises: when described business process exits operating system in improper mode, and the residual data of the business process of operating system is exited in described managing process cleaning in improper mode.
For achieving the above object, the present invention also provides a kind of process management system, for managing business process each in operating system, described process management system comprises: managing process creation module, for creating one for managing the managing process of each business process; Business process creation module, be connected with described managing process creation module, create for utilizing described managing process and configure each business process, and when described business process exits operating system in improper mode, create a business process identical with the business process exiting operating system in improper mode by described managing process.
As a preferred embodiment of the present invention, described process management system also comprises: the notice sending module be connected with described business process creation module with described operating system respectively, for when described business process exits operating system, send the notification to described managing process.
As a preferred embodiment of the present invention, what described notification package at least comprised the ID of described business process and described business process exits reason.
As a preferred embodiment of the present invention, described process management system also comprises: the judge module be connected with described business process creation module with described notice sending module respectively, judges whether described business process exits operating system in improper mode for the reason that exits according to described business process.
As a preferred embodiment of the present invention, described process management system also comprises: the cleaning module be connected with described judge module with described notice sending module respectively, for when described business process exits operating system in improper mode, clear up the residual data of the business process exiting operating system in improper mode.
As mentioned above, a kind of process management method of the present invention and system, have following beneficial effect:
1, the present invention is by the method for an increase managing process concrete management program crashing, replace defensive programming, the notice at the end of business process is received with managing process management, and judge whether to restart business process according to exiting reason, and managing process is restarted at once and is configured, to improve the robustness of software product after a certain process collapse.
2, the present invention can reduce code complexity and the degree of coupling, in program need not various process unexpected, for programmer has saved a large amount of time, improve work efficiency, reduce the requirement of business to designer and technical merit.
3, the present invention is simply efficient, has stronger versatility and practicality.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of process management method of the present invention.
Fig. 2 is shown as the treatment scheme schematic diagram of managing process and business process in management of process of the present invention.
Fig. 3 is shown as the processing logic schematic diagram of managing process in management of process of the present invention.
Fig. 4 is shown as the structural representation of process management system of the present invention.
Element numbers explanation
1 process management system
11 managing process creation modules
12 business process creation modules
13 notice sending modules
14 judge modules
15 cleaning modules
S11 ~ S13 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
The object of the present embodiment is to provide a kind of process management method and system, difficulty large problem complicated for the method solving the program crashing of precautionary process in prior art.To principle and the embodiment of a kind of process management method of the present invention and system be elaborated below, and make those skilled in the art not need creative work can understand a kind of process management method of the present invention and system.
The present embodiment provides a kind of process management method and system, object is exactly reset automatically after program is collapsed due to mistake and configure, to improve the robustness of software product, difficulty large problem complicated with the method solving the program crashing of precautionary process in prior art.
The present embodiment provides a kind of process management method, and for managing business process each in operating system, particularly, as shown in Figure 1, described process management method comprises the following steps.
Step S11, creates one for managing the managing process of each business process.
Step S12, described managing process creates and configures each business process.
Step S13, when described business process exits operating system in improper mode, described managing process creates a business process identical with the business process exiting operating system in improper mode.
Below step S11 is described in detail to step S13.
Step S11, creates one for managing the managing process of each business process.By increasing a managing process concrete management business process, program crashing and process collapse, such managing process just can be known, to facilitate process.
Step S12, described managing process creates and configures each business process.The relation of the introducing managing process that the present embodiment is introduced and business process as shown in Figure 2.Managing process is responsible for creating and configuring concrete business process, and business process is responsible for concrete service logic.Be equivalent to, described managing process creates and configuration service process as parent process, and described business process is as the subprocess of managing process.
In the present embodiment, described process management method also comprises: when described business process exits operating system, described operating system sends the notification to described managing process.Wherein, described business process exits operating system and had both comprised business process and exit operating system in the normal fashion, also comprise business process and exit operating system in improper mode, that is, described operating system can notify managing process when business process exits, wherein, business process exits the program crashing comprising business process in improper mode, also just say, when the program crashing of business process, described operating system can send the notification to described managing process.
Wherein, in the present embodiment, what described notice included but not limited to the ID of described business process and described business process exits reason.Afterwards, as shown in Figure 3, according to the reason that exits of described business process, described managing process judges whether described business process exits operating system in improper mode.If described business process exits operating system in improper mode, then perform step S13, if described business process exits operating system in the normal fashion, then managing process returns, and continues the notice waiting for operating system.
Step S13, when described business process exits operating system in improper mode, described managing process creates a business process identical with the business process exiting operating system in improper mode.That is, if described business process exits (comprising business process program crashing) in improper mode, managing process then creates an identical business process again.Thus, the present embodiment is by increase managing process concrete management program crashing, replace defensive programming, the notice at the end of business process is received with managing process management, and judge whether to restart business process and managing process is restarted at once and configures after the collapse of a certain process according to exiting reason, reduce code complexity and the degree of coupling, need not various process accident in program, for programmer has saved a large amount of time, improve work efficiency.
In addition, in the present embodiment, when described business process exits operating system in improper mode, the residual data of the business process of operating system is exited in described managing process cleaning in improper mode, after cleaning exits the residual data of the business process of operating system in improper mode, described managing process creates a business process identical with the business process exiting operating system in improper mode again.
For making those skilled in the art understand process management method in the present embodiment further, the implementation process of process management method in the present embodiment will be further illustrated below.
First create one for managing the managing process of each business process, then described managing process creates and configuration service process as parent process, and business process is as the subprocess of managing process.When business process normally exits or collapses, operating system can notify managing process, and this notification package contains the ID of business process and exits reason.Exit if improper, managing process then clears up residual data, the business process that establishment one is identical again afterwards.
For achieving the above object, the present invention also provides a kind of process management system, particularly, as shown in Figure 4, for managing business process each in operating system, described process management system 1 comprises: managing process creation module 11, business process creation module 12, notice sending module 13, judge module 14 and cleaning module 15.
Below above-mentioned each module is described in detail.
Described managing process creation module 11 is for creating one for managing the managing process of each business process; By increasing a managing process concrete management business process, program crashing and process collapse, such managing process just can be known, to facilitate process.
Described business process creation module 12 is connected with described managing process creation module 11, create for utilizing described managing process and configure each business process, and when described business process exits operating system in improper mode, create a business process identical with the business process exiting operating system in improper mode by described managing process.
The relation of the introducing managing process that the present embodiment is introduced and business process as shown in Figure 2.Managing process is responsible for creating and configuring concrete business process, and business process is responsible for concrete service logic.Be equivalent to, described managing process creates and configuration service process as parent process, and described business process is as the subprocess of managing process.
Described notice sending module 13 is connected with described business process creation module 12 with described operating system respectively, for when described business process exits operating system, sends the notification to described managing process.
Wherein, described business process exits operating system and had both comprised business process and exit operating system in the normal fashion, also comprise business process and exit operating system in improper mode, that is, described notice sending module 13 can notify managing process when business process exits, wherein, business process exits the program crashing comprising business process in improper mode, also just say, when the program crashing of business process, described notice sending module 13 can send the notification to described managing process.
Wherein, in the present embodiment, what described notification package at least comprised the ID of described business process and described business process exits reason.
Described judge module 14 is connected with described business process creation module 12 with described notice sending module 13 respectively, judges whether described business process exits operating system in improper mode for the reason that exits according to described business process.
According to the reason that exits of described business process, described judge module 14 judges whether described business process exits operating system in improper mode.If described business process exits operating system in improper mode, then described business process creation module 12 utilizes described managing process to create a business process identical with the business process exiting operating system in improper mode, if described business process exits operating system in the normal fashion, then managing process returns, and continues the notice waiting for described notice sending module 13.That is, if described business process exits (comprising business process program crashing) in improper mode, described business process creation module 12 utilizes the managing process business process that then establishment one is identical again.Thus, the present embodiment is by increase managing process concrete management program crashing, replace defensive programming, the notice at the end of business process is received with managing process management, and judge whether to restart business process and managing process is restarted at once and configures after the collapse of a certain process according to exiting reason, reduce code complexity and the degree of coupling, need not various process accident in program, for programmer has saved a large amount of time, improve work efficiency.
Described cleaning module 15 is connected with described judge module 14 with described notice sending module 13 respectively, for when described business process exits operating system in improper mode, clears up the residual data of the business process exiting operating system in improper mode.After described cleaning module 15 is cleared up and exited the residual data of the business process of operating system in improper mode, described business process creation module 12 creates a business process identical with the business process exiting operating system in improper mode again.
For making those skilled in the art understand process management system 1 in the present embodiment further, the course of work of process management system 1 in the present embodiment will be further illustrated below.
First managing process creation module 11 creates one for managing the managing process of each business process, and then described managing process creates and configuration service process as parent process by business process creation module 12, and business process is as the subprocess of managing process.When business process normally exits or collapses, notice sending module 13 can notify managing process, and this notification package contains the ID of business process and exits reason.If judge module 14 judges that business process is improper exiting, cleaning module 15 cleaning residual data, business process creation module 12 creates an identical business process again afterwards.
In sum, the present invention is by the method for an increase managing process concrete management program crashing, replace defensive programming, the notice at the end of business process is received with managing process management, and judge whether to restart business process according to exiting reason, and managing process is restarted at once and is configured, to improve the robustness of software product after a certain process collapse; The present invention can reduce code complexity and the degree of coupling, in program need not various process unexpected, for programmer has saved a large amount of time, improve work efficiency, reduce the requirement of business to designer and technical merit; The present invention is simply efficient, has stronger versatility and practicality.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. a process management method, for managing business process each in operating system, is characterized in that: described process management method comprises:
Create one for managing the managing process of each business process;
Described managing process creates and configures each business process;
When described business process exits operating system in improper mode, described managing process creates a business process identical with the business process exiting operating system in improper mode.
2. process management method according to claim 1, is characterized in that: described process management method also comprises: when described business process exits operating system, described operating system sends the notification to described managing process.
3. process management method according to claim 2, is characterized in that: what described notification package at least comprised the ID of described business process and described business process exits reason.
4. process management method according to claim 3, is characterized in that: according to the reason that exits of described business process, described managing process judges whether described business process exits operating system in improper mode.
5. the process management method according to claim 1 or 4, it is characterized in that: described process management method also comprises: when described business process exits operating system in improper mode, the residual data of the business process of operating system is exited in described managing process cleaning in improper mode.
6. a process management system, for managing business process each in operating system, is characterized in that: described process management system comprises:
Managing process creation module, for creating one for managing the managing process of each business process;
Business process creation module, be connected with described managing process creation module, create for utilizing described managing process and configure each business process, and when described business process exits operating system in improper mode, create a business process identical with the business process exiting operating system in improper mode by described managing process.
7. process management system according to claim 6, it is characterized in that: described process management system also comprises: the notice sending module be connected with described business process creation module with described operating system respectively, for when described business process exits operating system, send the notification to described managing process.
8. process management system according to claim 7, is characterized in that: what described notification package at least comprised the ID of described business process and described business process exits reason.
9. process management system according to claim 8, it is characterized in that: described process management system also comprises: the judge module be connected with described business process creation module with described notice sending module respectively, judge whether described business process exits operating system in improper mode for the reason that exits according to described business process.
10. process management system according to claim 9, it is characterized in that: described process management system also comprises: the cleaning module be connected with described judge module with described notice sending module respectively, for when described business process exits operating system in improper mode, clear up the residual data of the business process exiting operating system in improper mode.
CN201510650851.5A 2015-10-10 2015-10-10 A kind of process management method and system Pending CN105224395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510650851.5A CN105224395A (en) 2015-10-10 2015-10-10 A kind of process management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510650851.5A CN105224395A (en) 2015-10-10 2015-10-10 A kind of process management method and system

Publications (1)

Publication Number Publication Date
CN105224395A true CN105224395A (en) 2016-01-06

Family

ID=54993385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510650851.5A Pending CN105224395A (en) 2015-10-10 2015-10-10 A kind of process management method and system

Country Status (1)

Country Link
CN (1) CN105224395A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383743A (en) * 2016-09-27 2017-02-08 腾讯科技(深圳)有限公司 Business processing method and system
CN109597703A (en) * 2018-12-05 2019-04-09 广州华多网络科技有限公司 A kind of processing method, device and the equipment of Software Development Kit collapse
WO2020082354A1 (en) * 2018-10-26 2020-04-30 深圳市欢太科技有限公司 System state detection method, system state detection apparatus and terminal device
CN111813571A (en) * 2020-06-13 2020-10-23 立乐教育科技(上海)有限公司 Process management method based on NodeJS
CN112540896A (en) * 2020-12-08 2021-03-23 南京天朗防务科技有限公司 Automatic VxWorks program distinguishing and running method
CN113076131A (en) * 2021-04-07 2021-07-06 山东爱拓软件开发有限公司 Embedded software system construction method and system based on multi-process architecture idea
CN114241679A (en) * 2021-12-08 2022-03-25 广东电网有限责任公司 Self-service terminal device anti-misoperation touch method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037290A1 (en) * 2001-08-15 2003-02-20 Daniel Price Methods and apparatus for managing defunct processes
CN1996257A (en) * 2006-12-26 2007-07-11 华为技术有限公司 Method and system for monitoring process
CN101630262A (en) * 2009-07-17 2010-01-20 北京数帅科技有限公司 Method for monitoring and controlling subprocess based on Linux system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037290A1 (en) * 2001-08-15 2003-02-20 Daniel Price Methods and apparatus for managing defunct processes
CN1996257A (en) * 2006-12-26 2007-07-11 华为技术有限公司 Method and system for monitoring process
CN101630262A (en) * 2009-07-17 2010-01-20 北京数帅科技有限公司 Method for monitoring and controlling subprocess based on Linux system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383743A (en) * 2016-09-27 2017-02-08 腾讯科技(深圳)有限公司 Business processing method and system
WO2020082354A1 (en) * 2018-10-26 2020-04-30 深圳市欢太科技有限公司 System state detection method, system state detection apparatus and terminal device
CN109597703A (en) * 2018-12-05 2019-04-09 广州华多网络科技有限公司 A kind of processing method, device and the equipment of Software Development Kit collapse
CN111813571A (en) * 2020-06-13 2020-10-23 立乐教育科技(上海)有限公司 Process management method based on NodeJS
CN112540896A (en) * 2020-12-08 2021-03-23 南京天朗防务科技有限公司 Automatic VxWorks program distinguishing and running method
CN112540896B (en) * 2020-12-08 2024-04-19 南京天朗防务科技有限公司 Automatic judging and running method for VxWorks program
CN113076131A (en) * 2021-04-07 2021-07-06 山东爱拓软件开发有限公司 Embedded software system construction method and system based on multi-process architecture idea
CN114241679A (en) * 2021-12-08 2022-03-25 广东电网有限责任公司 Self-service terminal device anti-misoperation touch method and system

Similar Documents

Publication Publication Date Title
CN105224395A (en) A kind of process management method and system
CN105468441A (en) Processing method and apparatus for task process
WO2013107141A1 (en) Policy scheduling system and method for cloud computing
CN104980297A (en) Virtual machine resource changing method and device, and virtualized network function device
CN107409119A (en) Prestige is determined by network characteristic
CN106027290A (en) Fault processing method and device
Levshun et al. Design and verification methodology for secure and distributed cyber-physical systems
US20180176292A1 (en) Multi-Microcontroller System, Internet of Things Gateway System, and Control Flow of Multi-Microcontroller System Based on Network Bridge
CN105787391B (en) The secure operating system of oriented mission based on TrustZone hardware
CN105068912A (en) Method and apparatus for executing webpage task
CN104468810A (en) Method for monitoring high-performance computing resource based on loongson platform
CN105939217B (en) Configure the method and device of rollback
CN114297067A (en) Script testing method and device
Huang et al. Elastic superposition task mapping for NoC-based reconfigurable systems
Boukredera et al. Modeling and analysis of reliable contract net protocol using timed colored petri nets
CN113032128A (en) Multitask control method and device, electronic equipment and storage medium
CN112817706A (en) Distributed task scheduling system and method
Enemali et al. A placement management circuit for efficient realtime hardware reuse on FPGAs targeting reliable autonomous systems
CN113741875B (en) Mimicry program execution device, mimicry program execution method, electronic equipment and storage medium
Baskaran et al. Hardware partitioning algorithm for reconfigurable operating system in embedded systems
Boukredera et al. Stochastic Petri net-based modeling and formal analysis of fault tolerant Contract Net Protocol
Sinha et al. Termination detection in cloud
CN105930200A (en) Method and device for creating timer for virtual machine on the basis of thin provisioning
Gropp Lecture 25: Strategies for parallelism and halo exchange
CN105045660A (en) Dynamic resource recovery method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160106