JPS6051141B2 - Program runaway detection method - Google Patents

Program runaway detection method

Info

Publication number
JPS6051141B2
JPS6051141B2 JP54169161A JP16916179A JPS6051141B2 JP S6051141 B2 JPS6051141 B2 JP S6051141B2 JP 54169161 A JP54169161 A JP 54169161A JP 16916179 A JP16916179 A JP 16916179A JP S6051141 B2 JPS6051141 B2 JP S6051141B2
Authority
JP
Japan
Prior art keywords
interrupt
program
runaway
pulses
pulse
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.)
Expired
Application number
JP54169161A
Other languages
Japanese (ja)
Other versions
JPS5692655A (en
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP54169161A priority Critical patent/JPS6051141B2/en
Publication of JPS5692655A publication Critical patent/JPS5692655A/en
Publication of JPS6051141B2 publication Critical patent/JPS6051141B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は高速の実時間処理が要求される演算処 理装
置のプログラム暴走を検出する方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for detecting program runaway in an arithmetic processing device that requires high-speed real-time processing.

マイクロプロセッサ等の演算処理装置においては、プ
ログラムが暴走せずに正しく実行されているか否かを検
出する監視機能が通常は設けられている。
2. Description of the Related Art Arithmetic processing devices such as microprocessors are usually provided with a monitoring function to detect whether a program is being executed correctly without running out of control.

この種のプログラム暴走監視方法として、メインプログ
ラム中に特定の監視プログラムを挿入する方法とメイン
プログラムとは別個の監視用割込みプログラムを用いる
方法とがある。前者の方法の例として、メインプログラ
ムのMステップ毎に特定の監視プログラムを挿入してこ
れを実行させ、各監視プログラム間のステップ数を計数
し、これがMであるか否かによつて暴走発生の有無を検
出する方法、あるいは、1つのメインプログラム中にM
個の監視プログラムを挿入しておき、メインプログラム
が1目実行された際に上述の監視プログラムがM回実行
されたか否かによつて暴走発生の有無を検出する方法が
ある。また、後者の方法の一例として、一定周期のクロ
ックに”よつて割込みをかけ、特定の監視用割込みプロ
グラムを実行させ、その結果をデコードさせてパルスを
発生させ、そのパルスの発生の有無によつて暴走発生の
有無を検出する方法がある。 しカルながら、前者の方
法は、割込み処理の発生する演算処理装置には、ステッ
プ数が変化すること及び処理中に生じた暴走を検出する
ことができないこと等から全く適用できないという問題
、及びメインプログラム中に監視プログラムを挿入する
と処理時間がその分増大し、高速の実時間を行う装置に
は不適切であるという問題を有している。
This type of program runaway monitoring method includes a method of inserting a specific monitoring program into the main program and a method of using a monitoring interrupt program separate from the main program. As an example of the former method, a specific monitoring program is inserted and executed every M steps of the main program, the number of steps between each monitoring program is counted, and runaway occurs depending on whether this is M or not. How to detect the presence or absence of M in one main program?
There is a method of inserting M monitoring programs and detecting whether a runaway has occurred based on whether or not the above-mentioned monitoring programs have been executed M times when the main program is executed for the first time. In addition, as an example of the latter method, an interrupt is generated based on a clock with a constant period, a specific monitoring interrupt program is executed, the result is decoded, a pulse is generated, and whether or not the pulse is generated is determined. However, the former method requires that the number of steps change in the arithmetic processing unit where interrupt processing occurs and that it is difficult to detect runaway that occurs during processing. There is a problem that it cannot be applied at all because it cannot be done, and a problem that if a monitoring program is inserted into the main program, the processing time increases accordingly, making it unsuitable for a device that performs high-speed real-time operation.

また後者の方法は、暴走が発生した際に、監視用割込み
プログラムの演算結果検出用デコーダがアクセスされて
しまいあたかも正しい処理が行われているかのようなり
ロックが発生し、その結果、暴走発生を検出できないこ
とが起り得るという問題を有している。
In addition, in the latter method, when a runaway occurs, the decoder for detecting the calculation result of the monitoring interrupt program is accessed, and a lock occurs as if the correct processing was being performed.As a result, the runaway occurs. This has the problem that detection may not be possible.

従つて本発明は従来技術の上述の問題点を解消するもの
であり、本発明の目的は、高速の実時間処理を要求され
る演算処理装置において、プログラムの暴走発生を確実
に検出することができるプログラム暴走検出方式を提供
することにある。
Therefore, the present invention solves the above-mentioned problems of the prior art, and an object of the present invention is to reliably detect the occurrence of program runaway in an arithmetic processing device that requires high-speed real-time processing. The purpose of the present invention is to provide a method for detecting program runaway.

上述の目的を達成するための本発明の特徴とする所は、
メインプログラムの他に複数の割込みプログラムを有し
、実時間処理を行う演算処理装置において、所定周期を
有する暴走監視用割込みパルスを前記演算処理装置に印
加する手段と、上記割込みパルスに応じて実行され、所
定の割込み処理を正しく実行した際に動作確認パルスを
発生し、優先度が最高でない暴走監視用割込みプログラ
ムと、上記動作確認パルスを計数とする手段とを有し、
演算処理装置に印加した割込みパルス数nと計数した動
作確認パルス数Nとを比較判別し、αを零又は正の整数
とした場合に、N<n−α もしくはn<N であるときはプログラム暴走が生じた旨の通知を行うよ
うにしたことを特徴とするプログラム暴走検出方式を提
供することにある。
The features of the present invention for achieving the above object are as follows:
In an arithmetic processing device that has a plurality of interrupt programs in addition to a main program and performs real-time processing, means for applying a runaway monitoring interrupt pulse having a predetermined cycle to the arithmetic processing device, and execution in response to the interrupt pulse. and a runaway monitoring interrupt program that generates an operation confirmation pulse when a predetermined interrupt process is correctly executed, and has a runaway monitoring interrupt program whose priority is not the highest, and means for counting the operation confirmation pulse,
The number n of interrupt pulses applied to the arithmetic processing unit is compared with the number N of operation check pulses counted, and when α is zero or a positive integer, if N<n-α or n<N, the program An object of the present invention is to provide a program runaway detection method characterized in that a notification to the effect that runaway has occurred is provided.

ここにN<nとせすN<n−αとした理由を次に説明す
る。
The reason for setting N<n and N<n-α will be explained below.

メインプログラムのほかに複数の割込みプログラムを有
し、実時間処理を行う演算処理装置においては、暴走監
視プログラムを設ける場合になるべく実時間処理を妨げ
ないようにする必要がある。
In an arithmetic processing device that has a plurality of interrupt programs in addition to the main program and performs real-time processing, when a runaway monitoring program is provided, it is necessary to avoid interfering with real-time processing as much as possible.

これを達成するために本発明においては暴走監視プログ
ラムを割込みプログラムとし、優先度−を低くすること
により、優先度の高い割込みプログラムを実行していな
い間に暴走監視プログラムを実行している。しかしなが
ら暴走監視プログラムより優先度の高い割込みプログラ
ムは通常ランダムに実行されるため、各割込プログラム
の実行時間と実行ひん(頻)度の積と暴走監視プログラ
ムの実行時間の和が、前記割込みパルスの発生間隔に近
い場合、優先度の高い割込みが集中的に発生し、割込み
パルスに応じた動作確認パルスの発生が遅れ、正常に動
作している場合でも暴走監視用割込みプログラム実行中
に次の割込みパルスが発生することにより割込みパルス
の数nより動作確認パルスの数Nが小さくなることがあ
る。した”がつて動作確認パルスが少ない場合の許容回
数としてαを設定し、N<nではなくN<n−αのとき
に暴走したと認識するように具体化している。以下図面
を用いて本発明を詳細に説明する。第1図は本発明の一
実施例のブロック図であり、同図において、10は暴走
発生を監視すべきメインプログラムによる演算処理を実
行するマイクロプロセッサ、12はプロセッサ10に印
加される所定周期の割込みパルスを発生するタイマ、1
4はマイクロプロセッサ10に印加された割込みパルス
数nを計数するカウンタをそれぞれ示している。タイマ
12より割込みパルスが印加されるとプロセッサ10は
暴走検出用の所定の割込み演算処理を実行し、その演算
結果が正しい場合にデコーダ16をアクセスする。デコ
ーダ16はアクセスされる毎に1つの動作確認パルスを
発生させ、カウンタ18がそのパルス数Nを計数する。
カウンタ1牡カウンタ18の計数値N.,Nは比較判別
回路20において比較判別され、n<Nの場合、あるい
はN<n−α(たた七、αは零又は正の整数)の場合は
暴走が生じたと判別し、例えば表示機構22を付勢する
かあるいは警報が発せられる。比較判別が終了すると、
リセット回路24からリセットパルスが出力され、カウ
ンタ14及び18がリセットされる。このように、本実
施例では動作確認パルスの数N力幼ウンタ18によつて
計数され、その数Nがプロセッサ10に印加された割込
みパルスの数nより大きい場合は暴走等によりデコーダ
16が誤つてアクセスされたとみなし暴走発生の通知を
行つている。
In order to achieve this, the present invention uses the runaway monitoring program as an interrupt program, and by giving it a low priority, the runaway monitoring program is executed while the interrupt program with a higher priority is not being executed. However, since interrupt programs with a higher priority than the runaway monitoring program are usually executed randomly, the product of the execution time and execution frequency of each interrupt program and the execution time of the runaway monitoring program is the sum of the execution time of the runaway monitoring program. If the interval is close to the occurrence interval of Due to the generation of interrupt pulses, the number N of operation confirmation pulses may become smaller than the number n of interrupt pulses. α is set as the allowable number of times when the number of operation confirmation pulses is small, and the system is implemented so that it recognizes a runaway when N<n-α instead of N<n. The invention will be described in detail. Fig. 1 is a block diagram of an embodiment of the invention, in which 10 is a microprocessor that executes arithmetic processing by a main program to monitor the occurrence of runaway; 12 is a processor 10; a timer that generates an interrupt pulse of a predetermined period to be applied to the
4 indicates a counter for counting the number n of interrupt pulses applied to the microprocessor 10, respectively. When an interrupt pulse is applied from the timer 12, the processor 10 executes a predetermined interrupt calculation process for detecting runaway, and accesses the decoder 16 if the calculation result is correct. The decoder 16 generates one operation confirmation pulse each time it is accessed, and the counter 18 counts the number N of pulses.
Counter 1 Counter 18 count value N. , N are compared and determined in the comparison/discrimination circuit 20, and if n<N or N<n-α (Tata7, α is zero or a positive integer), it is determined that a runaway has occurred, and, for example, the display mechanism 22 or an alarm is issued. When the comparison is completed,
A reset pulse is output from the reset circuit 24, and the counters 14 and 18 are reset. As described above, in this embodiment, the number N of operation confirmation pulses is counted by the counter 18, and if the number N is larger than the number n of interrupt pulses applied to the processor 10, the decoder 16 is erroneously detected due to runaway or the like. It is assumed that the site has been accessed by someone else, and a notification of an out-of-control situation is sent.

また、動作確認パルスの計数値Nがn一αより小さい場
合は、暴走あるいはその他の障害により正しい割込み処
理が行われなかつたとみなし、暴走発生の通知を行つて
いる。ここでαは、暴走検出用割込みプログラムに対し
て優先度の高い割込みプログラムの処理時間と暴走検出
用割込みパルスの周期との関係で0,1,2,・・・の
値に適宜選ばれる。第2図は以上述べた実施例をより具
体化した回路図であり、第3図A,B,C,Dはそのタ
イムチャートである。
Furthermore, if the count value N of the operation confirmation pulse is smaller than n-α, it is assumed that the interrupt processing has not been performed correctly due to runaway or other failure, and a runaway occurrence is notified. Here, α is appropriately selected as a value of 0, 1, 2, . . . based on the relationship between the processing time of the interrupt program having a higher priority than the runaway detection interrupt program and the period of the runaway detection interrupt pulse. FIG. 2 is a circuit diagram more specific to the embodiment described above, and FIGS. 3A, B, C, and D are time charts thereof.

ただし、この場合、nはn=3と一定値に規定されてお
り、αはα=1ど設定されている。タイマにより出力さ
れる第3図Aに示す如き割込みパルスIRQは、線26
を介してマイクロプロセッサ10(第1図)に印加され
て前述,の如く監視用割込み処理を行うと共にインバー
タ28を介してカウンタ14のクロック端子に印加され
る。これによりカウンタ14の出力の最下位ビット出力
QAl及びこれによソー段上位のビット出力QBlは第
3図Aに示す如くなり、割込みパルスが3個印加される
毎に低レベルとなるパルスCLK3がナンド回路30の
出力として得られる。このパルスCLK3はノア回路3
2に印加されて第3図B,C,Dにそれぞれ示すパルス
CLK,,CLK″4、あるいはCLK″″4となり、
このパルスCLK4,CLK″4,CLK″4がD型フ
リップフロップ34にクロックとして印加されることに
より、その時点、即ち3つの割込みパルスが生じた時点
でのフリップフロップ34の状態が判別される。
However, in this case, n is set to a constant value of n=3, and α is set to α=1. The interrupt pulse IRQ as shown in FIG. 3A output by the timer is output on line 26.
The signal is applied to the microprocessor 10 (FIG. 1) via the inverter 28 to perform the monitoring interrupt processing as described above, and is also applied to the clock terminal of the counter 14 via the inverter 28. As a result, the least significant bit output QAl of the output of the counter 14 and the upper bit output QBl of the saw stage become as shown in FIG. 3A, and the pulse CLK3 becomes low level every time three interrupt pulses are applied. It is obtained as the output of the NAND circuit 30. This pulse CLK3 is the NOR circuit 3
2, resulting in pulses CLK, , CLK″4, or CLK″″4 shown in FIGS. 3B, C, and D, respectively,
By applying these pulses CLK4, CLK''4, and CLK''4 as clocks to the D-type flip-flop 34, the state of the flip-flop 34 at that point in time, that is, at the point in time when three interrupt pulses are generated, is determined.

また、パルスCLK3はD型フリップフロップ36にも
印加され、斯くして所定の遅延が行われた後、第3図A
に示す如きリセットパルスCLKlが形成され、カウン
タ14及び18、さらにこのフリップフロップ36自身
がリセットされる。次に、メインプログラムに暴走等が
発生せず正常に動作が行われた場合について説明する。
この場合、第1図に示すデコーダ16は、暴走監視用割
込み処理が行われる毎に1回アクセスされ、第3図Bに
示す動作確認パルスCLK2はその都度線38を介して
カウンタ18に送り込む。従つて、カウンタ18の出力
の最下位ビット出力QA2これより順次上位のビット出
力QB2,QO2は第3図Bに示す如くなる。ここで注
目すべきことは、ビット出力QB8がフリップフロップ
34にクロックCLK4の印加される時点で高レベル即
ち論理“゜1゛のレベルであり、また、ビット出力Q。
2がクロックCLK4に印加されるまでの間一度も論理
“゜1゛のレベルとはならないということである。
The pulse CLK3 is also applied to the D-type flip-flop 36, and after a predetermined delay, the pulse CLK3 shown in FIG.
A reset pulse CLKl as shown in FIG. 1 is generated to reset the counters 14 and 18 as well as the flip-flop 36 itself. Next, a case will be described in which the main program does not run out of control and operates normally.
In this case, the decoder 16 shown in FIG. 1 is accessed once every time the runaway monitoring interrupt process is performed, and the operation confirmation pulse CLK2 shown in FIG. 3B is sent to the counter 18 via the line 38 each time. Therefore, the least significant bit output QA2 of the output of the counter 18 and the sequentially higher order bit outputs QB2 and QO2 are as shown in FIG. 3B. It should be noted here that the bit output QB8 is at a high level, that is, the level of logic "1" at the time when the clock CLK4 is applied to the flip-flop 34, and the bit output QB8 is at a high level, that is, the level of logic "1".
2 is applied to the clock CLK4, the level of logic "゜1゛" is never reached.

即ち、これは割込みパルス数nがn=3となる時点まで
に生じた動作確認パルス数NがN=2かあるいはN=3
であるということを意味している。
In other words, this means that the number N of operation confirmation pulses generated until the number n of interrupt pulses reaches n=3 is either N=2 or N=3.
It means that.

このような場合、フリップフロップ34の百出力ALM
は常に論理“0゛のレベルであり、暴走発生を表わす警
報信号は出力されない。割込みパルス数nがn=3とな
る時点までに生じた動作確認パルス数NがN=0あるい
はN=1の場合、第3図Cに示す如く、カウンタ18の
ビット出力Q″B2がフリップフロップ34にクロック
CLK″4の印加される時点で論理“0゛のレベルであ
るため、この時点でフリップフロップ34のO出力AL
M″は論理゛゜1゛のレベルに反転し、従つて暴走発生
を表わす警報信号が出力されることになる。
In such a case, the 100 output ALM of the flip-flop 34
is always at the logic "0" level, and an alarm signal indicating the occurrence of runaway is not output.If the number of operation check pulses N that have occurred until the number of interrupt pulses n reaches n=3 is N=0 or N=1. In this case, as shown in FIG. 3C, the bit output Q"B2 of the counter 18 is at the logic "0" level at the time when the clock CLK"4 is applied to the flip-flop 34. O output AL
M'' is inverted to the logic level of ``1'', and therefore an alarm signal indicating the occurrence of runaway is output.

また、割込みパルス数がn=3となる時点までに4個以
上の動作確認パルスが生じると、第3図Dに示す如く、
カウンタ18のビット出力Q″。
Furthermore, if four or more operation confirmation pulses occur before the number of interrupt pulses reaches n=3, as shown in FIG. 3D,
Bit output Q″ of counter 18.

2が論理4“1゛5のレベルとなり、直ちにフリップフ
ロップ34がクリアされることから、その時点でO出力
ALM″が論理“1゛のレベルとなり、暴走発生の通知
が行われる。
2 becomes the level of logic 4 "1" and 5, and the flip-flop 34 is immediately cleared, so at that point the O output ALM" becomes the level of logic "1" and the occurrence of runaway is notified.

上述したように第2図の構成によればn=3であるため
、N〈2もしくは3くNの場合に、必ず暴走発生の通知
が行われることになる。
As described above, according to the configuration shown in FIG. 2, n=3, so if N<2 or 3<N, a runaway occurrence notification will always be given.

次に、割込みパルスの周期Tとαとの関係について説明
する。
Next, the relationship between the period T and α of the interrupt pulse will be explained.

暴走監視用の割込み処理を要求した際にあるいはその割
込み処理中により優先度の高い割込み処ノ理要求が生じ
た場合は、暴走監視用割込み処理は待期状態となる。
When a runaway monitoring interrupt process is requested or if an interrupt process request with a higher priority occurs during the interrupt process, the runaway monitoring interrupt process enters a standby state.

第4図にはこの様子を表わすものであり、aはメインプ
ログラム処理、bは暴走監視用割込み処理、cはその他
の優先度がより高い割込み処理をそれぞれ表わしており
、dは実行7中処理、El,e2,e3はタイマ12に
よる暴走監視用の割込み要求時点を表わしている。即ち
、E2の時点で割込み要求が生じても、優先度の高い割
込み処理が終了するまで待期する必要があり、その間デ
コーダ16はアクセスされず動作確認パルス9は現れな
い。従つて、暴走監視用割込み処理の処理時間を無視し
、これより優先度の高い割込み処理の最大継続時間をT
。とすると、暴走監視用割込みパルスの周期TをT。<
Tとした場合、上述の待期によつて生じる動作確認パル
スの数Nの割込みパルス数nに対する誤差は最大1とな
る。それゆえ、この場合、αは1以上であれば良い。ま
た、肝。<Tとした場合、αは0とすることも可能であ
る。以上詳細に説明したように本発明の方式によれば、
暴走監視割込み処理を要求する割込みパルスの数nとそ
の割込み処理の正常動作確認パルスの計数値Nとを比較
判別して、N<n−αあるいはn<Nであるときに暴走
発生の通知を行うようにしているため、暴走発生及び障
害発生を確実に検出することができ、また、割込み処理
によつて監視しているため、メインプログラム中に余分
なステップが挿入されることもないと共に他の割込み処
理が行われるような演算処理装置についても適用できる
Figure 4 shows this situation, where a indicates main program processing, b indicates runaway monitoring interrupt processing, c indicates other higher priority interrupt processing, and d indicates processing during execution 7. , El, e2, and e3 represent the times when the timer 12 requests an interrupt for runaway monitoring. That is, even if an interrupt request occurs at time E2, it is necessary to wait until the high-priority interrupt processing is completed, and during that time, the decoder 16 is not accessed and the operation confirmation pulse 9 does not appear. Therefore, ignoring the processing time of the runaway monitoring interrupt processing, the maximum duration of the interrupt processing with a higher priority is T.
. Then, the period T of the interrupt pulse for runaway monitoring is T. <
When T, the error of the number N of operation confirmation pulses generated by the above-mentioned waiting period with respect to the number n of interrupt pulses is 1 at maximum. Therefore, in this case, α only needs to be 1 or more. Also, liver. <T, α can also be set to 0. As explained in detail above, according to the method of the present invention,
The number n of interrupt pulses requesting runaway monitoring interrupt processing is compared with the count value N of normal operation confirmation pulses for the interrupt processing, and when N<n-α or n<N, a runaway occurrence notification is issued. This allows us to reliably detect the occurrence of runaways and failures, and since it is monitored by interrupt processing, no extra steps are inserted into the main program, and no other steps are inserted. The present invention can also be applied to an arithmetic processing device in which interrupt processing is performed.

従つて、高速の実時間処理が要求され、周囲より割込み
処理が多い演算処理装置、例えばデータ伝送における送
受制御を行う演算処理装置等に本発明を適用すればその
得られる利便は著しく大きい。
Therefore, if the present invention is applied to an arithmetic processing device that requires high-speed real-time processing and handles more interrupt processing than its surroundings, such as an arithmetic processing device that performs transmission/reception control in data transmission, it will be of great benefit.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例のブロック図、第2図は上記
実施例をより具体化した例の回路図、第3図は第2図の
タイムチャート、第4図は割込みの待期について説明す
る図である。 10・・・・・マイクロプロセッサ、12・・・・・・
タイマ、14,18・・・・・カウンタ、16・・・・
・・デコーダ、20・・・・・比較判別回路、22・・
・・・・表示機構、24・・・・・リセット回路、34
,36・・・・・・D型フリップフロップ。
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a circuit diagram of a more specific example of the above embodiment, Fig. 3 is a time chart of Fig. 2, and Fig. 4 is an interrupt wait time chart. FIG. 10...Microprocessor, 12...
Timer, 14, 18... Counter, 16...
...Decoder, 20... Comparison/discrimination circuit, 22...
... Display mechanism, 24 ... Reset circuit, 34
, 36...D type flip-flop.

Claims (1)

【特許請求の範囲】 1 メインプログラムの他に複数の割込みプログラムを
有し、実時間処理を行う演算処理装置において、所定周
期を有する暴走監視用割込みパルスを前記演算処理装置
に印加する手段と、前記割込みパルスに応じて実行され
、所定の割込み処理を正しく実行した際に動作確認パル
スを発生し、優先度が最高でない暴走監視用割込みプロ
グラムと、上記動作確認パルスを計数する手段とを具備
し、前記演算処理装置に印加した割込パルスnと計数し
た動作確認パルス数Nとを比較判別し、αを零または正
の整数とした場合にN<n−αもしくはn<N であるときはプログラムの暴走が生じた旨の通知を行う
ようにしたことを特徴とするプログラム暴走検出方式。 2 演算処理装置に印加した割込みパルス数nが該パル
スを計数することによつて得られる特許請求の範囲第1
項記載のプログラム暴走検出方式。3 あらかじめ定め
た数nの割込みパルスを演算処理装置に印加した際に得
られる前記動作確認パルスの計数値Nとを比較判別する
ようにした特許請求の範囲第1項もしくは第2項記載の
プログラム暴走検出方式。
[Scope of Claims] 1. In an arithmetic processing device that has a plurality of interrupt programs in addition to a main program and performs real-time processing, means for applying a runaway monitoring interrupt pulse having a predetermined cycle to the arithmetic processing device; The interrupt program includes a runaway monitoring interrupt program that is executed in response to the interrupt pulse, generates an operation confirmation pulse when a predetermined interrupt process is correctly executed, and has a runaway monitoring interrupt program that does not have the highest priority, and means for counting the operation confirmation pulses. , compare and determine the interrupt pulse n applied to the arithmetic processing unit and the counted number of operation check pulses N, and when α is zero or a positive integer, if N<n-α or n<N. A program runaway detection method is characterized in that a notification to the effect that a program runaway has occurred is provided. 2. Claim 1 in which the number n of interrupt pulses applied to the arithmetic processing device is obtained by counting the pulses.
Program runaway detection method described in section. 3. The program according to claim 1 or 2, which compares and determines the count value N of the operation confirmation pulses obtained when a predetermined number n of interrupt pulses are applied to the arithmetic processing device. Runaway detection method.
JP54169161A 1979-12-27 1979-12-27 Program runaway detection method Expired JPS6051141B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54169161A JPS6051141B2 (en) 1979-12-27 1979-12-27 Program runaway detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54169161A JPS6051141B2 (en) 1979-12-27 1979-12-27 Program runaway detection method

Publications (2)

Publication Number Publication Date
JPS5692655A JPS5692655A (en) 1981-07-27
JPS6051141B2 true JPS6051141B2 (en) 1985-11-12

Family

ID=15881396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54169161A Expired JPS6051141B2 (en) 1979-12-27 1979-12-27 Program runaway detection method

Country Status (1)

Country Link
JP (1) JPS6051141B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01269632A (en) * 1988-04-21 1989-10-27 Kubota Ltd Dump structure of cargo truck
JP2020019448A (en) * 2018-08-03 2020-02-06 株式会社クラベ Fault notification program for arithmetic processing unit, and heater system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59114652A (en) * 1982-12-21 1984-07-02 Nissan Motor Co Ltd Watchdog timer circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01269632A (en) * 1988-04-21 1989-10-27 Kubota Ltd Dump structure of cargo truck
JP2020019448A (en) * 2018-08-03 2020-02-06 株式会社クラベ Fault notification program for arithmetic processing unit, and heater system

Also Published As

Publication number Publication date
JPS5692655A (en) 1981-07-27

Similar Documents

Publication Publication Date Title
US4072852A (en) Digital computer monitoring and restart circuit
JPS6051141B2 (en) Program runaway detection method
JPS58181160A (en) Controlling system of emergency operation
JPH02150942A (en) Bus abnormality detecting circuit
JPS5935250A (en) Program controller
JPS5983438A (en) Program failure detecting system
JPS61267144A (en) Program abnormality detecting system
JPS60243751A (en) Supervisory circuit of incorrect interruption in computer
JPS6148740B2 (en)
JPH0226245B2 (en)
JPS6298435A (en) Defecting method for abnormality of computer
JPS6033474Y2 (en) Computer abnormality detection circuit
JPH01231128A (en) Fault processing system
JPS5937880Y2 (en) Abnormality monitoring device
JPS63280345A (en) Detection of program abnormality
JPS62152048A (en) Monitor circuit for runaway
JPH01154258A (en) Malfunction detecting device using watchdog timer
JPH0346853B2 (en)
JPH0149975B2 (en)
JPH0644201A (en) Monitor device for computer system using shared memory
JPH04106637A (en) Stall detection circuit
JPS63271545A (en) Watch dog timer
JPS5819097B2 (en) Computer system monitoring method
JPS63101917A (en) Method for supervising clock pulse in control device
JPS6159545A (en) Method for detecting interface faults of data processor