JPS63257041A - Diagnosing system for system of real time os - Google Patents

Diagnosing system for system of real time os

Info

Publication number
JPS63257041A
JPS63257041A JP62092269A JP9226987A JPS63257041A JP S63257041 A JPS63257041 A JP S63257041A JP 62092269 A JP62092269 A JP 62092269A JP 9226987 A JP9226987 A JP 9226987A JP S63257041 A JPS63257041 A JP S63257041A
Authority
JP
Japan
Prior art keywords
count value
time
timer
soft counter
interval timer
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
JP62092269A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Tazaki
田崎 義幸
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62092269A priority Critical patent/JPS63257041A/en
Publication of JPS63257041A publication Critical patent/JPS63257041A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To surely detect the infinite loop or the runaway of a user task impossible to be detected by an interval timer, by detecting dead lock by using a soft counter other than a hard timer. CONSTITUTION:In a case where no dispatching is performed before the count value of the soft counter 6 goes to zero due to the infinite loop or the runaway of a user program, the soft counter 6 outputs a count over signal (s) since no re-setting of the count value (c) of the soft counter 6 is performed. Furthermore, the hard timer 3 generates a count completion interruption signal (h) by no setting of a time count value (t) when no interruption of an interval timer is generated. Therefore, when the interruption of the interval timer is generated, but no dispatching operation is performed, the dead lock can be detected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はリアルタイムOSのシステム診断方式、特に、
ユーザタスクの無限ループおよび暴走によるシステムの
デッドロック状態を検出するリアルタイムOSのシステ
ム診断方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a system diagnosis method for a real-time OS, in particular,
The present invention relates to a system diagnosis method for a real-time OS that detects a system deadlock state due to an infinite loop or runaway of user tasks.

〔従来の技術〕[Conventional technology]

従来のリアルタイムOSのシステム診断方式はインター
バルタイマの割込発生毎にハードタイマにカウント値を
設定後、なんらかの要因により、ハードタイマがタイム
オーバーしたときも、タイムオーバーによるカウント終
了割込によりデッドロックを検出していた。
The conventional system diagnosis method for real-time OS is to set a count value in the hard timer every time an interval timer interrupt occurs, and then, even if the hard timer times out due to some reason, deadlock is detected by a count end interrupt due to time over. was.

〔発明か解決しようとする問題点〕[Problem that the invention attempts to solve]

上述した従来のリアルタイムOSのシステム診断方式は
ハードタイマのカウント終了割込によりデッドロックを
検出していたため、ユーザタスクが無限ループあるいは
暴走していても、インターバルタイマ割込が正常に動作
するとデッドロック状態が検出できないという欠点があ
った。
The conventional real-time OS system diagnosis method described above detects deadlock using the hard timer count end interrupt, so even if the user task is in an infinite loop or runs out of control, deadlock will occur if the interval timer interrupt operates normally. The drawback was that the state could not be detected.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のリアルタイムOSのシステム診断方式は、イン
ターバルタイマ割込の発生毎にハードタイムカウント値
を設定する第1の設定手段と、前記ハードタイマのカウ
ント終了割込による第1のデッドロック検出手段と、デ
ィスパッチング時にソフトカウンタのカウント値を設定
する第2の設定手段と、インターバルタイマ割込の発生
毎に前記ソフトカウンタのカウント値を減算しカウント
値が零になったことによる第2のデッドロック検出手段
とを含んで構成される。
A system diagnosis method for a real-time OS according to the present invention includes: a first setting means for setting a hard time count value every time an interval timer interrupt occurs; and a first deadlock detection means using the hard timer count end interrupt. , a second setting means for setting the count value of the soft counter at the time of dispatching, and a second deadlock caused by subtracting the count value of the soft counter every time an interval timer interrupt occurs and the count value becomes zero. and a detection means.

〔実施例〕〔Example〕

次に、本発明の実施例について、図面を参照して詳細に
説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

インターバルタイマー1はインターバルタイマ割込信号
iをインターバルタイマ処理部2へ出力する。1ンタ一
バルタイマ処理部2けハードタイマー3へタイムカウン
ト値tYt送出することともにソフトカウンタ6へ制御
を渡す。ハードタイマ3はタイムカウント値tを入力し
タイムオーバーするとカウント終了割込信号すをデッド
ロック処理部4へ送出する。ディスパッチ部5はディス
パッチ要求信号di受けてソフトカウンタ6ヘカウント
値cf送出する。ソフトカウンタ6はインターバルタイ
マ処理部2からの制御Theけカウントオーバーを検出
するとカウントオーバー信号5(i7デツドロツク処理
部4へ渡す。
The interval timer 1 outputs an interval timer interrupt signal i to the interval timer processing section 2. 1 interval timer processing unit 2 The time count value tYt is sent to the hard timer 3 and control is passed to the soft counter 6. The hard timer 3 inputs a time count value t and sends a count end interrupt signal to the deadlock processing section 4 when the time exceeds. The dispatch unit 5 receives the dispatch request signal di and sends the count value cf to the soft counter 6. When the soft counter 6 detects a count over of the control signal from the interval timer processing section 2, it passes the count over signal 5 (i7 to the deadlock processing section 4).

以下本発明の動作について第1図を参照しながら詳細に
説明する。
The operation of the present invention will be explained in detail below with reference to FIG.

まずインターバルタイマ1によりインターバルタイマ割
込信号iか発生すると、インターバルタイマー処理部2
はハードタイマ3にタイムカウント値tl送出してハー
ドタイマ3を再起動する。
First, when the interval timer interrupt signal i is generated by the interval timer 1, the interval timer processing section 2
sends the time count value tl to the hard timer 3 and restarts the hard timer 3.

これによりハードタイマ3は再びカウントを開始する。As a result, the hard timer 3 starts counting again.

一方ソフトカウンタ6はインターバルタイマ処理部2か
らの制御を引継ぐと、カウント値とを1減算し、減算結
果が零になるとカウントオーバー信号Sをデッドロック
処理部4へ送出する。
On the other hand, when the soft counter 6 takes over the control from the interval timer processing section 2, it subtracts 1 from the count value, and when the subtraction result becomes zero, it sends a count over signal S to the deadlock processing section 4.

ディスパッチ部5はディスバッチ要求信号dによりディ
スパッチング処理を行なうとともにソフトカウント6ヘ
カウント値Cを送ってカウンタを初″、−1 期化する。ソフトカウンタ6はこのカウント値Cをイン
ターバルタイマ割込が発生する毎にカウントダウンする
The dispatch unit 5 performs dispatching processing in response to the dispatch request signal d, and also sends the count value C to the soft count 6 to initialize the counter by 1'', -1. Count down each time it occurs.

ユーザプログラムの無限ループや暴走によりソフトカウ
ンタ6のカウント値が零になる前にディスパッチングが
行なわれない場合、ソフトカウンタべのカウント値Cの
再設定が行なわれないため、ソフトカウンタ6はカウン
トオーバー信号8を出力することになる。
If dispatching is not performed before the count value of the soft counter 6 becomes zero due to an infinite loop or runaway of the user program, the count value C of the soft counter will not be reset, so the soft counter 6 will overcount. Signal 8 will be output.

さらにハードタイマ3はインターバルタイマ割込が発生
しない時にはタイムカウント値tが再設定されないこと
によりカウント終了割込信号りを発生する。したかって
なんらかの要因によりインターバルタイマー割込が発生
しない時にはハードタイマ3により、またインターバル
タイマの割込は発生するがディスパッチング動作か行な
われないときにはソフトカウンタ6によりデッドロック
検出を行なう。
Furthermore, when no interval timer interrupt occurs, the hard timer 3 generates a count end interrupt signal because the time count value t is not reset. Therefore, deadlock detection is performed by the hard timer 3 when an interval timer interrupt does not occur for some reason, and by the soft counter 6 when an interval timer interrupt occurs but no dispatching operation is performed.

〔発明の効果〕〔Effect of the invention〕

本発明のリアルタイム9Sのシステム診断方式は、ハー
ドタイマの他にソフトカウンタを用いてデッドロックを
検出しているため、ユーザタスク1jX#、限ルーズあ
るいは暴走していてもインタ〜パルタイマ割込によるイ
ンターバルタイマ処理が正常に行なわれると、ソフトカ
ウンタがカウントオーバーする前にディスパッチング処
理が行われないときデッドロックを検出できるという効
果がある。
The real-time 9S system diagnosis method of the present invention uses a soft counter in addition to a hard timer to detect deadlock, so even if the user task 1j If timer processing is performed normally, there is an effect that deadlock can be detected when dispatching processing is not performed before the soft counter counts over.

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

第1図は本発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims] インターバルタイマ割込の発生毎にハードタイマにタイ
ムカウント値を設定する第1の設定手段と、前記ハード
タイマのカウント終了割込による第1のデッドロック検
出手段と、ディスパッチング時にソフトカウンタのカウ
ント値を設定する第2の設定手段と、インターバルタイ
マ割込の発生毎に前記ソフトカウンタのカウント値を減
算しカウント値が零になったことによる第2のデッドロ
ック検出手段とを含むことを特徴とするリアルタイムO
Sのシステム診断方式。
a first setting means for setting a time count value in a hard timer every time an interval timer interrupt occurs; a first deadlock detection means for detecting a deadlock by the hard timer count end interrupt; and a count value of a soft counter at the time of dispatching. and a second deadlock detection means that subtracts the count value of the soft counter every time an interval timer interrupt occurs and detects a deadlock when the count value becomes zero. real-time O
S system diagnosis method.
JP62092269A 1987-04-14 1987-04-14 Diagnosing system for system of real time os Pending JPS63257041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62092269A JPS63257041A (en) 1987-04-14 1987-04-14 Diagnosing system for system of real time os

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62092269A JPS63257041A (en) 1987-04-14 1987-04-14 Diagnosing system for system of real time os

Publications (1)

Publication Number Publication Date
JPS63257041A true JPS63257041A (en) 1988-10-24

Family

ID=14049672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62092269A Pending JPS63257041A (en) 1987-04-14 1987-04-14 Diagnosing system for system of real time os

Country Status (1)

Country Link
JP (1) JPS63257041A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6455654A (en) * 1987-08-26 1989-03-02 Matsushita Electric Works Ltd Controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5894042A (en) * 1981-11-30 1983-06-04 Fujitsu Ltd Information collecting system
JPS6072040A (en) * 1983-09-28 1985-04-24 Fuji Electric Co Ltd Monitoring system for executing time of program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5894042A (en) * 1981-11-30 1983-06-04 Fujitsu Ltd Information collecting system
JPS6072040A (en) * 1983-09-28 1985-04-24 Fuji Electric Co Ltd Monitoring system for executing time of program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6455654A (en) * 1987-08-26 1989-03-02 Matsushita Electric Works Ltd Controller

Similar Documents

Publication Publication Date Title
JP2001318807A (en) Method and device for controlling task switching
JPS63257041A (en) Diagnosing system for system of real time os
EP0297892A3 (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
JPH01154258A (en) Malfunction detecting device using watchdog timer
JP2589403B2 (en) Information processing device
JPS6362773B2 (en)
JP2557785Y2 (en) Single chip microcomputer
JPS6316317A (en) Resetting device for computer system
JPH05257748A (en) Microprocessor device
JPH04349542A (en) Diagnostic system for real time operating system
JPH06131205A (en) Deadlock restart system
JPS6051141B2 (en) Program runaway detection method
JPH0321198Y2 (en)
JPH0498540A (en) Processor load monitoring system
JPH0447650Y2 (en)
JPH0447338B2 (en)
JPS63280345A (en) Detection of program abnormality
JPH0485610A (en) Cyclic timer controller
JPH10161908A (en) Detection of run-away of microcomputer
JPS62293436A (en) Task managing device
JPS6289146A (en) Condition signal supervising circuit
JPH09113556A (en) Pulse measuring circuit and measuring method thereof
JPH0365739A (en) Control device
JPH01181130A (en) Task start system for real time os
JPH056292A (en) Stole monitoring system for microprocessor