JP2000105707A - System for detection of abnormal state of processing program - Google Patents

System for detection of abnormal state of processing program

Info

Publication number
JP2000105707A
JP2000105707A JP10274604A JP27460498A JP2000105707A JP 2000105707 A JP2000105707 A JP 2000105707A JP 10274604 A JP10274604 A JP 10274604A JP 27460498 A JP27460498 A JP 27460498A JP 2000105707 A JP2000105707 A JP 2000105707A
Authority
JP
Japan
Prior art keywords
event
processing program
execution
management table
execution state
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
JP10274604A
Other languages
Japanese (ja)
Inventor
Hiroto Tsukahara
裕人 塚原
Saburo Iijima
三朗 飯島
Ryokichi Yoshizawa
亮吉 吉澤
Teruyuki Yasunaga
輝幸 安永
Tadashi Kojima
正 小島
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP10274604A priority Critical patent/JP2000105707A/en
Publication of JP2000105707A publication Critical patent/JP2000105707A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a system for detection of an abnormal state of a processing program which can detect an abnormality even in case of event successive occurrence by finding a difference between the time stored in a start time entry and the current time, and judging an abnormality and outputting an alarm if the difference exceeds a certain time. SOLUTION: A constant-cycle monitoring process (140) which operates in certain cycles extracts (140-1) the contents of a start time entry of a process management table which are not 0 (i.e., not in an event waiting state) and calculates (140-2) the difference from the current time entry (151-d). Here, the calculated difference is the time when a program execution begins or the program is held in an execution state after being released from waiting. The time is compared (140-3) with a prescribed time, and if the former exceeds the latter, a fault is assumed to exist, so that an alarm is outputted (140-0). Therefore, the time when the processing program 101 is executed continuously is monitored and its abnormality can easily be detected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は処理プログラムの異
常検出方式に関し、特に複数の処理プログラムを実行優
先順位にしたがって実行する場合の処理プログラムの異
常検出方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting an abnormality in a processing program, and more particularly to a method for detecting an abnormality in a processing program when a plurality of processing programs are executed in accordance with an execution priority.

【0002】[0002]

【従来の技術】従来、ウォッチドッグタイマなどの専用
ハードウェアを使用しないで処理プログラムの論理的異
常などによるインループ状態を検出する場合、1回のイ
ベントに対する処理プログラムへの処理時間を規定し、
規定時間内に処理が終了しない場合異常とみなしてい
た。
2. Description of the Related Art Conventionally, when detecting an in-loop state due to a logical abnormality of a processing program without using dedicated hardware such as a watchdog timer, a processing time for the processing program for one event is defined.
If the processing did not end within the specified time, it was regarded as abnormal.

【0003】図5に従来の異常検出方法によるタイムチ
ャートを示す。イベント待ち状態501でイベント発生
510により処理プログラムを開始525した場合、1
回のイベント発生による規定時間560以内に処理が完
了530した場合には、正常とみなしている。しかし、
処理が完了530する前に、新たなイベント515が発
生した場合、処理プログラムは、イベント待ち状態50
1とならず、すぐに処理を開始し、動作し続けることに
なるが、このような場合を異常として認識することがで
きなかった。
FIG. 5 shows a time chart according to a conventional abnormality detection method. When the processing program is started 525 by the event occurrence 510 in the event waiting state 501, 1
If the processing is completed 530 within the specified time 560 due to the occurrence of the event twice, it is regarded as normal. But,
If a new event 515 occurs before the processing is completed 530, the processing program returns to the event waiting state 50.
The processing starts immediately and continues to operate without being 1, but such a case could not be recognized as abnormal.

【0004】また、特開平5−108418 号公報では、1回
の起要求に対し、プログラムが必ず終了する必要があ
り、プログラムが終了しないでイベントを待ちそのイベ
ントに対応する処理を実行することを繰り返すプログラ
ムについては、異常の検出ができない。
In Japanese Patent Application Laid-Open No. 5-108418, it is necessary to terminate a program in response to one request, and to wait for an event without terminating the program and execute a process corresponding to the event. Abnormality cannot be detected for programs that are repeated.

【0005】[0005]

【発明が解決しようとする課題】従来の異常検出方式で
は、タイムアウトチェック範囲がイベント対応の処理開
始525からイベント処理完了530までの時間が規定
時間560内に完了していないかのチェックだったた
め、1回の要求に対する処理プログラムのインループ状
態の検出は可能であったが、図5に示すように1回のイ
ベント510に対する処理が完了530する前にイベン
ト515が連続発生した場合、処理プログラムの連続実
行状態を検出する方法がなかった。
In the conventional abnormality detection method, the time-out check range is a check to determine whether the time from the start of processing 525 corresponding to the event to the completion 530 of the event processing is not completed within the specified time 560. Although it was possible to detect the in-loop state of the processing program for one request, as shown in FIG. 5, if the event 515 occurs continuously before the processing for one event 510 is completed 530, the processing program There was no way to detect the continuous execution status.

【0006】本発明の目的は、ウォッチドッグタイマな
どの専用ハードウェアを使用しないで、図6に示すよう
に処理プログラムに対し1回のイベント610に対する
処理が完了630する前にイベント615が連続発生し
た場合には、処理プログラムが実行し続けた時間をタイ
ムアウトチェック範囲620とし、その時間が規定時間
660以内であるかチェックすることでイベント連続発
生時にも異常を検出し、アラーム報告650を可能とす
る、処理プログラムの異常状態検出方式を提供すること
にある。
An object of the present invention is to use a dedicated hardware such as a watchdog timer or the like, and continuously generate an event 615 before the processing for one event 610 is completed 630 as shown in FIG. In this case, the time during which the processing program continues to be executed is set as a time-out check range 620, and whether the time is within a specified time 660 is checked. To provide a method for detecting an abnormal state of a processing program.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明による処理プログラムの異常検出方式は、複
数の処理プログラムを実行優先順位にしたがって実行す
るオペレーティングシステムにおいて、オペレーティン
グシステムは、起動した処理プログラム単位にプロセス
管理テーブルを持ち、プロセス管理テーブル内には処理
プログラムの実行状態への遷移時刻を格納する開始時刻
エントリを持ち、処理プログラムの初期起動時に現在時
刻を開始時刻エントリに格納し、処理プログラムが実行
状態からイベント待ち状態に遷移する場合に開始時刻エ
ントリを0クリアし、イベントが発生した場合にイベン
トの発生を記憶し、イベントの発生によりイベント待ち
の状態から実行状態に遷移する場合に現在時刻を開始時
刻エントリに格納する。
In order to achieve the above-mentioned object, according to the present invention, there is provided a method for detecting an abnormality in a processing program, the method comprising the steps of: It has a process management table for each processing program, has a start time entry for storing the transition time to the execution state of the processing program in the process management table, stores the current time in the start time entry when the processing program is initially started, When the processing program transitions from the execution state to the event waiting state, clears the start time entry to 0, stores the event occurrence when an event occurs, and transitions from the event waiting state to the execution state due to the event occurrence The current time in the start time entry That.

【0008】前記プロセス管理テーブル内開始時刻エン
トリを一定周期で監視処理がポーリングし、開始時刻エ
ントリに格納されている時刻と現在時刻との差分を求
め、一定時間を超過していた場合に、前記処理プログラ
ムが異常であると判断してアラームを出力するようにし
たものである。
The monitoring process polls the start time entry in the process management table at regular intervals, finds the difference between the time stored in the start time entry and the current time. The processing program is determined to be abnormal and outputs an alarm.

【0009】本発明による他の処理プログラム異常状態
検出方式は、起動した処理プログラム単位にプロセス管
理テーブルを持ち、プロセス管理テーブル内には処理プ
ログラムの実行状態を格納する実行状態カウンタを持
ち、処理プログラムの初期起動時に実行状態カウンタに
1を格納し、処理プログラムが実行状態からイベント待
ち状態に遷移する場合に実行状態カウンタを0クリア
し、イベントが発生した場合にイベントの発生を記憶
し、イベントの発生によりイベント待ちの状態から実行
状態に遷移する場合に実行状態カウンタに1を格納す
る。
Another method for detecting an abnormal state of a processing program according to the present invention has a process management table for each activated processing program, an execution state counter for storing the execution state of the processing program in the process management table, and a processing program. When the processing program transits from the execution state to the event waiting state, the execution state counter is cleared to 0, and when an event occurs, the occurrence of the event is stored. When a transition from the event waiting state to the execution state occurs due to occurrence, 1 is stored in the execution state counter.

【0010】前記プロセス管理テーブル内実行状態カウ
ンタを一定周期で監視処理がポーリングし、実行状態カ
ウンタが0でない場合にカウンタをインクリメントし、
インクリメントした結果実行状態カウンタが規定値を超
過していた場合に、前記処理プログラムが異常であると
判断してアラームを出力するようにしたものである。
The monitoring process polls the execution status counter in the process management table at regular intervals. If the execution status counter is not 0, the counter is incremented.
When the execution state counter exceeds a specified value as a result of the increment, the processing program is determined to be abnormal and an alarm is output.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施例を図を用い
て詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to the drawings.

【0012】図1は、請求項1に示す処理プログラム開
始時刻情報による処理プログラム異常検出方式の構成図
である。図中のオペレーティングシステム100内に
は、プログラム単位に確保されるプロセス管理テーブル
150が存在し、本発明では、そのプロセス管理テーブ
ル150内にプロセスの実行開始時刻を格納する開始時
刻エントリ151を設けている。また、イベントが発生
した場合にイベント発生を示すフラグ情報を格納するイ
ベントフラグエントリ152を設ける。
FIG. 1 is a block diagram of a processing program abnormality detection method based on processing program start time information according to claim 1. In the operating system 100 shown in the figure, there is a process management table 150 secured for each program. In the present invention, a start time entry 151 for storing the execution start time of a process is provided in the process management table 150. I have. Further, an event flag entry 152 for storing flag information indicating occurrence of an event when the event occurs is provided.

【0013】処理プログラムを起動する場合に動作する
プログラム起動処理110では、現在時刻格納手段11
0−1により、プロセス管理テーブル150の開始時刻
エントリ151に実行開始時刻を格納151−cし、処
理プログラム101を実行110−2する。処理プログ
ラム101がイベント待ち101−1をオペレーティン
グシステムに通知100−bすると、イベント待ち処理
120では、まずプロセス管理テーブル150のイベン
トフラグ情報を判定120−1,152−aし、フラグ
がONであれば、既にイベントが発生しており待ち状態
とはならずイベントフラグをOFF120−5,152
−bし、実行状態のまま処理プログラムに戻り100−
c、フラグがOFFであればイベントが発生していない
ため、開始時刻クリア手段120−2により、プロセス
管理テーブルの開始時刻エントリに0を格納151−b
し、イベント待ち120−3となる。
In a program activation process 110 that operates when the processing program is activated, the current time storage means 11
According to 0-1, the execution start time is stored 151-c in the start time entry 151 of the process management table 150, and the processing program 101 is executed 110-2. When the processing program 101 notifies the operating system of the event wait 101-1 to the operating system 100-b, the event wait process 120 first determines the event flag information 120-1 and 152-a of the process management table 150, and if the flag is ON. If the event has already occurred, the event flag is set to OFF 120-5 and 152 without entering the waiting state.
-B and return to the processing program in the execution state 100-
c, if the flag is OFF, since no event has occurred, the start time clearing means 120-2 stores 0 in the start time entry of the process management table 151-b
Then, it becomes the event waiting 120-3.

【0014】処理プログラム101が待ちとなっている
イベントの発生160により動作するイベント受付処理
130では、イベントフラグをON130−1,152
−cし、イベント待ちの解除130−2を行う。これに
よりイベント待ち処理120のイベント待ち120−3
が解除され、現在時刻格納手段120−4により、プロ
セス管理テーブルの開始時刻エントリに現在時刻を格納
151−a後イベントフラグをOFF120−5,15
2−bし、処理プログラムに制御を戻す100−c。処
理プログラム101ではイベントに対応した処理101
−2を行う。処理が終了すると再びイベント待ち101
−1をオペレーティングシステムに通知100−bす
る。
In the event receiving process 130 which is activated by the occurrence 160 of the event in which the processing program 101 is waiting, the event flags are set to ON 130-1, 152.
-C, and an event waiting release 130-2 is performed. Thereby, the event wait 120-3 of the event wait processing 120 is performed.
Is released, and the current time is stored in the start time entry of the process management table by the current time storage means 120-4.
2-b, and return control to the processing program 100-c. In the processing program 101, processing 101 corresponding to the event
Perform -2. When the processing is completed, the event wait 101 is resumed.
-1 is notified 100-b to the operating system.

【0015】これにより、処理プログラム101がイベ
ント待ちの間はプロセス管理テーブル150の開始時刻
エントリ151の内容は0となり、処理プログラム10
1のイベント対応処理101−2でループした場合や、
イベント発生160が連続した場合にはプロセス管理テ
ーブル150の開始時刻エントリ151の内容は最後に
イベント待ちが解除されたときの時刻になる。
As a result, while the processing program 101 is waiting for an event, the content of the start time entry 151 of the process management table 150 becomes 0, and the processing program 10
When a loop occurs in the event handling process 101-2 of 1
When the event occurrences 160 continue, the content of the start time entry 151 of the process management table 150 is the time when the event wait was last released.

【0016】一方、一定周期で動作する定周期監視処理
140では、プロセス管理テーブルの開始時刻エントリ
の内容が0以外である(すなわちイベント待ち状態では
ない)開始時刻エントリの内容を取り出し、140−
1,151−d現在時刻との差分を算出140−2す
る。ここで算出した差分は、該当プログラムが実行開始
または待ちが解除されてから実行状態のままとなってい
る時間となり、その時間を規定された時間と比較140
−3し、超過していた場合異常状態とみなしアラームを
出力140−4する。
On the other hand, in the fixed period monitoring process 140 that operates at a fixed period, the contents of the start time entry in which the contents of the start time entry in the process management table are other than 0 (that is, not in the event waiting state) are extracted.
1, 151-d The difference from the current time is calculated 140-2. The difference calculated here is the time that the program has been in the execution state since the start of execution or the release of the wait, and the time is compared with the specified time.
-3, and if it exceeds, consider an abnormal state and output an alarm 140-4.

【0017】図2には、請求項2に示す実行状態カウン
タによる処理プログラム異常検出方式の構成図である。
図中のオペレーティングシステム200内には、プログ
ラム単位に確保されるプロセス管理テーブル250が存
在し、本発明では、そのプロセス管理テーブル250に
処理プログラムが実行状態となってから定周期で、カウ
ントアップする実行状態カウンタ251を設けている。
また、イベントが発生した場合にイベント発生を示すフ
ラグ情報を格納するイベントフラグエントリ252を設
ける。
FIG. 2 is a block diagram of a processing program abnormality detection system using an execution state counter according to a second embodiment.
In the operating system 200 shown in the figure, there is a process management table 250 secured for each program, and in the present invention, the process management table 250 counts up at regular intervals after the processing program enters the execution state. An execution state counter 251 is provided.
Further, an event flag entry 252 for storing flag information indicating the occurrence of an event when an event has occurred is provided.

【0018】処理プログラムを起動する場合に動作する
プログラム起動処理210では、プロセス管理テーブル
250の実行状態カウンタ251に1を格納210−
1,251−cし、処理プログラムを実行210−2す
る。処理プログラム201がイベント待ち201−bを
オペレーティングシステムに通知200−bすると、イ
ベント待ち処理220では、まずプロセス管理テーブル
250のイベントフラグ情報を判定220−1,252
−aし、フラグがONであれば、既にイベントが発生し
ており、待ち状態とはならずイベントフラグをOFF2
20−5,252−bし、実行状態のまま処理プログラム
に戻り200−c、フラグがOFFであればイベントが
発生していないため、プロセス管理テーブル250の実
行状態カウンタ251に0を格納220−2,251−
bし、イベント待ち220−3となる。
In the program starting process 210 that operates when the processing program is started, 1 is stored in the execution state counter 251 of the process management table 250.
Then, the processing program is executed 210-2. When the processing program 201 notifies the operating system of the event wait 201-b 200-b, the event wait processing 220 first determines the event flag information of the process management table 250 by 220-1 and 252.
-A, if the flag is ON, an event has already occurred and the event flag is set to OFF2 without waiting.
20-5, 252-b, return to the processing program in the execution state 200-c, and if the flag is OFF, since no event has occurred, 0 is stored in the execution state counter 251 of the process management table 250. 2,251-
Then, the process waits for an event 220-3.

【0019】処理プログラム201が待ちとなっている
イベントの発生260により動作するイベント受付処理
230では、イベントフラグをON230−1,252
−cし、イベント待ちの解除230−2を行う。これに
よりイベント待ち処理220のイベント待ち220−3
が解除され、プロセス管理テーブルの実行状態カウンタ
251に1を格納220−4,251−a後、イベント
フラグをOFF220−5,252−bし、処理プログ
ラムに制御を戻す200−c。処理プログラム201で
はイベントに対応した処理201−2を行う。処理が終
了すると、再びイベント待ち201−1をオペレーティ
ングシステムに通知200−bする。
In the event receiving process 230, which is executed by the processing program 201 upon occurrence of the waiting event 260, the event flags are set to ON 230-1, 252.
-C, and then cancel the event waiting 230-2. Thereby, the event waiting 220-3 of the event waiting process 220
Is released, and 1 is stored in the execution state counter 251 of the process management table 220-4, 251-a, then the event flag is turned OFF 220-5, 252-b, and control is returned to the processing program 200-c. The processing program 201 performs processing 201-2 corresponding to the event. When the processing is completed, the event waiting 201-1 is notified 200-b to the operating system again.

【0020】これにより、処理プログラム201がイベ
ント待ちの間はプロセス管理テーブル250の実行状態
カウンタ251の内容は0となり、処理プログラム20
1のイベント対応処理201−2でループした場合や、
イベント発生260が連続した場合にはプロセス管理テ
ーブル250の実行状態カウンタ251に0が設定され
ることはない。
As a result, while the processing program 201 is waiting for an event, the content of the execution state counter 251 of the process management table 250 becomes 0, and the processing program 20
When a loop occurs in the event handling process 201-2 of 1,
When the event occurrences 260 continue, 0 is not set in the execution state counter 251 of the process management table 250.

【0021】一方、一定周期で動作する定周期監視処理
240では、プロセス管理テーブルの実行状態カウンタ
251の内容が0以外である(すなわちイベント待ち状
態ではない)実行状態カウンタの内容を取り出し240
−1,251−d、その取り出した値に1を加算240
−2し、実行状態カウンタに格納251−eする。1が
加算された実行状態カウンタの値が規定値を超過してい
ないか判定240−3し、実行状態カウンタが規定値を
超過していた場合、処理プログラムの異常状態であると
判断しアラームを出力240−4する。
On the other hand, in the fixed period monitoring process 240 operating at a fixed period, the contents of the execution state counter 251 in the process management table are other than 0 (that is, the contents of the execution state counter 251 are not in the event waiting state).
-1,251-d, add 1 to the extracted value 240
-2, and store 251-e in the execution state counter. It is determined 240-3 whether the value of the execution state counter to which 1 has been added does not exceed a specified value. If the execution state counter exceeds the specified value, it is determined that the processing program is in an abnormal state, and an alarm is generated. Output 240-4.

【0022】図3には、請求項2に示す実行状態カウン
タによる処理プログラム異常検出方式のイベント待ち処
理について詳細フローを示す。図に示すイベント待ち処
理300は、まずイベントが既に発生しているかプロセ
ス管理テーブルのイベントフラグ情報により判定300
−1し、イベントが発生していれば(フラグがON状
態)プロセス管理テーブルの実行状態カウンタの変更せ
ずイベントフラグをOFF300−5し、処理プログラ
ムへ戻る300−6。イベントが発生していない場合
(フラグがOFF状態)には、プロセス管理テーブルの
実行状態カウンタに0を設定300−2し、イベント待
ちに遷移300−3する。
FIG. 3 shows a detailed flow of the event waiting process of the processing program abnormality detection system by the execution status counter according to the second embodiment. The event waiting process 300 shown in the figure first determines whether an event has already occurred based on the event flag information in the process management table.
If the event has occurred (flag is ON), the event flag is turned OFF 300-5 without changing the execution state counter of the process management table, and the process returns to the processing program 300-6. If no event has occurred (the flag is in the OFF state), the execution state counter of the process management table is set to 0 (300-2), and the process transitions to event waiting 300-3.

【0023】イベントが発生するとイベント受付処理3
50では、イベントが発生したことを示すイベントフラ
グをON350−1し、処理プログラムがイベント待ち
状態であれば、イベント待ちを解除350−2する。イ
ベント待ちが解除されると、プロセス管理テーブルの実
行状態カウンタに1を設定300−4し、さらにイベン
トフラグをOFF300−5し、処理プログラムへ制御
を戻す300−6。この様にすることで、イベントが連
続して発生している場合には実行状態カウンタは0クリ
アされることがなく、処理プログラムが連続して動作し
続けているか否かを実行状態カウンタにて判断すること
が可能となる。
When an event occurs, event reception processing 3
At 50, an event flag indicating that an event has occurred is turned ON 350-1, and if the processing program is in an event waiting state, the event waiting is canceled 350-2. When the event wait is released, the execution state counter of the process management table is set to 1 (300-4), the event flag is turned off (300-3), and control is returned to the processing program (300-6). In this way, when events occur continuously, the execution state counter is not cleared to 0, and the execution state counter determines whether or not the processing program continues to operate. It is possible to make a judgment.

【0024】図4には、請求項2に示す実行状態カウン
タによる処理プログラム異常検出方式の定周期監視処理
について詳細フローを示す。図に示す定周期監視処理4
00は、全プロセス管理テーブルをサーチするためルー
プ構造になっている。まずプロセス管理テーブルの先頭
をサーチ対象に設定400−6する。次に全てサーチし
たか判定400−1を行う。サーチが完了した場合に定
周期監視処理は終了する。サーチが完了していない場
合、サーチ対象のプロセス管理テーブルの実行状態カウ
ンタの内容が0以外であるか判定400−2し、0であ
れば該当プログラムは待ち状態であると判断し、プロセ
ス管理テーブルのサーチ対象を更新400−7し、プロ
セス管理テーブルのサーチ完了判定処理400−1に戻
る。
FIG. 4 shows a detailed flow of the periodic monitoring processing of the processing program abnormality detection method by the execution state counter according to the second aspect. Periodic monitoring processing 4 shown in the figure
00 has a loop structure for searching the entire process management table. First, the head of the process management table is set 400-6 as a search target. Next, a determination 400-1 is made as to whether all have been searched. When the search is completed, the periodic monitoring process ends. If the search is not completed, it is determined 400-2 whether the content of the execution status counter of the process management table to be searched is other than 0, and if it is 0, the program is determined to be in the waiting state. Is updated 400-7, and the process returns to the search completion determination processing 400-1 of the process management table.

【0025】0以外であれば、該当プログラムは実行状
態であると判断し、実行状態カウンタに1を加算400
−3し、その値が規定値を超過していないか判定400
−4する。規定値以内であれば正常な状態であると判断
し、プロセス管理テーブルのサーチ対象を更新400−
7し、プロセス管理テーブルのサーチ完了判定処理40
0−1に戻る。
If it is not 0, it is determined that the program is in the execution state, and 1 is added to the execution state counter.
-3, it is determined whether the value does not exceed the specified value 400
-4. If it is within the specified value, it is determined that the state is normal, and the search target of the process management table is updated.
7. Search completion judgment processing 40 of the process management table
Return to 0-1.

【0026】規定値を超過していた場合には、異常な状
態であると判断し、アラームを出力400−5する。そ
の後プロセス管理テーブルのサーチ対象を更新400−
7し、プロセス管理テーブルのサーチ完了判定処理40
0−1に戻る。この様にすることで、異常状態になった
処理プログラムをプロセス単位で検出することが可能と
なる。
If the specified value is exceeded, it is determined that the state is abnormal, and an alarm is output 400-5. Thereafter, the search target of the process management table is updated 400-
7. Search completion judgment processing 40 of the process management table
Return to 0-1. This makes it possible to detect a processing program in an abnormal state on a process basis.

【0027】[0027]

【発明の効果】ウォッチドッグタイマなどの専用ハード
ウェアを使用しないで、処理プログラムに対しイベント
対応処理時間以内でイベントが連続発生した場合にも、
処理プログラムが実行し続けた時間を監視することで、
異常となった処理プログラムを容易に検出できる。
According to the present invention, even if an event occurs continuously within the processing time for an event in a processing program without using dedicated hardware such as a watchdog timer,
By monitoring how long the processing program has been running,
An abnormal processing program can be easily detected.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の開始時刻による処理プログラム異常検
出方式の構成図。
FIG. 1 is a configuration diagram of a processing program abnormality detection method based on a start time according to the present invention.

【図2】本発明の実行状態カウンタによる処理プログラ
ム異常検出方式の概構成図。
FIG. 2 is a schematic configuration diagram of a processing program abnormality detection method using an execution state counter according to the present invention.

【図3】本発明のイベント待ち処理についての詳細フロ
ーチャート。
FIG. 3 is a detailed flowchart of an event waiting process according to the present invention.

【図4】本発明の定周期監視処理についての詳細フロー
チャート。
FIG. 4 is a detailed flowchart of a periodic monitoring process according to the present invention.

【図5】従来監視によるイベント連続発生時のタイムチ
ャート。
FIG. 5 is a time chart at the time of continuous occurrence of an event by conventional monitoring.

【図6】本発明によるイベント連続発生時のタイムチャ
ート。
FIG. 6 is a time chart when events occur continuously according to the present invention.

【符号の説明】[Explanation of symbols]

100,200…オペレーティングシステム、100−
a,100−b,100−c,200−a,200−b,
200−c…オペレーティングシステムとのインタフェ
ース、101,201…処理プログラム、110,21
0…プログラム起動処理、120,220,300…イ
ベント待ち処理、130,230…イベント受付処理、
140,240,400…定周期監視処理、150,2
50…プロセス管理テーブル、151…開始時刻エント
リ、151−a,151−b,151−d,153−1
…開始時刻エントリ操作、152,252…イベントフ
ラグ、152−a,152−b,152−c,252−
a,252−b,252−c…イベントフラグ操作、1
60,260,510,515,610,615…イベ
ント発生、251…実行状態カウンタ、251−a,2
51−b,251−c,251−d,251−e…実行
状態カウンタ操作、500,600…イベント対応の処
理実行状態、501,601…イベント待ち状態、52
0,620…タイムアウトチェック範囲、525,53
0,630…イベント対応の処理完了、540,640
…イベント対応の処理実行開始、560,660…規定
時間、650…アラーム報告。
100, 200 ... operating system, 100-
a, 100-b, 100-c, 200-a, 200-b,
200-c: Interface with operating system, 101, 201: Processing program, 110, 21
0: program start processing, 120, 220, 300: event waiting processing, 130, 230: event reception processing,
140, 240, 400 ... fixed period monitoring processing, 150, 2
50: Process management table, 151: Start time entry, 151-a, 151-b, 151-d, 153-1
... Start time entry operation, 152,252 ... Event flag, 152-a, 152-b, 152-c, 252
a, 252-b, 252-c ... event flag operation, 1
60, 260, 510, 515, 610, 615 ... event occurrence, 251 ... execution state counter, 251-a, 2
51-b, 251-c, 251-d, 251-e: execution state counter operation; 500, 600: event execution processing state; 501, 601: event waiting state;
0,620: Timeout check range, 525, 53
0,630: Completion of processing for event 540,640
... Start of processing corresponding to the event, 560, 660... Specified time, 650.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 飯島 三朗 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 (72)発明者 吉澤 亮吉 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 安永 輝幸 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 (72)発明者 小島 正 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 Fターム(参考) 5B042 GA23 JJ08 JJ13 JJ25 5B098 GC03 JJ01  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Saburo Iijima 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside Hitachi Process Computer Engineering Co., Ltd. (72) Ryoyoshi Yoshizawa 5-chome Omikacho, Hitachi City, Ibaraki Prefecture No. 1 Inside Hitachi, Ltd. Omika Plant (72) Inventor Teruyuki Yasunaga 5-2-1 Omika-cho, Hitachi City, Ibaraki Prefecture Hitachi Process Computer Engineering Co., Ltd. (72) Inventor Tadashi Kojima Omika, Hitachi City, Ibaraki Prefecture 5-2-1, Machimachi, Hitachi Process Computer Engineering Co., Ltd. F-term (reference) 5B042 GA23 JJ08 JJ13 JJ25 5B098 GC03 JJ01

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数の処理プログラムを実行優先順位にし
たがって実行するオペレーティングシステムにおいて、
前記オペレーティングシステムは、起動した処理プログ
ラム単位にプロセス管理テーブルを持ち、プロセス管理
テーブル内には処理プログラムの実行状態への遷移時刻
を格納する開始時刻エントリを持ち、処理プログラムの
初期起動時に現在時刻を開始時刻エントリに格納する手
段と、イベントの発生を記憶する手段と、処理プログラ
ムが実行状態からイベント待ち状態に遷移する際、イベ
ントが既に発生済みであるか判定する手段を持ち、イベ
ント発生済みであれば処理プログラムに戻り、イベント
が発生していない場合に開始時刻エントリを0クリアす
る手段と、イベントの発生によりイベント待ちの状態か
ら実行状態に遷移する場合に現在時刻を前記開始時刻エ
ントリに格納する手段と、一定周期で動作する監視処理
を設け、監視処理では前記プロセス管理テーブル内開始
時刻エントリと現在時刻との差分を求め、一定時間を超
過していた場合に、前記処理プログラムが異常であると
判断してアラームを出力する手段を有することを特徴と
する処理プログラム異常状態検出方式。
1. An operating system for executing a plurality of processing programs according to an execution priority,
The operating system has a process management table for each started processing program, has a start time entry in the process management table for storing a transition time to the execution state of the processing program, and sets the current time at the initial startup of the processing program. Means for storing the event in the start time entry, means for storing the occurrence of the event, and means for determining whether the event has already occurred when the processing program transitions from the execution state to the event waiting state. If so, the process returns to the processing program, and means for clearing the start time entry to 0 when no event has occurred, and storing the current time in the start time entry when transitioning from the event waiting state to the execution state due to the occurrence of the event. And a monitoring process that operates at regular intervals. Calculating a difference between the start time entry in the process management table and the current time, and when a predetermined time has elapsed, determining that the processing program is abnormal and outputting an alarm. Processing program abnormal state detection method to be executed.
【請求項2】複数の処理プログラムを実行優先順位にし
たがって実行するオペレーティングシステムにおいて、
前記オペレーティングシステムは、起動した処理プログ
ラム単位にプロセス管理テーブルを持ち、プロセス管理
テーブル内には処理プログラムの実行状態を格納する実
行状態カウンタを持ち、処理プログラムの初期起動時に
実行状態カウンタに1を格納する手段と、イベントの発
生を記憶する手段と、処理プログラムが実行状態からイ
ベント待ち状態に遷移する際、イベントが既に発生済み
であるか判定する手段を持ち、イベント発生済みであれ
ば処理プログラムに戻り、イベントが発生していない場
合に実行状態カウンタを0クリアする手段と、イベント
の発生によりイベント待ちの状態から実行状態に遷移す
る場合に実行状態カウンタに1を格納する手段と、一定
周期で動作する監視処理を設け、監視処理では前記プロ
セス管理テーブル内実行状態カウンタが0でない場合に
カウンタをインクリメントする手段と、インクリメント
した結果実行状態カウンタが規定値を超過していた場合
に、前記処理プログラムが異常であると判断してアラー
ムを出力する手段を有することを特徴とする処理プログ
ラム異常状態検出方式。
2. An operating system for executing a plurality of processing programs according to an execution priority.
The operating system has a process management table for each activated processing program, has an execution status counter for storing the execution status of the processing program in the process management table, and stores 1 in the execution status counter when the processing program is initially activated. Means for storing the occurrence of an event, and means for determining whether an event has already occurred when the processing program transitions from the execution state to the event waiting state. Returning means for clearing the execution state counter to 0 when no event has occurred, means for storing 1 in the execution state counter when transitioning from the event waiting state to the execution state due to the occurrence of the event, An operation monitoring process is provided. In the monitoring process, the process management table is used. Means for incrementing the execution state counter when the execution state counter is not 0 and means for outputting an alarm when the execution state counter exceeds a prescribed value as a result of the increment and determining that the processing program is abnormal. An abnormal state detection method for a processing program.
JP10274604A 1998-09-29 1998-09-29 System for detection of abnormal state of processing program Pending JP2000105707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10274604A JP2000105707A (en) 1998-09-29 1998-09-29 System for detection of abnormal state of processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10274604A JP2000105707A (en) 1998-09-29 1998-09-29 System for detection of abnormal state of processing program

Publications (1)

Publication Number Publication Date
JP2000105707A true JP2000105707A (en) 2000-04-11

Family

ID=17544056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10274604A Pending JP2000105707A (en) 1998-09-29 1998-09-29 System for detection of abnormal state of processing program

Country Status (1)

Country Link
JP (1) JP2000105707A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402136A (en) * 2023-03-22 2023-07-07 中航信移动科技有限公司 Rule extraction method based on offline data, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402136A (en) * 2023-03-22 2023-07-07 中航信移动科技有限公司 Rule extraction method based on offline data, storage medium and electronic equipment
CN116402136B (en) * 2023-03-22 2023-11-17 中航信移动科技有限公司 Rule extraction method based on offline data, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
JP4060322B2 (en) Application management apparatus and storage medium storing software thereof
JP2001318742A (en) Computer system and computer readable recording medium
JP5440935B2 (en) IT system behavior measurement and analysis system and method thereof
JPH1063544A (en) Time out monitoring system
JP2007334587A (en) Abnormality monitoring program, recording medium and electronic apparatus
JP4527572B2 (en) Monitoring device and monitoring method
JP2000105707A (en) System for detection of abnormal state of processing program
JP2004005305A (en) Monitoring method of memory use capacity, and computer system
CN113886196B (en) On-chip power consumption management method, electronic device and storage medium
JP2006011686A (en) Method for detecting abnormality of multi-task system
JP2004213122A (en) Stable operation method of control system by client/server and program therefor
JP2005293164A (en) Task monitoring system
JP2004199393A (en) Task controller and task control method
CN114465879B (en) Management node election method and device, storage medium and electronic equipment
JP2005182594A (en) Computer and program
JP3110214B2 (en) Controller program execution monitoring device
JP2005293325A (en) System for monitoring performance of immediate replication for database
CN116991605A (en) Process processing method, device, electronic equipment and readable storage medium
JP4387863B2 (en) Disturbance occurrence detection program and disturbance occurrence detection method
JP2007272581A (en) Monitoring program, method and device
JP2001005695A (en) Watchdog timer
JP2890420B2 (en) Traffic control method between online processing systems
JPH03288242A (en) Load controlling method for computer system
CN117851053A (en) Dynamic observable thread pool management method and system
JPH09190360A (en) Microcomputer and its ranaway monitoring processing method