JPH0764930A - Mutual monitoring method between cpus - Google Patents
Mutual monitoring method between cpusInfo
- Publication number
- JPH0764930A JPH0764930A JP5215619A JP21561993A JPH0764930A JP H0764930 A JPH0764930 A JP H0764930A JP 5215619 A JP5215619 A JP 5215619A JP 21561993 A JP21561993 A JP 21561993A JP H0764930 A JPH0764930 A JP H0764930A
- Authority
- JP
- Japan
- Prior art keywords
- task
- cpu
- processing
- main cpu
- monitoring
- 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.)
- Withdrawn
Links
Landscapes
- Hardware Redundancy (AREA)
- Multi Processors (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、2つのCPUを主CP
Uと予備CPUとして用い、相互に補完し合うことによ
りシステムの信頼性を向上するCPU補完システムにお
けるCPU間相互監視方法に関するものである。The present invention uses two CPUs as a main CP.
The present invention relates to a method of mutual monitoring between CPUs in a CPU complementary system which is used as a U and a spare CPU and complements each other to improve system reliability.
【0002】[0002]
【従来の技術】従来、この種のCPU補完システムは、
主CPUと予備CPUを設けておき、予備CPUにより
主CPUのタスクの処理状況を監視し、処理状況を記憶
しておき、主CPUでのタスクの実行に障害が発生した
場合には、主CPUでは、そのタスクを最初から再起動
していた。また、タスクの障害が主CPUの障害とな
り、主CPU自体が動作できない状態になった場合、予
備のCPUにおいて、前記タスクの最初から起動するよ
うにしていた。2. Description of the Related Art Conventionally, this type of CPU complement system has been
A main CPU and a spare CPU are provided, the processing status of the tasks of the main CPU is monitored by the spare CPU, the processing status is stored, and when a failure occurs in the execution of the tasks in the main CPU, the main CPU Then I restarted the task from the beginning. Further, when a failure of a task causes a failure of the main CPU and the main CPU itself becomes inoperable, the spare CPU is activated from the beginning of the task.
【0003】[0003]
【発明が解決しようとする課題】ところが、上述のよう
なCPU間相互監視方法では、1つのタスクは複数の処
理からなっているので、タスクの実行に障害が発生した
際に、例えば、タスク内の最後の処理に障害が発生した
場合でも、タスクの最初から再起動させる必要があり、
効率が悪いという問題があった。However, in the CPU mutual monitoring method as described above, since one task consists of a plurality of processes, when a task execution failure occurs, for example, Even if the last process of the process fails, it is necessary to restart from the beginning of the task,
There was a problem of poor efficiency.
【0004】本発明は、上記の点に鑑みてなしたもので
あり、その目的とするところは、タスクの実行に際し、
障害が発生した場合でも、効率良くタスクの再起動ので
きるCPU間相互監視方法を提供することにある。The present invention has been made in view of the above points, and an object thereof is to execute a task.
An object of the present invention is to provide a mutual monitoring method between CPUs that can efficiently restart tasks even when a failure occurs.
【0005】[0005]
【課題を解決するための手段】請求項1記載の発明は、
2つのCPUを主CPUと予備CPUとして用い、相互
に補完し合うようにしたCPU補完システムにおけるC
PU間相互監視方法であって、各CPUには、実行すべ
きタスクを記憶するタスク記憶部と、自己のCPUのタ
スクの実行を制御するタスク管理部と、相手方のCPU
の実行すべきタスクを構成する複数の処理に要する時間
を含むタスク実行情報を監視するとともに相手方のCP
Uのタスク管理部に対して制御情報を送るタスク監視部
を具備し、予備CPUのタスク監視部では、主CPUの
タスクのある処理が前記予め記憶したタスクの各処理に
要する時間内に処理が完了しない場合には、主CPUの
タスク管理部に対して、前記処理から再起動するような
制御情報を送出するようにしたことを特徴とする。The invention according to claim 1 is
C in a CPU complementary system in which two CPUs are used as a main CPU and a spare CPU to complement each other
A mutual monitoring method between PUs, wherein each CPU has a task storage unit that stores a task to be executed, a task management unit that controls the execution of the task of its own CPU, and a CPU of the other party.
The task execution information including the time required for a plurality of processes constituting the task to be executed by the other party's CP
The task monitoring unit for sending control information to the U task management unit is provided. In the task monitoring unit for the spare CPU, a process with a task of the main CPU is processed within the time required for each process of the previously stored task. If the processing is not completed, control information for restarting from the processing is sent to the task management unit of the main CPU.
【0006】請求項2記載の発明は、請求項1記載のC
PU間相互監視方法において、前記処理の途中で主CP
Uの障害により、主CPUが動作不可能な状態になった
場合には、予備CPUで前記タスクの処理から動作を開
始するようにしたことを特徴とする。The invention according to claim 2 is the C according to claim 1.
In the mutual monitoring method between PUs, the main CP
When the main CPU becomes inoperable due to a failure of U, the spare CPU starts the operation from the processing of the task.
【0007】請求項3記載の発明は、請求項1または請
求項2記載のCPU間相互監視方法において、共有メモ
リを付加し、共有メモリ上の監視テーブルに相手方のC
PUの実行すべきタスクを構成する複数の処理に要する
時間を含むタスク実行情報を予め記憶しておくように
し、タスク監視部では、前記監視テーブルの内容を監視
するようにしたことを特徴とする。According to a third aspect of the present invention, in the mutual CPU monitoring method according to the first or second aspect, a shared memory is added, and the C table of the other party is added to the monitoring table on the shared memory.
It is characterized in that task execution information including time required for a plurality of processes constituting a task to be executed by the PU is stored in advance, and the task monitoring unit monitors the content of the monitoring table. .
【0008】[0008]
【作用】本発明のCPU間相互監視方法にあっては、予
備CPUのタスク監視部において、主CPUのタスク実
行状況を監視しておき、タスクのある処理が前記予め記
憶したタスクの各処理に要する時間内に処理が完了しな
い場合には、主CPUのタスク管理部に対して、前記処
理から再起動するような制御情報を送出することによ
り、タスクの最初の処理から再起動をする必要がなくな
るのである。In the mutual monitoring method between CPUs of the present invention, the task monitoring section of the spare CPU monitors the task execution status of the main CPU, and a process with a task is executed in each process of the previously stored task. If the processing is not completed within the required time, it is necessary to restart the task from the first processing by sending control information for restarting the processing to the task management unit of the main CPU. It will disappear.
【0009】また、予備CPUに主CPUのタスクを記
憶しておくようにすれば、前記処理の途中で主CPUの
障害により、主CPUが動作不可能な状態になった場合
には、予備CPUで前記タスクの処理から動作を開始す
るようにすることができる。Further, by storing the task of the main CPU in the spare CPU, if the main CPU becomes inoperable due to a failure of the main CPU during the above processing, the spare CPU Then, the operation can be started from the processing of the task.
【0010】また、相手方のCPUの実行すべきタスク
を構成する複数の処理に要する時間を含むタスク実行情
報を2つのCPUの共有メモリ内に監視テーブルとして
予め記憶しておくようにすれば、タスク監視部では、前
記監視テーブルの内容を監視するようにすればよい。If task execution information including the time required for a plurality of processes constituting a task to be executed by the other CPU is stored in advance in a shared memory of the two CPUs as a monitoring table, the task The monitoring unit may monitor the contents of the monitoring table.
【0011】[0011]
【実施例】以下、本発明の一実施例を図面に基づき説明
する。図1は、2つのCPUを用いたCPU補完システ
ムを示す概略構成図である。1は主CPUであり、2は
予備のCPUである。各CPU1、2には、各々複数の
タスクを記憶しておくタスク記憶部11、21と、前記
タスクの実行を制御するタスク管理部12、22と、他
方のCPU1、2のタスクの状況を監視するとともに、
他方のCPU1、2のタスク管理部5に対して制御信号
を出力するタスク監視部13、23を有してなる。3は
共有メモリであり、2つの監視テーブル31、32から
なる。タスク記憶部11、21には、自己のCPU1、
2で実行すべき複数のタスクが各々記憶されている。各
タスクは、複数の処理からなっており、今、あるタスク
が図2に示すように、4つの処理A〜Dからなってお
り、例えば、各処理A〜Dの各処理要する時間を各々a
秒〜d秒とする。監視テーブル31、32は、各々CP
U1、CPU2のタスクの実行情報を記憶しておくもの
であり、図3に示すように、各タスクの番号、タスクの
動作場所、タスク内の各処理の所要時間(タイムアウト
値)および処理毎の動作が開始されてからの時間を示す
カウンタ値が記憶されている。タスク管理部12、22
では、各々、タスク記憶部11、21に記憶されている
タスクの実行を制御するものであり、各々他方のCPU
のタスク監視部13、23からの制御情報に基づいて制
御を行うものである。タスク監視部13、23は、各
々、他方のタスクの実行情報を記憶している監視テーブ
ル31、32からのタスクの実行情報を読み込んで、他
方のCPU1、2のタスク管理部12、22に制御信号
を送るのである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram showing a CPU complementing system using two CPUs. Reference numeral 1 is a main CPU, and 2 is a spare CPU. Each CPU 1, 2 has a task storage unit 11, 21 for storing a plurality of tasks, a task management unit 12, 22 for controlling the execution of the task, and a task status of the other CPU 1, 2 is monitored. Along with
It has task monitoring units 13 and 23 that output control signals to the task management unit 5 of the other CPUs 1 and 2. Reference numeral 3 denotes a shared memory, which includes two monitoring tables 31 and 32. The task storage units 11 and 21 have their own CPU 1,
A plurality of tasks to be executed in 2 are stored respectively. Each task is composed of a plurality of processes. Now, as shown in FIG. 2, a certain task is composed of four processes A to D. For example, the time required for each process A to D is a
Second to d seconds. The monitoring tables 31 and 32 are CPs, respectively.
U1 and CPU2 store task execution information, and as shown in FIG. 3, each task number, task operation location, required time (timeout value) for each process in the task, and each process A counter value indicating the time from the start of operation is stored. Task management unit 12, 22
Then, each controls the execution of the tasks stored in the task storage units 11 and 21, and the CPUs of the other
The control is performed based on the control information from the task monitoring units 13 and 23. The task monitoring units 13 and 23 read the task execution information from the monitoring tables 31 and 32 that store the execution information of the other task, and control the task management units 12 and 22 of the other CPUs 1 and 2, respectively. It sends a signal.
【0012】次に、本実施例の動作を説明する。今、C
PU1を主CPUとし、CPU2を予備のCPUとす
る。CPU1では、タスク記憶部11に記憶されている
タスクを順次実行していく。予備CPU2では、タスク
監視部23により、監視テーブル31に記憶された主C
PU1のタスクの実行状況を監視しており、今、例え
ば、図2に示すようなタスクの実行において、処理Dの
実行中に障害が発生したとすると、予備CPU2のタス
ク監視部23では、処理Dの所要時間(d秒)を過ぎて
も処理が完了しないことから、主CPU1のタスク管理
部12に対して、処理Dを再起動する旨の制御情報を送
る。主CPU1のタスク管理部12では、その時点での
処理を強制終了し、処理Dを再起動する。従って、前記
タスクの最初の処理Aから起動する必要はない。Next, the operation of this embodiment will be described. Now C
PU1 is the main CPU and CPU2 is the spare CPU. The CPU 1 sequentially executes the tasks stored in the task storage unit 11. In the spare CPU 2, the task monitoring unit 23 causes the main C stored in the monitoring table 31.
When the execution status of the task of PU1 is being monitored, and now, for example, in the execution of the task as shown in FIG. 2, if a failure occurs during the execution of processing D, the task monitoring unit 23 of the spare CPU 2 Since the processing is not completed even if the required time (d seconds) of D has passed, control information for restarting the processing D is sent to the task management unit 12 of the main CPU 1. The task management unit 12 of the main CPU 1 forcibly terminates the process at that point and restarts the process D. Therefore, it is not necessary to start from the first process A of the task.
【0013】また、予備CPU2のタスク記憶部21
に、予め、主CPU1のタスク記憶部11の内容を記憶
しておけば、例えば、主CPU1が前記タスクの処理D
の途中で、自身の障害のために動作不可能な状態になっ
た場合でも、予備CPU2が主CPU1に替わって、タ
スクの処理Dから再起動することができるのである。従
って、この場合も、前記タスクの最初の処理Aから起動
する必要はない。Further, the task storage unit 21 of the spare CPU 2
If the contents of the task storage unit 11 of the main CPU 1 are stored in advance, for example, the main CPU 1 will process the task D
Even if the operation becomes inoperable due to its own failure during the process, the spare CPU 2 can be restarted from the task processing D in place of the main CPU 1. Therefore, also in this case, it is not necessary to start from the first process A of the task.
【0014】なお、本実施例では、監視テーブル31、
32は、共有メモリ3内に設けたが、各CPU1、2内
に設けてもよい。In this embodiment, the monitoring table 31,
Although the 32 is provided in the shared memory 3, it may be provided in each of the CPUs 1 and 2.
【0015】[0015]
【発明の効果】以上のように、本発明のCPU間相互監
視方法によれば、予備CPUのタスク監視部において、
主CPUのタスク実行状況を監視しておき、タスクのあ
る処理が前記予め記憶したタスクの各処理に要する時間
内に処理が完了しない場合には、主CPUのタスク管理
部に対して、前記処理から再起動するような制御情報を
送出することにより、タスクの最初の処理から再起動を
する必要がなくなるので、タスクの実行に際し、障害が
発生した場合でも、効率良くタスクの再起動のできるC
PU間相互監視方法が提供できた。As described above, according to the mutual CPU monitoring method of the present invention, in the task monitoring unit of the spare CPU,
When the task execution status of the main CPU is monitored and the processing with a task is not completed within the time required for each processing of the previously stored task, the task management unit of the main CPU is instructed to perform the above processing. By sending the control information for restarting from the task, it is not necessary to restart from the first processing of the task. Therefore, even if a failure occurs in executing the task, the task can be restarted efficiently.
A mutual monitoring method between PUs could be provided.
【0016】また、予備CPUに主CPUのタスクを記
憶しておくようにすれば、前記処理の途中で主CPUの
障害により、主CPUが動作不可能な状態になった場合
には、予備CPUで前記タスクの処理から動作を開始す
るようにすることができるようになるのである。Further, by storing the task of the main CPU in the spare CPU, if the main CPU becomes inoperable due to a failure of the main CPU during the above-mentioned processing, the spare CPU Then, the operation can be started from the processing of the task.
【0017】また、相手方のCPUの実行すべきタスク
を構成する複数の処理に要する時間を含むタスク実行情
報を2つのCPUの共有メモリ内に監視テーブルとして
予め記憶しておくようにすれば、タスク監視部では、前
記監視テーブルの内容を監視するようにすればよくなる
のである。If task execution information including the time required for a plurality of processes constituting the task to be executed by the other CPU is stored in advance in the shared memory of the two CPUs as a monitoring table, the tasks can be executed. The monitoring unit should monitor the contents of the monitoring table.
【図1】本発明の一実施例に係るCPU補完システムを
示す概略構成図である。FIG. 1 is a schematic configuration diagram showing a CPU complementing system according to an embodiment of the present invention.
【図2】同上に係るタスクの説明図である。FIG. 2 is an explanatory diagram of a task according to the above.
【図3】同上に係る監視テーブルの説明図である。FIG. 3 is an explanatory diagram of a monitoring table according to the above.
1 主CPU 2 予備CPU 3 共有メモリ 11 タスク記憶部 12 タスク管理部 13 タスク監視部 21 タスク記憶部 22 タスク管理部 23 タスク監視部 1 main CPU 2 spare CPU 3 shared memory 11 task storage unit 12 task management unit 13 task monitoring unit 21 task storage unit 22 task management unit 23 task monitoring unit
Claims (3)
して用い、相互に補完し合うようにしたCPU補完シス
テムにおけるCPU間相互監視方法であって、各CPU
には、実行すべきタスクを記憶するタスク記憶部と、自
己のCPUのタスクの実行を制御するタスク管理部と、
相手方のCPUの実行すべきタスクを構成する複数の処
理に要する時間を含むタスク実行情報を監視するととも
に相手方のCPUのタスク管理部に対して制御情報を送
るタスク監視部を具備し、予備CPUのタスク監視部で
は、主CPUのタスクのある処理が前記予め記憶したタ
スクの各処理に要する時間内に処理が完了しない場合に
は、主CPUのタスク管理部に対して、前記処理から再
起動するような制御情報を送出するようにしたことを特
徴とするCPU間相互監視方法。1. A mutual monitoring method between CPUs in a CPU complementing system, wherein two CPUs are used as a main CPU and a spare CPU to complement each other.
Includes a task storage unit that stores tasks to be executed, a task management unit that controls the execution of tasks of its own CPU,
The other CPU is equipped with a task monitoring unit that monitors task execution information including time required for a plurality of processes constituting a task to be executed, and sends control information to the task management unit of the other CPU. In the task monitoring unit, when a certain process of the task of the main CPU is not completed within the time required for each process of the previously stored task, the task management unit of the main CPU restarts from the above process. A mutual monitoring method between CPUs, characterized in that control information as described above is transmitted.
り、主CPUが動作不可能な状態になった場合には、予
備CPUで前記タスクの処理から動作を開始するように
したことを特徴とする請求項1記載のCPU相互監視方
法。2. When the main CPU becomes inoperable due to a failure of the main CPU during the processing, the spare CPU starts the operation from the processing of the task. The CPU mutual monitoring method according to claim 1.
視テーブルに相手方のCPUの実行すべきタスクを構成
する複数の処理に要する時間を含むタスク実行情報を予
め記憶しておくようにし、タスク監視部では、前記監視
テーブルの内容を監視するようにしたことを特徴とする
請求項1または請求項2記載のCPU間相互監視方法。3. A shared memory is added, and task execution information including time required for a plurality of processes constituting a task to be executed by the other CPU is stored in advance in a monitoring table on the shared memory. The mutual monitoring method between CPUs according to claim 1 or 2, wherein the monitoring unit monitors the content of the monitoring table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5215619A JPH0764930A (en) | 1993-08-31 | 1993-08-31 | Mutual monitoring method between cpus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5215619A JPH0764930A (en) | 1993-08-31 | 1993-08-31 | Mutual monitoring method between cpus |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0764930A true JPH0764930A (en) | 1995-03-10 |
Family
ID=16675409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5215619A Withdrawn JPH0764930A (en) | 1993-08-31 | 1993-08-31 | Mutual monitoring method between cpus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0764930A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08305675A (en) * | 1995-04-28 | 1996-11-22 | Nippon Denki Ido Tsushin Kk | Multi-processor system and its operation management method |
JP2012016850A (en) * | 2010-07-06 | 2012-01-26 | Canon Inc | Image forming apparatus |
JP5163807B2 (en) * | 2010-03-18 | 2013-03-13 | トヨタ自動車株式会社 | Microcomputer mutual monitoring system and microcomputer mutual monitoring method |
CN104049530A (en) * | 2013-03-14 | 2014-09-17 | 通用汽车环球科技运作有限责任公司 | Fault tolerant control system |
JP2019053452A (en) * | 2017-09-14 | 2019-04-04 | 株式会社明電舎 | Information processing device |
KR20220084775A (en) * | 2020-12-14 | 2022-06-21 | 현대오토에버 주식회사 | Bidirectional microcomputer monitoring method |
-
1993
- 1993-08-31 JP JP5215619A patent/JPH0764930A/en not_active Withdrawn
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08305675A (en) * | 1995-04-28 | 1996-11-22 | Nippon Denki Ido Tsushin Kk | Multi-processor system and its operation management method |
JP5163807B2 (en) * | 2010-03-18 | 2013-03-13 | トヨタ自動車株式会社 | Microcomputer mutual monitoring system and microcomputer mutual monitoring method |
DE112010005400T5 (en) | 2010-03-18 | 2013-04-18 | Toyota Jidosha Kabushiki Kaisha | System for mutual monitoring of microcomputers and a method for mutual surveillance of microcomputers |
US8495433B2 (en) | 2010-03-18 | 2013-07-23 | Toyota Jidosha Kabushiki Kaisha | Microcomputer mutual monitoring system and a microcomputer mutual monitoring method |
JP2012016850A (en) * | 2010-07-06 | 2012-01-26 | Canon Inc | Image forming apparatus |
CN104049530A (en) * | 2013-03-14 | 2014-09-17 | 通用汽车环球科技运作有限责任公司 | Fault tolerant control system |
US9740178B2 (en) | 2013-03-14 | 2017-08-22 | GM Global Technology Operations LLC | Primary controller designation in fault tolerant systems |
JP2019053452A (en) * | 2017-09-14 | 2019-04-04 | 株式会社明電舎 | Information processing device |
KR20220084775A (en) * | 2020-12-14 | 2022-06-21 | 현대오토에버 주식회사 | Bidirectional microcomputer monitoring method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7975188B2 (en) | Restoration device for BIOS stall failures and method and computer program product for the same | |
JPH0764930A (en) | Mutual monitoring method between cpus | |
JPH09244923A (en) | Abnormality monitoring device using watchdog timer | |
JPH10116261A (en) | Check point restarting method for parallel computer system | |
JP2002149437A (en) | Method for restarting software | |
JPH05314075A (en) | On-line computer system | |
JPH0879246A (en) | Distributed communication system and fault recovery method therefor | |
JP3103877B2 (en) | Program execution method by multi-configuration system | |
JP2879480B2 (en) | Switching system when redundant computer system loses synchronization | |
JPH11175108A (en) | Duplex computer device | |
JP6835422B1 (en) | Information processing device and information processing method | |
JPH09297692A (en) | Multiplexing system | |
JP2658683B2 (en) | System stall monitoring and control method for mutual standby system | |
JP3185446B2 (en) | Computer system | |
JPH04305758A (en) | Information processor | |
JP2578908B2 (en) | Restart method | |
JP2002312076A (en) | Power supply control device for computer system | |
JPH0923582A (en) | Power system monitoring and controlling equipment | |
JPS61226820A (en) | Data processing resuming system by power restoration | |
JPH11265321A (en) | Fault restoring method central processing unit and central processing system | |
JPH052499A (en) | Job trouble re-processing system of information processor | |
JPH0267671A (en) | Execution restart system for on-line processing | |
JP3346670B2 (en) | Central processing unit switching method and switching system | |
JPH02121452A (en) | Electronic exchange system | |
JPH03256132A (en) | Double task system device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20001031 |