JP2004355384A - Task monitoring device - Google Patents
Task monitoring device Download PDFInfo
- Publication number
- JP2004355384A JP2004355384A JP2003152988A JP2003152988A JP2004355384A JP 2004355384 A JP2004355384 A JP 2004355384A JP 2003152988 A JP2003152988 A JP 2003152988A JP 2003152988 A JP2003152988 A JP 2003152988A JP 2004355384 A JP2004355384 A JP 2004355384A
- Authority
- JP
- Japan
- Prior art keywords
- task
- watchdog timer
- monitoring
- error log
- monitoring device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明はタスク監視装置にかかり、特にウオッチドッグタイマがタイムアップした際、タスクの異常箇所を特定することのできるタスク監視装置に関する。
【0002】
【従来の技術】
例えば、特許文献1には、コンピュータシステムにおけるプログラム異常を検出するに際して、マルチタスクオペレーティングシステムを使用し、タスクレベルの最も低いタスクが所定の時間毎に行うフラグ操作を、タスクレベルが最も高いタスクで監視することにより、中間レベルのタスクにおける実行中プログラムの異常を検出する異常検出方法が示されている。
【0003】
【特許文献1】
特開昭63−280345号公報
【0004】
【発明が解決しようとする課題】
しかしながら、前記従来技術では、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクの停止要因を解析するために必要とされるタスク番号あるいは実行ステップ番号を監視し、記録する機能がない。このため、異常の要因となった箇所を特定することができない。
【0005】
本発明は、これらの問題点に鑑みてなされたもので、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクの停止要因を解析するために必要とされるタスク番号あるいは実行ステップ番号を監視し記録し、表示することのできるタスク監視装置を提供することを目的とするのもである。
【0006】
【課題を解決するための手段】
本発明は、上記の課題を解決するために次のような手段を採用した。
【0007】
マルチタスク管理機能及びウオッチドックタイマ機能を有するOSを備えたタスク監視装置であって、現在実行しているタスクの番号及び各タスク毎の実行しているステップの番号を格納したタスク管理テーブルと、前記監視時間内にウオッチドックタイマが起動されたか否かを判定する監視タスク処理手段と、監視時間内にウオッチドックタイマが起動されない場合、タスク管理テーブルの内容をエラーログとして表示するシステム停止処理手段を備えた。
【0008】
【発明の実施の形態】
以下、本発明の実施形態を添付図面を参照しながら説明する。図1は、本発明の実施形態にかかるタスク監視装置を説明する図である。図において、1はタスク監視装置、10はタスク管理テーブル、11はエラーログテーブル、12はウオッチドックタイマ、13はマルチタスクOSである。14は複数の被監視タスクであり、図の例では被監視タスク1ないし被監視タスクnからなる。
【0009】
監視タスク16は、複数個の被監視タスク(被監視タスク1ないし被監視タスクn)が正常に動作しているか否かをウオッチドックタイマ12を用いて常時監視する。
【0010】
図2は、タスク管理テーブル10の構成の詳細を説明する図である。図において20は現実行タスク番号欄であり、現在実行中のタスクのタスク番号を格納する。21はタスク毎に備えたタスク実行ステップ番号欄であり、各タスク(タスク1ないしタスクn)毎に現在実行中のステップ番号(実行ステップ番号)を格納する。なお、タスク管理テーブル10に格納すべき情報は前記マルチタスクOS13より取得することができる。
【0011】
図3は、エラーログテーブル11の構成の詳細を説明する図である。エラーログテーブル11は停止を検出した被監視タスク毎に複数ケース(第1ケースないし第nケース)を記録することができる。図において、30は発生したエラー毎に採番したエラーログ番号、31はエラーの発生時刻を付したタイムスタンプ、32はエラーの種類を表すエラーコード、33はエラーメッセージである。34は実行タスク番号であり、エラーが発生したタスクのタスク番号を表す。35は実行ステップ番号であり、エラーが発生したタスクの実行ステップ番号を表す。
【0012】
図4は、タスク監視装置の立ち上げ処理及び監視タスク毎のウオッチドックタイマ処理を説明する図である。
【0013】
まず、タスク監視装置の立ち上げ処理では、ステップ41において、タスク監視装置1の電源を投入して、タスク監視装置のシステムを立ち上げ、ウオッチドッグタイマを生成する。この際、ウオッチドッグタイマは被監視タスクの数に見合う数だけ生成する。ステップ42において、生成したウオッチドッグタイマのそれぞれにIDを付与し、ステップ43において、付与したIDをメモリの被監視タスクとの共通領域に書き込む。
【0014】
一方、被監視タスク毎のウオッチドックタイマ処理では、まず、ステップ44において、前記共通領域に書き込んだウオッチドックタイマIDのなかから、監視すべきタスク(被監視タスク)に対応するウオッチドックタイマIDを取り込む。ステップ45において、取り込んだウオッチドックタイマIDに、図5に示すシステム停止処理を登録する。これにより前記ウオッチドックタイマIDで表されるウオッチドックタイマがタイムアップしたときシステムは停止されることになる。ステップ46において、前記IDで表されるウオッチドックタイマにその監視時間(タイムアップ時間)を設定し、ステップ47において、前記IDで表されるウオッチドックタイマを起動する。なお、これらの処理は被監視タスクの数だけ繰り返し実行する。
【0015】
図5は、監視タスク処理及びシステム停止処理の詳細を説明する図である。監視タスク処理はマルチタスクOSにより所定周期で起動される。まず、ステップ53において、被監視タスク毎にそれぞれIDを付与したウオッチドッグタイマが、ID毎にそれぞれ設定した監視時間内に被監視タスクにより起動されたか否かを判断する。前記設定した監視時間内に被監視タスクにより起動されなかった場合(例えば、被監視タスクが、前記ステップ46で設定した監視時間以上の間インループ(閉ループの中を繰り返し実行する処理)した場合や、被監視タスクの処理が前記監視時間以上間延びした場合)にはステップ54に進み、ステップ54においてシステムの停止処理を実行する。なお、ステップ53において、ウオッチドッグタイマが設定した監視時間内に被監視タスクにより起動された場合にはステップ53に戻る。
【0016】
一方、システム停止処理では、ステップ51において、図2に示すタスク管理テーブル10の内容を図3に示すエラーログテーブル11に格納し、ステップ52において、システムを停止状態に設定する。次いでステップ43においてエラーログテーブルの内容を画面、例えばタスク監視装置1に接続された表示装置の表示画面に表示する。
【0017】
図6は、エラーログ表示フォーマットの例を示す図である。図に示すように、エラー表示内容は、図3に示すエラーログテーブルのエラーログ番号30、タイムスタンプ31、エラーコード32、エラーメッセージ33、実行タスク番号34、実行ステップ番号35で構成されている。
【0018】
図7は、エラーログの表示例を示す図である。このエラーログ表示例では、エラーの発生時刻、エラー内容、実行タスク番号、実行ステップ番号が表示されている。このため、利用者は、エラー発生時に実行していたタスク番号、及びタスク実行中ステップ番号を確認することができる。
【0019】
以上説明したように、本実施形態によれば、複数のタスクが同時に動作するマルチタスクシステムにおいて、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクのタスク番号及び実行ステップ番号を監視し記録し、表示することができる。このためタスクの停止した要因を速やかに解析することができ、システムの信頼性を向上することができる。
【0020】
【発明の効果】
以上説明したように本発明によれば、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクの停止要因を解析するために必要とされるタスク番号あるいは実行ステップ番号を監視し記録、表示することのできるタスク監視装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の実施形態にかかるタスク監視装置を説明する図である。
【図2】タスク管理テーブル10の構成の詳細を説明する図である。
【図3】エラーログテーブル11の構成の詳細を説明する図である。
【図4】タスク監視装置の立ち上げ処理及び監視タスク毎のウオッチドックタイマ処理を説明する図である。
【図5】監視タスク処理及びシステム停止処理の詳細を説明する図である。
【図6】エラーログ表示フォーマットの例を示す図である。
【図7】エラーログの表示例を示す図である。
【符号の説明】
1 タスク監視装置
10 タスク管理テーブル
11 エラーログテーブル
12 ウオッチドッグタイマ
13 マルチタスクOS
14 被監視タスク
16 監視タスク[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a task monitoring device, and more particularly, to a task monitoring device capable of specifying an abnormal portion of a task when a watchdog timer times out.
[0002]
[Prior art]
For example, in
[0003]
[Patent Document 1]
JP-A-63-280345
[Problems to be solved by the invention]
However, in the related art, when a stop of a task is detected by a watchdog timer, there is no function of monitoring and recording a task number or an execution step number required for analyzing a cause of stopping the stopped task. For this reason, it is not possible to specify the location that caused the abnormality.
[0005]
The present invention has been made in view of these problems, and when a task stop is detected by a watchdog timer, a task number or an execution step number required to analyze a cause of stop of the stopped task is determined. It is another object to provide a task monitoring device that can monitor, record, and display.
[0006]
[Means for Solving the Problems]
The present invention employs the following means in order to solve the above problems.
[0007]
A task monitoring device including an OS having a multitask management function and a watchdog timer function, the task management table storing a currently executed task number and an executed step number for each task, Monitoring task processing means for determining whether or not the watchdog timer has been activated within the monitoring time; and system stop processing means for displaying the contents of the task management table as an error log if the watchdog timer has not been activated within the monitoring time. With.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a diagram illustrating a task monitoring device according to an embodiment of the present invention. In the figure, 1 is a task monitoring device, 10 is a task management table, 11 is an error log table, 12 is a watchdog timer, and 13 is a multitask OS.
[0009]
The
[0010]
FIG. 2 is a diagram for explaining the details of the configuration of the task management table 10. In the figure,
[0011]
FIG. 3 is a diagram for explaining the details of the configuration of the error log table 11. The error log table 11 can record a plurality of cases (first case to n-th case) for each monitored task that has detected a stop. In the figure,
[0012]
FIG. 4 is a diagram for explaining the start-up process of the task monitoring device and the watchdog timer process for each monitoring task.
[0013]
First, in the startup processing of the task monitoring device, in
[0014]
On the other hand, in the watchdog timer process for each monitored task, first, in step 44, the watchdog timer ID corresponding to the task to be monitored (monitored task) is determined from the watchdog timer IDs written in the common area. take in. In
[0015]
FIG. 5 is a diagram illustrating details of the monitoring task process and the system stop process. The monitoring task process is started at a predetermined cycle by the multitask OS. First, in step 53, it is determined whether or not the watchdog timer to which the ID is assigned for each monitored task is activated by the monitored task within the monitoring time set for each ID. When the monitored task is not started by the monitored task within the set monitoring time (for example, when the monitored task is in-loop (a process of repeatedly executing a closed loop) during the monitoring time set in step 46) or If the processing of the monitored task has been extended for the monitoring time or more, the process proceeds to step 54, where the system is stopped in step 54. If it is determined in step 53 that the watchdog timer has been activated by the monitored task within the monitoring time set by the watchdog timer, the process returns to step 53.
[0016]
On the other hand, in the system stop processing, in step 51, the contents of the task management table 10 shown in FIG. 2 are stored in the error log table 11 shown in FIG. 3, and in
[0017]
FIG. 6 is a diagram illustrating an example of an error log display format. As shown in the figure, the error display content includes an
[0018]
FIG. 7 is a diagram illustrating a display example of an error log. In this error log display example, the time when the error occurred, the content of the error, the execution task number, and the execution step number are displayed. For this reason, the user can check the task number that was being executed when the error occurred and the task execution step number.
[0019]
As described above, according to the present embodiment, in a multitask system in which a plurality of tasks operate simultaneously, when the stop of a task is detected by a watchdog timer, the task number and the execution step number of the stopped task are monitored. Can be recorded and displayed. For this reason, the cause of the task suspension can be quickly analyzed, and the reliability of the system can be improved.
[0020]
【The invention's effect】
As described above, according to the present invention, when a stop of a task is detected by a watchdog timer, a task number or an execution step number required to analyze a stop factor of the stopped task is monitored, recorded, and displayed. A task monitoring device that can perform the task monitoring can be provided.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a task monitoring device according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining details of a configuration of a task management table 10;
FIG. 3 is a diagram illustrating details of a configuration of an error log table 11;
FIG. 4 is a diagram for explaining a start-up process of the task monitoring device and a watchdog timer process for each monitoring task.
FIG. 5 is a diagram illustrating details of a monitoring task process and a system stop process.
FIG. 6 is a diagram showing an example of an error log display format.
FIG. 7 is a diagram illustrating a display example of an error log.
[Explanation of symbols]
14
Claims (2)
現在実行しているタスクの番号及び各タスク毎の実行しているステップの番号を格納したタスク管理テーブルと、
前記監視時間内にウオッチドックタイマが起動されたか否かを判定する監視タスク処理手段と、
監視時間内にウオッチドックタイマが起動されない場合、タスク管理テーブルの内容をエラーログとして表示するシステム停止処理手段を備えたことを特徴とするタスク監視装置。A task monitoring device including an OS having a multitask management function and a watchdog timer function,
A task management table storing the number of the currently executing task and the number of the executing step for each task;
Monitoring task processing means for determining whether a watchdog timer has been started within the monitoring time,
A task monitoring device, comprising: a system stop processing means for displaying the contents of a task management table as an error log when a watchdog timer is not started within a monitoring time.
現在実行しているタスクの番号及び各タスク毎の実行しているステップの番号を格納したタスク管理テーブルと、
ウオッチドックタイマがタイムアップした際に異常箇所を特定するためのタスク番号と実行ステップ番号をエラーログとして格納するエラーログテーブルと、前記監視時間内にウオッチドックタイマが起動されたか否かを判定する監視タスク処理手段と、
ウオッチドックタイマがタイムアップした際に異常箇所を特定するためのタスク番号と実行ステップ番号をエラーログとして格納するエラーログテーブルと、監視時間内にウオッチドックタイマが起動されない場合、タスク管理テーブルの内容をエラーログテーブルに書き込むと共にエラーログを表示するシステム停止処理手段を備えたことを特徴とするタスク監視装置。A task monitoring device including an OS having a multitask management function and a watchdog timer function,
A task management table storing the number of the currently executing task and the number of the executing step for each task;
An error log table that stores, as an error log, a task number and an execution step number for specifying an abnormal point when the watchdog timer times out, and determines whether the watchdog timer has been started within the monitoring time. Monitoring task processing means;
An error log table that stores the task number and execution step number as an error log when the watchdog timer times out, and the contents of the task management table if the watchdog timer is not started within the monitoring time And a system stop processing unit for writing an error log to the error log table and displaying the error log.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003152988A JP2004355384A (en) | 2003-05-29 | 2003-05-29 | Task monitoring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003152988A JP2004355384A (en) | 2003-05-29 | 2003-05-29 | Task monitoring device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004355384A true JP2004355384A (en) | 2004-12-16 |
Family
ID=34048073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003152988A Pending JP2004355384A (en) | 2003-05-29 | 2003-05-29 | Task monitoring device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004355384A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491311A (en) * | 2018-04-02 | 2018-09-04 | 深圳还是威健康科技有限公司 | A kind of the house dog monitoring method and terminal of real time operating system |
CN113626233A (en) * | 2021-06-30 | 2021-11-09 | 浪潮电子信息产业股份有限公司 | Method, device and equipment for automatically detecting BIOS watchdog function |
-
2003
- 2003-05-29 JP JP2003152988A patent/JP2004355384A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491311A (en) * | 2018-04-02 | 2018-09-04 | 深圳还是威健康科技有限公司 | A kind of the house dog monitoring method and terminal of real time operating system |
CN113626233A (en) * | 2021-06-30 | 2021-11-09 | 浪潮电子信息产业股份有限公司 | Method, device and equipment for automatically detecting BIOS watchdog function |
CN113626233B (en) * | 2021-06-30 | 2024-02-13 | 浪潮电子信息产业股份有限公司 | Method, device and equipment for automatically detecting BIOS watchdog function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102521098B (en) | Processing method and processing device for monitoring dead halt of CPU (Central Processing Unit) | |
JP2006277115A (en) | Abnormality detection program and abnormality detection method | |
JP2010086364A (en) | Information processing device, operation state monitoring device and method | |
JP2006338445A (en) | Abnormality information storage apparatus | |
US20050033952A1 (en) | Dynamic scheduling of diagnostic tests to be performed during a system boot process | |
US7340594B2 (en) | Bios-level incident response system and method | |
JP2004355384A (en) | Task monitoring device | |
JP2009223714A (en) | Arithmetic circuit and failure analysis method of arithmetic circuit | |
JP2006227962A (en) | System and method for monitoring application task | |
JP2002007172A (en) | Stall monitoring device, stall monitoring method and recording medium recorded with stall monitor program | |
JPS6115239A (en) | Processor diagnosis system | |
JP4313858B2 (en) | calculator | |
JPH11259160A (en) | Computer starting method, computer and storage medium recording starting processing program | |
JP2002215428A (en) | Device and method for monitoring task and recording medium with the method recorded thereon | |
JP2005031724A (en) | Abnormality detecting device | |
JP2574938B2 (en) | System startup method | |
JP2007102511A (en) | Information processor | |
JP2006023970A (en) | Device abnormality restoration system | |
JP3620984B2 (en) | Computer automatic schedule control system, recording medium therefor, and computer automatic schedule control method | |
JP4611659B2 (en) | Unauthorized access detection device, unauthorized access detection method, program | |
JP2009301079A (en) | Electronic computer device and data storage method when software processing delay is detected | |
JP2004213178A (en) | Computer system | |
JPS6170645A (en) | Data collecting device for analysis of trouble cause | |
JPH0962534A (en) | Self-diagnostic method for electronic computer | |
JP2002132541A (en) | Processor |