JPH06325002A - Synchronizing method for plural computers - Google Patents

Synchronizing method for plural computers

Info

Publication number
JPH06325002A
JPH06325002A JP5108114A JP10811493A JPH06325002A JP H06325002 A JPH06325002 A JP H06325002A JP 5108114 A JP5108114 A JP 5108114A JP 10811493 A JP10811493 A JP 10811493A JP H06325002 A JPH06325002 A JP H06325002A
Authority
JP
Japan
Prior art keywords
synchronization signal
computer
slave computer
signal
application program
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
Application number
JP5108114A
Other languages
Japanese (ja)
Inventor
Bunya Tsukagoshi
文弥 塚越
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP5108114A priority Critical patent/JPH06325002A/en
Publication of JPH06325002A publication Critical patent/JPH06325002A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To unnecessitate a synchronizing signal from a master computer when a slave computer is singly used and, on the other hand, to prevent system down caused by automatically switching a system to the single start of the slave computer when the synchronizing signal is stopped being supplied in the middle of the operation of the slave computer corresponding to the synchronizing signal from the master computer. CONSTITUTION:In place of the conventional method for periodically starting a slave computer 2-i only corresponding to a synchronizing signal 4-i from a master computer 1, a start trigger switch processing part 8 is added inside the slave computer 2-i, and an interrupting signal 7 from an internal timer 6 of the master computer 1 is automatically switched to a trigger for the periodical start of an application program 5 and used corresponding to the form of use and the interruption of the synchronizing signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、構成品に複数の計算機
を含むシステムにおける計算機間の同期方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of synchronizing computers in a system including a plurality of computers in its components.

【0002】[0002]

【従来の技術】図4を参照して、従来の複数計算機の同
期方法を説明する。図4において、このシステムは1台
のマスター計算機1とn台のスレーブ計算機2−i(i
=1,2,…,n)とからなり、マスター計算機1は同
期信号ライン3を介して各スレーブ計算機2−iに対し
て同期信号4−i(i=1,2,…,n)を出力する。
スレーブ計算機2−i側では、全ての使用形態におい
て、該当する同期信号4−iを用いてアプリケーション
プログラム5を周期起動する。
2. Description of the Related Art A conventional method for synchronizing a plurality of computers will be described with reference to FIG. In FIG. 4, this system includes one master computer 1 and n slave computers 2-i (i
, 1, 2, ..., N), and the master computer 1 sends a synchronization signal 4-i (i = 1, 2, ..., N) to each slave computer 2-i via the synchronization signal line 3. Output.
On the slave computer 2-i side, the application program 5 is cyclically activated using the corresponding synchronization signal 4-i in all the usage patterns.

【0003】[0003]

【発明が解決しようとする課題】従来の同期方法では、
スレーブ計算機2−i内のアプリケーションプログラム
5をマスター計算機1から与えられる同期信号4−iの
みによって周期起動させているため、下記のような問題
点が生じる。 (1)スレーブ計算機例えば2−1を単独で使用する場
合でも、アプリケーションプログラム5の起動のため
に、マスター計算機1を稼動させて同期信号4−1を供
給する必要があり、運用コストが高く付く。 (2)システムの稼動中に、マスター計算機1の故障等
により同期信号4−iが供給されなくなった場合、スレ
ーブ計算機2−iは起動できなくなり、システムダウン
に陥る。
In the conventional synchronization method,
Since the application program 5 in the slave computer 2-i is cyclically activated only by the synchronization signal 4-i given from the master computer 1, the following problems occur. (1) Even when the slave computer, for example, 2-1 is used alone, it is necessary to operate the master computer 1 and supply the synchronization signal 4-1 in order to start the application program 5, which results in high operating cost. . (2) When the synchronization signal 4-i is not supplied due to a failure of the master computer 1 during the operation of the system, the slave computer 2-i cannot be started and the system goes down.

【0004】本発明は上記従来技術の問題点を解消し
て、スレーブ計算機の単独使用時にはマスター計算機か
らの同期信号を不要とし、一方、マスター計算機からの
同期信号によりスレーブ計算機が稼動している途中で同
期信号が供給されなくなった場合でも、自動的にスレー
ブ計算機の単独起動に切り替えてシステムダウンに陥る
のを防止することができる同期方法を提供することを目
的とする。
The present invention solves the above-mentioned problems of the prior art and eliminates the need for a synchronization signal from the master computer when the slave computer is used alone, while the slave computer is operating while the synchronization signal from the master computer is operating. It is an object of the present invention to provide a synchronization method capable of automatically switching to the independent activation of a slave computer and preventing the system from going down even if the synchronization signal is no longer supplied.

【0005】[0005]

【課題を解決するための手段】上記目的を達成する本発
明の複数計算機の同期方法は、スレーブ計算機と、この
スレーブ計算機に同期信号を与えるマスター計算機とを
含むシステムにおいて、スレーブ計算機に、同期信号割
込処理部と、内部タイマー割込処理部と、システムの使
用形態を管理するフラグと、同期信号の中断を監視する
ためのカウンタとを有する起動トリガ切替処理部を備
え、この起動トリガ切替処理部により、(1)マスター
計算機からの同期信号及び内部タイマーからの割込信号
の両方を受信すること、(2)フラグの状態を監視し
て、アプリケーションプログラムに対する起動を、同期
信号を用いて行うか、あるいは割込信号を用いて行うか
の切替えを行うこと、(3)同期信号をアプリケーショ
ンプログラムに対する起動トリガとして用いる場合は、
同期信号を受信する毎にカウンタを更新し、一定間隔で
カウンタの更新がなされているか否かにより同期信号の
中断を監視し、中断発生時にはアプリケーションプログ
ラムに対する起動トリガとして内部タイマーからの割込
信号を用いることを特徴とするものである。
A method of synchronizing a plurality of computers according to the present invention which achieves the above object, is a system including a slave computer and a master computer for giving a synchronization signal to the slave computer. An activation trigger switching processing unit having an interrupt processing unit, an internal timer interrupt processing unit, a flag for managing the usage pattern of the system, and a counter for monitoring the interruption of the synchronization signal is provided. The part (1) receives both the synchronization signal from the master computer and the interrupt signal from the internal timer, and (2) monitors the state of the flag and activates the application program using the synchronization signal. Whether to use an interrupt signal or (3) a synchronization signal to the application program. When used as dynamic trigger,
The counter is updated each time the sync signal is received, and the interruption of the sync signal is monitored depending on whether the counter is updated at regular intervals.When the interruption occurs, the interrupt signal from the internal timer is used as a start trigger for the application program. It is characterized by being used.

【0006】[0006]

【作用】上記構成により、スレーブ計算機をマスター計
算機からの同期信号のみで同期起動させる従来の方法に
代え、スレーブ計算機内に起動トリガ切替処理部を追加
して、使用形態及び同期信号の中断に対応して自動的に
スレーブ計算機の内部タイマーをアプリケーションプロ
グラムの周期起動のトリガに切替えて用いる。
With the above configuration, instead of the conventional method in which the slave computer is synchronously activated only by the synchronization signal from the master computer, an activation trigger switching processing unit is added in the slave computer to cope with the usage pattern and the interruption of the synchronization signal. Then, the internal timer of the slave computer is automatically switched to a trigger for cyclic activation of the application program and used.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明を適用した複数計算機システムの
構成を示し、マスター計算機1とスレーブ計算機2−i
(i=1,2,…,n)を有する。マスター計算機1は
同期信号ライン3を介して各スレーブ計算機2−iに同
期信号4−i(i=1,2,…,n)を出力する。スレ
ーブ計算機2−iにはアプリケーションプログラム5及
び内部タイマー6に加えて、起動トリガ切替処理部8が
ある。この起動トリガ処理部8には同期信号割込処理部
9及び内部タイマー割込処理部10に加えて、切替フラ
グ部11と中断監視用カウンタ12があり、同期信号及
びこの同期信号と等しい周期に設定された内部タイマー
6からの割込信号7の両方を各割込処理部9,10を介
して受信し、切替フラグ部11及びカウンタ12により
システムの使用形態及び同期信号の中断の有無を判断
し、アプリケーションプログラム5に対する起動トリガ
を同期信号とするか、内部タイマー6からの割込信号7
とするかの切替えを行う。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of a multi-computer system to which the present invention is applied. The master computer 1 and slave computers 2-i are shown in FIG.
(I = 1, 2, ..., N). The master computer 1 outputs a synchronization signal 4-i (i = 1, 2, ..., N) to each slave computer 2-i via the synchronization signal line 3. In addition to the application program 5 and the internal timer 6, the slave computer 2-i has an activation trigger switching processing unit 8. In addition to the synchronization signal interruption processing unit 9 and the internal timer interruption processing unit 10, the activation trigger processing unit 8 has a switching flag unit 11 and an interruption monitoring counter 12, and the synchronization signal and the period equal to the synchronization signal are provided. Both of the set interrupt signals 7 from the internal timer 6 are received via the interrupt processing units 9 and 10, and the switching flag unit 11 and the counter 12 determine the usage pattern of the system and the presence or absence of interruption of the synchronization signal. Then, the start trigger for the application program 5 is used as a synchronization signal, or the interrupt signal 7 from the internal timer 6 is used.
Switch whether or not.

【0008】次に、起動トリガ切替処理部8の動作を図
1,図2,図3を参照して説明する。
Next, the operation of the activation trigger switching processing section 8 will be described with reference to FIGS. 1, 2 and 3.

【0009】まず、切替フラグ部11では、切替フラグ
Fがアプリケーションプログラム5によってシステムの
使用形態に対応して設定され、この切替フラグFが起動
トリガをマスター計算機1からの同期信号とするか、内
部タイマー6からの割込信号7とするかを規定する。
First, in the switching flag section 11, the switching flag F is set by the application program 5 in accordance with the usage pattern of the system, and the switching flag F uses the activation trigger as a synchronization signal from the master computer 1 or It specifies whether to use the interrupt signal 7 from the timer 6.

【0010】同期信号割込処理部9は同期信号を受信す
る毎に起動され、図2に示すように、切替フラグFを読
込み(ステップS1)、切替フラグFが同期信号による
起動を示している場合は(ステップS2)、カウンタ1
2を更新即ちインクリメントし(ステップS3)、アプ
リケーションプログラム5をマスター計算機1からの同
期信号を用いて起動する。
The synchronization signal interrupt processing unit 9 is activated each time a synchronization signal is received. As shown in FIG. 2, the switching flag F is read (step S1), and the switching flag F indicates activation by the synchronization signal. If (step S2), counter 1
2 is updated or incremented (step S3), and the application program 5 is started using the synchronization signal from the master computer 1.

【0011】内部タイマー割込処理部10は内部タイマ
ー6からの割込信号7により起動され、図3に示すよう
に、切替フラグFを読込み(ステップS10)、切替フ
ラグFが割込信号7による起動を示している場合は(ス
テップS11)、この割込信号7を用いてアプリケーシ
ョンプログラム5を起動する(ステップS17)。切替
フラグFがマスター計算機1からの同期信号による起動
を示している場合は、中断監視用カウンタ12を読込み
(ステップS12)、正常に一定間隔で更新(インクリ
メント)されているか否かをチェックし(ステップS1
3)、正常に更新されてない場合は、カウンタ12の否
更新回数をカウントし(ステップS14)、その値が調
整可能な値Aに達したとき異常発生と判断し(ステップ
S15)、アプリケーションプログラム5を内部タイマ
ー6からの割込信号7を用いて起動する(ステップS1
7)。この時、必要に応じてアプリケーションプログラ
ム5に異常の発生を通知する(ステップS16)。
The internal timer interrupt processing unit 10 is activated by an interrupt signal 7 from the internal timer 6, reads the switching flag F (step S10), and the switching flag F receives the interrupt signal 7 as shown in FIG. If the activation is indicated (step S11), the application program 5 is activated using the interrupt signal 7 (step S17). When the switching flag F indicates the activation by the synchronization signal from the master computer 1, the interruption monitoring counter 12 is read (step S12), and it is checked whether or not it is normally updated (incremented) at a constant interval ( Step S1
3) If not updated normally, the number of times the counter 12 is updated is counted (step S14), and when the value reaches the adjustable value A, it is determined that an abnormality has occurred (step S15), and the application program 5 is started by using the interrupt signal 7 from the internal timer 6 (step S1
7). At this time, the occurrence of an abnormality is notified to the application program 5 as necessary (step S16).

【0012】[0012]

【発明の効果】本発明により、システムの使用形態及び
異常発生の有無に対応して計算機内部の、アプリケーシ
ョンプログラムの起動トリガを自動的に切替可能とな
り、従来の同期方法が持つ問題点に対して、次に示す効
果をあげることができる。 (1)スレーブ計算機を単独で使用する場合は、スレー
ブ計算機の内部タイマーに自動的に切り替えることがで
き、マスター計算機を移動させる必要がないため、運用
コストを低減することができる。 (2)マスター計算機の故障等により、同期信号の供給
が中断した場合でも、アプリケーションプログラムの起
動トリガを内部タイマーに切り替えることができ、シス
テムダウンを回避することができる。
According to the present invention, it is possible to automatically switch the start trigger of the application program inside the computer according to the usage pattern of the system and the presence / absence of an abnormality. The following effects can be achieved. (1) When the slave computer is used alone, it is possible to automatically switch to the internal timer of the slave computer, and it is not necessary to move the master computer, so the operating cost can be reduced. (2) Even when the supply of the synchronization signal is interrupted due to a failure of the master computer or the like, the activation trigger of the application program can be switched to the internal timer, and the system down can be avoided.

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

【図1】本発明の一実施例に係る複数計算機システムを
示す図。
FIG. 1 is a diagram showing a multi-computer system according to an embodiment of the present invention.

【図2】同期信号割込処理のフローを示す図。FIG. 2 is a diagram showing a flow of synchronization signal interrupt processing.

【図3】内部タイマー割込処理のフローを示す図。FIG. 3 is a diagram showing a flow of internal timer interrupt processing.

【図4】従来例を示す図。FIG. 4 is a diagram showing a conventional example.

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

1 マスター計算機 2−i (i=1,2,…n)スレーブ計算機 3 同期信号ライン 4−i (i=1,2,…n)同期信号 5 アプリケーションプログラム 6 内部タイマー 7 割込信号 8 起動トリガ切替処理部 9 同期信号割込処理部 10 内部タイマー割込処理部 11 切替フラグ部 12 カウンタ 1 master computer 2-i (i = 1,2, ... n) slave computer 3 synchronization signal line 4-i (i = 1,2, ... n) synchronization signal 5 application program 6 internal timer 7 interrupt signal 8 start trigger Switching processing unit 9 Synchronization signal interrupt processing unit 10 Internal timer interrupt processing unit 11 Switching flag unit 12 Counter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 スレーブ計算機と、このスレーブ計算機
に同期信号を与えるマスター計算機とを含むシステムに
おいて、スレーブ計算機に、同期信号割込処理部と、内
部タイマー割込処理部と、システムの使用形態を管理す
るフラグと、同期信号の中断を監視するためのカウンタ
とを有する起動トリガ切替処理部を備え、この起動トリ
ガ切替処理部により、 (1)マスター計算機からの同期信号及び内部タイマー
からの割込信号の両方を受信すること、 (2)フラグの状態を監視して、アプリケーションプロ
グラムに対する起動を、同期信号を用いて行うか、ある
いは割込信号を用いて行うかの切替えを行うこと、 (3)同期信号をアプリケーションプログラムに対する
起動トリガとして用いる場合は、同期信号を受信する毎
にカウンタを更新し、一定間隔でカウンタの更新がなさ
れているか否かにより同期信号の中断を監視し、中断発
生時にはアプリケーションプログラムに対する起動トリ
ガとして内部タイマーからの割込信号を用いること、 を特徴とする複数計算機の同期方法。
1. In a system including a slave computer and a master computer for providing a synchronization signal to the slave computer, the slave computer is provided with a synchronization signal interrupt processing unit, an internal timer interrupt processing unit, and a usage pattern of the system. An activation trigger switching processing unit having a flag to be managed and a counter for monitoring interruption of the synchronization signal is provided, and by this activation trigger switching processing unit, (1) a synchronization signal from a master computer and an interrupt from an internal timer. Receiving both of the signals, (2) monitoring the state of the flag, and switching between activation of the application program using a synchronization signal or an interrupt signal, (3) ) When the sync signal is used as a start trigger for the application program, the counter is updated each time the sync signal is received. Newly, multiple computers characterized by monitoring the interruption of the synchronization signal depending on whether or not the counter is updated at regular intervals and using the interrupt signal from the internal timer as a start trigger for the application program when the interruption occurs. Synchronization method.
JP5108114A 1993-05-10 1993-05-10 Synchronizing method for plural computers Withdrawn JPH06325002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5108114A JPH06325002A (en) 1993-05-10 1993-05-10 Synchronizing method for plural computers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5108114A JPH06325002A (en) 1993-05-10 1993-05-10 Synchronizing method for plural computers

Publications (1)

Publication Number Publication Date
JPH06325002A true JPH06325002A (en) 1994-11-25

Family

ID=14476264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5108114A Withdrawn JPH06325002A (en) 1993-05-10 1993-05-10 Synchronizing method for plural computers

Country Status (1)

Country Link
JP (1) JPH06325002A (en)

Similar Documents

Publication Publication Date Title
JPH06325002A (en) Synchronizing method for plural computers
JPH06332734A (en) System activation maintaining system
JPH0317722A (en) Reference time interruption method
JP2695785B2 (en) Processing state display method of processing unit
JP2588290B2 (en) Data input / output system
JPH064301A (en) Time division interruption control system
JPS63238641A (en) Simplified detecting system for fault of microprocessor
JPH0330044A (en) Interruption control method
JPS63108437A (en) Trouble reporting system in hot standby system
JPH0426914Y2 (en)
JPS62226249A (en) Separating system for input/output device
JPH11134209A (en) Fault tolerant controler
JPH1153222A (en) Self-diagnostic method in multiple computer system
JPH01120652A (en) Setting system for monitor time of input/output device
JP2710200B2 (en) Multiple timer
JPH01224848A (en) Multi-processing system
JPS6268314A (en) Timing signal synchronizing system
JPH02259846A (en) Software monitoring system
JPH0635756A (en) Operating state monitor system for program
JPH073016U (en) Central processing unit reset circuit
JPH04256037A (en) Monitoring device for operation of unit
JPS6356755A (en) Abnormality supervising system for slave processor
JPS63269234A (en) System switching device
JPH04369071A (en) Cross call control circuit
JPH03192892A (en) Switching control circuit

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: 20000801