JPH04116732A - Timer control system - Google Patents

Timer control system

Info

Publication number
JPH04116732A
JPH04116732A JP2236643A JP23664390A JPH04116732A JP H04116732 A JPH04116732 A JP H04116732A JP 2236643 A JP2236643 A JP 2236643A JP 23664390 A JP23664390 A JP 23664390A JP H04116732 A JPH04116732 A JP H04116732A
Authority
JP
Japan
Prior art keywords
timer
time
processor
processors
timeout
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
JP2236643A
Other languages
Japanese (ja)
Inventor
Michihiro Aoki
道宏 青木
Shuji Miki
三木 修次
Arata Futagami
二神 新
Takanari Hoshiai
星合 隆成
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2236643A priority Critical patent/JPH04116732A/en
Publication of JPH04116732A publication Critical patent/JPH04116732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To shorten the copy time of timer information and to speedily switch processors by permitting MM crossing parts to monitor and transfer the update of data by means of a timer subtraction control part or the processors so as to always make the contents of the timers in both systems coincident with each other. CONSTITUTION:Time is subtracted as against the setting and starting of plural time out time generated at every process on respective processors 10 and 11. Thus, the elapse of time-out time is noticed from timer parts 105 and 115 to the processors 10 and 11. Then, all or a part of control information in the timer part in the standby system processor is made to coincide with information on the timer part of the operation system processor. Thus, the update of the data by the timer parts 105 and 115 or the processors 10 and 11 is monitored and transferred in the main memory crossing parts 103 and 113 and the contents of the timers in both systems are always made coincident with each other. Thus, the copy time of timer information can be shortened at the time of switching the processors 10 and 11 and the processors can speedily be switched.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、二重化構成を用いたプロセッサシステムにお
けるハードウェアタイマの制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control method for a hardware timer in a processor system using a duplex configuration.

[従来の技術] 従来より、二重化構成を用いたプロセッサシステムでは
、両系のメモリの内容を常に一致させることにより、一
方のプロセッサが障害になると他方に切り替えることに
より、高信頼性を保持していた。
[Prior Art] Conventionally, processor systems using a duplex configuration have maintained high reliability by always matching the memory contents of both systems, and by switching to the other processor when one processor fails. Ta.

第6図は、従来の二重化構成のプロセッサシステムのブ
ロック図である。
FIG. 6 is a block diagram of a conventional dual-configuration processor system.

二重化された各プロセッサ(CPU)10.11は、そ
れぞれ全体を制御する中央制御部(〜4PU)101.
111、中央制御部10.11で実行されるプログラム
、データを保持する主記憶装置(MM)604,614
、タイマ部(TMG)、605.615および両系のバ
スを結合するためのバス交差回路(BXC)102.l
 12を具備シティる。ここで、プロセッサ10は運用
系、プロセッサ11は予備系である。
Each of the duplexed processors (CPU) 10.11 has a central control unit (~4PU) 101.1 that controls the whole.
111, main memory (MM) 604, 614 that holds programs and data executed by the central control unit 10.11
, a timer unit (TMG), 605.615, and a bus crossover circuit (BXC) 102 for coupling the buses of both systems. l
The city is equipped with 12. Here, the processor 10 is an active system, and the processor 11 is a standby system.

タイマ部605,615には、タイマの空き塞がりを管
理するタイマ管理表(TST)6052゜6152、現
在の残りのタイマ時刻を保持するタイマ時刻保持表(T
DT)6053,6153、タイムアウトしたタイマ番
号(T I D)を保持するタイムアウトキュー(TO
Q)6054.6154および時刻の計数を行い、タイ
マ部605,615の制御を行うTMG制御部(TMC
)6051 、 6151が設けられる。
The timer sections 605 and 615 include timer management tables (TST) 6052 and 6152 for managing timer vacancies and occupancies, and a timer time holding table (TST) for holding the current remaining timer time.
DT) 6053, 6153, timeout queue (TO
Q) TMG control unit (TMC) that counts 6054, 6154 and time and controls timer units 605 and 615.
) 6051 and 6151 are provided.

タイマ管理表6052.6152は、タイマの状態を未
使用/使用中/更新中/タイムアウト中のいずれである
かを管理する。
The timer management tables 6052 and 6152 manage the status of the timer as unused/in use/updating/timeout.

次に、第6図における全体動作を述べる。Next, the overall operation in FIG. 6 will be described.

■先ず、プロセッサl○がタイマ群605から未使用の
タイマを確保する。これは、プロセッサ10からTMG
制御部6051に対してタイマ確保要求を発行すること
により行われる。TMG制御部6051は、タイマ管理
表6052内のタイマを検索して未使用タイマのタイマ
番号(T I D)を通知し、そのタイマの状態を使用
中に変更する。
(1) First, the processor l○ secures an unused timer from the timer group 605. This is from processor 10 to TMG
This is done by issuing a timer reservation request to the control unit 6051. The TMG control unit 6051 searches for a timer in the timer management table 6052, notifies the timer number (TID) of an unused timer, and changes the state of the timer to in use.

■次に、プロセッサ10はそのタイマに任意のタイムア
ウト時刻を設定する。タイムアウト時刻の設定は、プロ
セッサ10からタイマ番号TIDで指定するタイマのタ
イマ時刻保持表(TDT)6053に、設定時刻を書き
込むことにより行われる。
(2) Next, the processor 10 sets an arbitrary timeout time in the timer. The timeout time is set by writing the set time from the processor 10 to the timer time holding table (TDT) 6053 of the timer specified by the timer number TID.

■次に、プロセッサ10はタイマの起動を指示する。タ
イマの起動は、プロセッサ10からタイマ番号(T I
 D)で指定するタイマのタイマ時刻保持表6053に
、設定時刻を書き込むことにより行ねれる。
(2) Next, the processor 10 instructs to start the timer. To start the timer, the processor 10 sends a timer number (TI
This can be done by writing the set time into the timer time holding table 6053 of the timer specified in D).

0947部605は、プロセッサ10と独立にタイマ時
刻を更新する。タイマ更新は、TMG制御部6051が
全タイマについてタイマ管理表(TST)6052を読
み出し、タイマ時刻更新中であれば、タイマ時刻保持表
(TDT)6053の値から1を減算した値に更新する
。タイマ時刻保持表6053の更新値がOであればタイ
ムアウトであり、タイマ管理表(TST)6052にタ
イムアウト中を設定して、タイムアウトキュー(TOQ
)6054にそのタイマのタイマ番号(T T D)を
書き込む。この一連の動作を、全てのタイマについてタ
イマ更新時刻毎に1回ずつ実施する。■次に、タイマ部
605はプロセッサ10にタイムアウトを通知する。タ
イムアウト通知は、タイムアウトキュー(TOQ)60
54が空でない場合に、割込みでプロセッサ10に通知
する。または、プロセッサ10がタイマ部605からタ
イムアウトを検出してもよい。この場合には、プロセッ
サ10がタイムアウトキュー(TOQ)6054を参照
することにより、タイムアウトを知ることができる。
The 0947 unit 605 updates the timer time independently of the processor 10. To update the timer, the TMG control unit 6051 reads the timer management table (TST) 6052 for all timers, and if the timer time is being updated, updates the timer to a value obtained by subtracting 1 from the value in the timer time holding table (TDT) 6053. If the updated value of the timer time holding table 6053 is O, it means a timeout, and the timeout is set in the timer management table (TST) 6052, and the timeout queue (TOQ) is set.
) 6054, the timer number (TTD) of that timer is written. This series of operations is performed once for each timer update time for all timers. (2) Next, the timer section 605 notifies the processor 10 of the timeout. Timeout notification is sent to timeout queue (TOQ) 60
54 is not empty, the processor 10 is notified by an interrupt. Alternatively, the processor 10 may detect a timeout from the timer unit 605. In this case, the processor 10 can know the timeout by referring to the timeout queue (TOQ) 6054.

■最後に、使用を終了したタイマを解放する。タイマの
解放は、TMG制御部(TMC)6051またはプロセ
ッサ10がそのタイマ番号(T I D)のタイマ管理
表(TST)6052を未使用状態に設定することによ
り行われる。
■Finally, release the timer when it is no longer used. The timer is released by the TMG control unit (TMC) 6051 or the processor 10 setting the timer management table (TST) 6052 of the timer number (TID) to an unused state.

上記の動作は運用系のプロセッサ10のみて実行される
。その結果、運用中、運用系プロセッサ10と予備系プ
ロセッサ11のタイマ管理表(TST)とタイマ時刻保
持表(TDT)とタイムアウトキュー(TOQ)の内容
は不一致となり、系の切り替え時には、予備系のタイマ
値を更新するため、運用系のプロセッサのタイマ管理表
(TST)、タイマ時刻保持表(TDT)、タイムアウ
トキュー(TOQ)をバス交差回路(BXC)経由で転
送し合って、予備系のタイマ管理表(TST)、タイマ
時刻保持表(TDT)、タイムアウトキュー(TOQ)
にコピーとて、その後でプロセッサ10.11の切り替
えを行っていた。
The above operation is executed only by the active processor 10. As a result, during operation, the contents of the timer management table (TST), timer time table (TDT), and timeout queue (TOQ) of the active processor 10 and the backup processor 11 become inconsistent, and when switching systems, the contents of the backup processor 10 and the backup processor 11 become inconsistent. In order to update the timer values, the timer management table (TST), timer time keeping table (TDT), and timeout queue (TOQ) of the active processor are transferred via the bus cross circuit (BXC), and the timer of the backup system is updated. Management table (TST), timer time table (TDT), timeout queue (TOQ)
I copied it to , and then switched the processor to 10.11.

なお、二重系プロセッサシステムについては、例えば、
「電子通信ハンドブック!昭和54年3月30日(株)
オーム社発行、pp、1420〜1422に記載されて
いる。
For dual processor systems, for example,
“Electronic Communication Handbook! March 30, 1978 Co., Ltd.
Published by Ohmsha, pp. 1420-1422.

〔発明が解決しようとする課蓮〕[The problem that the invention attempts to solve]

このように、従来、フォールトトレラントシステムでは
、構成装置の二重化により両系の内容を一致させておき
、障害発生時には、運用系から予備系に切り替えること
により24時間無中断運転を行っている。その場合、前
述のように、切り替え時には、タイマ部(TMG)内の
情報を他の系にコピーする必要がある。その結果、切り
替え時間が増加するという問題があった。特に、タイマ
数が増大すると、切り替え時間は著しく増加している。
As described above, conventionally, in a fault-tolerant system, the contents of both systems are made consistent by duplication of component devices, and when a failure occurs, the system is switched from the active system to the standby system to perform uninterrupted operation 24 hours a day. In that case, as described above, at the time of switching, it is necessary to copy the information in the timer unit (TMG) to the other system. As a result, there was a problem in that the switching time increased. In particular, as the number of timers increases, the switching time increases significantly.

本発明の目的は、このような従来の課厘を解決し、ニ重
プロセッサシステムにおけるプロセッサ切り替え時に、
タイマ情報のコピー時間を短縮して、速やかにプロセッ
サの切り替えが可能なタイマ制御方式を提供することに
ある。
The purpose of the present invention is to solve such conventional problems and to
An object of the present invention is to provide a timer control method capable of quickly switching processors by shortening timer information copying time.

〔課題を解決するための手段] 上記目的を達成するため、本発明のタイマ制御方式は、
(イ)二重化された各プロセッサの主記憶を相互接続す
る情報転送装置を設けるとともに、主記憶装置上に少な
くとも一以上のタイマを管理する管理表と、タイマの現
在時刻を保持するタイマ時刻保持表と、タイムアウトし
たタイマ番号を保持するタイムアウトキューを配置し、
タイマ制御装置は、中央処理装置から各プロセス毎に発
生するタイマの使用要求起動に対して、タイマ時刻保持
表の時刻を減算し、タイマ管理表とタイムアウトキュー
の更新を行い、主記憶製置は、タイマ制御装置のタイマ
管理表とタイマ時刻保持表とタイムアウトキューの更新
を受けると、転送装置を介して更新内容を互いに転送す
ることに特徴がある。また、(ロ)タイマ管理表、タイ
マ時刻保持表およびタイムアウトキューを、タイマ制御
装置配下のメモリ内に配置するとともに、二重化された
プロセッサの各タイマ制御装置を相互接続する転送装置
を設け、その転送装置を介してメモリの更新内容を両系
のタイマ制御装置間で転送することにも特徴がある。
[Means for Solving the Problem] In order to achieve the above object, the timer control method of the present invention has the following features:
(b) An information transfer device is provided to interconnect the main memories of each duplexed processor, and a management table for managing at least one or more timers on the main memory, and a timer time holding table for holding the current time of the timer. and place a timeout queue to hold the timer number that has timed out,
The timer control device subtracts the time in the timer time holding table, updates the timer management table and timeout queue, and updates the timer management table and timeout queue in response to a timer use request activation generated by each process from the central processing unit. , is characterized in that when the timer management table, timer time holding table, and timeout queue of the timer control device are updated, the updated contents are transferred to each other via a transfer device. (b) The timer management table, timer time holding table, and timeout queue are placed in the memory under the timer control device, and a transfer device is provided to interconnect each timer control device of the duplex processor, and the transfer Another feature is that updated contents of the memory are transferred between the timer control devices of both systems via the device.

〔作  用] 本発明においては、各プロセッサ上にプロセス毎に発生
する複数のタイムアウト時刻の設定・起動に対して、時
刻の減算を行うことにより、タイムアウト時刻の経過を
タイマ部からプロセッサに通知するとともに、予備系プ
ロセッサのタイマ部の制御情報の全てないし一部を運用
系プロセッサのタイマ部の情報に一致させるようにして
いる。
[Operation] In the present invention, the timer unit notifies the processor of the passage of the timeout time by subtracting the time for setting and starting multiple timeout times that occur for each process on each processor. At the same time, all or part of the control information of the timer section of the standby processor is made to match the information of the timer section of the active processor.

そのために、タイマ部またはプロセッサによるデータ更
新を、メインメモリ交差部(MMC)で監視、転送して
、常に両系のタイマの内容を一致させる。
To this end, data updates by the timer section or the processor are monitored and transferred by the main memory intersection section (MMC), so that the contents of the timers in both systems always match.

これにより、プロセッサの切り替え時には、タイマ情報
のコピー時間が短縮され、速やかにプロセッサの切り替
えが可能となる。なお、両系のタイマ部を相互接続する
ためのタイマ情報一致制御部を設けて、タイマ部または
プロセッサにょるブタ更新を、そのタイマ情報一致制御
部を介して互いに転送し、両系のタイマの内容を一致さ
せることも可能である。
As a result, when switching processors, timer information copying time is shortened, and processors can be quickly switched. Note that a timer information matching control section is provided to interconnect the timer sections of both systems, and updates by the timer section or the processor are transferred to each other via the timer information matching control section, so that the timer sections of both systems can be connected to each other. It is also possible to match the contents.

[実施例] 以下、本発明の実施例を、図面により詳細に説明する。[Example] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の第1の実施例を示す二重化システム
でのタイマ構成図であって、主記憶交差部(MXC)を
使用した場合を示す。
FIG. 1 is a timer configuration diagram in a duplex system showing a first embodiment of the present invention, and shows a case where a main memory cross section (MXC) is used.

第1図においては、プロセッサ10.11がそれぞれ中
央制御部101.111、主記憶部(MM)104,1
14、主記憶部(MM)の内容の一致制御を行うMM交
差部(MXC)103,113、およびタイマ部(TM
G)105,115を備えている。
In FIG. 1, processors 10 and 11 are central controllers 101 and 111, and main memories (MM) 104 and 1, respectively.
14, MM intersection sections (MXC) 103 and 113 that perform consistency control of the contents of the main memory section (MM), and a timer section (TM
G) Equipped with 105 and 115.

タイマ部(TMG)105,115は、主記憶部(MM
)104,1.14内のデータ構成情報を保持するポイ
ンタテーブル(PT)の先頭番号のアドレスを保持する
PT先頭保持レジスタ(PTHR)1052.1152
および主記憶部(MM)内のタイマを減算するタイマ減
算制御部(TMC) 1051.1151を内蔵する。
The timer units (TMG) 105 and 115 are connected to the main memory unit (MM
) 104, 1.14 PT start holding register (PTHR) 1052.1152 that holds the address of the start number of the pointer table (PT) that holds the data configuration information in 1.14.
and a timer subtraction control unit (TMC) 1051.1151 that subtracts the timer in the main memory (MM).

本発明においては、従来はタイマ部内に設けられていた
タイマ管理表(TST)、タイマ時刻保持表(TDT)
、およびタイムアウトキュー(T OQ)を、いずれも
主記憶部(MM)104,114内に設ける。従って、
タイマ部105,115は、ポインタテーブルの先頭番
地とタイマを減算する制御部のみの藺草な構成となる。
In the present invention, the timer management table (TST) and timer time keeping table (TDT), which were conventionally provided in the timer section,
, and a timeout queue (T OQ) are both provided in main memories (MM) 104 and 114. Therefore,
The timer units 105 and 115 have a simple configuration consisting only of a control unit that subtracts the start address of the pointer table and the timer.

第2図は、第1図における主記憶部(MM)内のデータ
構成図である。
FIG. 2 is a data configuration diagram in the main memory (MM) in FIG. 1.

主記憶部(MM)には、タイマの空き塞りを管理するタ
イマ管理表(TST)、現在の残りタイマ時刻を保持す
るタイマ時刻保持表(TDT)、タイムアウトしたタイ
マ番号(T I D)を保持するタイムアウト中TID
保持領域(T OQ)が格納されている。さらに、TS
T(タイマ管理表)領域の上限/下限のアドレスを保持
するBTST/ETST、TDT(タイマ時刻保持表)
領域の上限/下限のアドレスを保持するBTDT/ET
DT、TOQ(タイムアウト中TID保持領域)領域の
上限/下限のアドレスを保持するBTOQ/ETO,Q
、TOQ(タイムアウト中TID保持領域)の先頭と最
終を示すTOQ先頭ポインタ(QHP)、TOQ最終ポ
インタ(QTP)からなるポインタテーブル(PT)が
格納されている。  BTST/ETST、BTDT/
ETDT、BTOQ/ETOQ、QHP/QTPの各ア
ドレスは、タイマ部(TMG)内のPT先頭保持レジス
タ(PTHR)]052゜1152により指定される。
The main memory (MM) stores a timer management table (TST) that manages timer availability, a timer time holding table (TDT) that stores the current remaining timer time, and a timer number that has timed out (TID). TID to hold during timeout
A holding area (TOQ) is stored. Furthermore, T.S.
BTST/ETST, TDT (timer time holding table) that holds the upper/lower limit addresses of the T (timer management table) area
BTDT/ET that holds the upper/lower limit address of the area
BTOQ/ETO,Q that holds the upper/lower limit addresses of the DT, TOQ (TID holding area during timeout) area
, a TOQ head pointer (QHP) indicating the beginning and end of the TOQ (TID holding area during timeout), and a TOQ end pointer (QTP). BTST/ETST, BTDT/
Each address of ETDT, BTOQ/ETOQ, and QHP/QTP is specified by the PT head holding register (PTHR)]052°1152 in the timer unit (TMG).

ここでは、主記憶部(MM)内のアドレスが8000番
地から使用される。すなわち、ポインタテーブル(PT
)は8000〜8007番地、タイマ管理表(TST)
は10000〜11023番地、タイマ時刻保持表(T
DT)は20000〜21023番地、タイムアウト中
TID保持領域(T OQ)は30000〜31023
番地がそれぞれ使用されている。
Here, addresses in the main memory (MM) are used starting from address 8000. That is, pointer table (PT
) are addresses 8000 to 8007, timer management table (TST)
are addresses 10000 to 11023, timer time holding table (T
DT) is address 20000-21023, TID holding area during timeout (TOQ) is address 30000-31023.
Each street address is used.

MM交差部(MXCH03,l 13では、常にタイマ
減算制御部(TMC)による主記憶部(MM)上のデー
タ更新を監視して、書き込みを検出すると、他系の主記
憶1(MM)にこれを転送し、両系の主記憶部(MM)
間のデータ一致制御を行っている。
The MM intersection (MXCH03,l 13) constantly monitors data updates on the main memory (MM) by the timer subtraction control unit (TMC), and when a write is detected, it is transferred to the main memory 1 (MM) of the other system. is transferred to the main memory (MM) of both systems.
Data consistency control is performed between the two.

TST(タイマ管理表)は、各タイマ毎に使用中フラグ
部(BYF)、時刻更新中フラグ部(EXF)、および
タイムアウト中フラグ部(TOF)で形成されている。
The TST (timer management table) is formed of a busy flag section (BYF), a time updating flag section (EXF), and a timeout flag section (TOF) for each timer.

第2図のTSTに示すように、TID=Oのタイマは未
使用中、TID=1のタイマはタイマ確保中、TID=
2のタイマはタイマ更新中、TID=3のタイマはタイ
ムアウト中をそれぞれ示している。タイムアウト中のタ
イマは、先頭がQHPの指す101番地で、TID=3
のタイマからTOQの最後がQTPの指す200番地で
TID=888のタイマまでの100個のタイマがタイ
ムアウト中の場合の例を示している。
As shown in TST in Figure 2, the timer with TID=O is not in use, the timer with TID=1 is being reserved, and the timer with TID=0 is not in use.
A timer with TID=2 indicates that the timer is being updated, and a timer with TID=3 indicates that the timer is in the process of timeout. The timer that is timing out starts at address 101 pointed to by QHP, and TID=3.
An example is shown in which 100 timers from the timer 200 to the timer whose TID=888 is at address 200 pointed to by QTP at the end of TOQ are in the process of timeout.

以下、二重系プロセッサシステムの全体動作を述べる。The overall operation of the dual processor system will be described below.

なお、プロセッサ10が運用系の場合を例にする。Note that the case where the processor 10 is an active system will be taken as an example.

■先ず、プロセッサ10はタイマ群から未使用のタイマ
を確保する。タイマの確保は、プロセッサ10がタイマ
部105の減算制御部(TMC)1051に対してタイ
マ確保要求を発行することにより行われる。減算制御部
(TMC)1051は、主記憶部(MM)104のBT
STからETSTが示すアドレス範囲(破線矢印で示す
)のTST内のBYFがOのタイマを検索し、そのタイ
マのBYFを1に設定して、そのタイマのTIDを通知
する。
(1) First, the processor 10 secures an unused timer from the timer group. The timer is secured by the processor 10 issuing a timer reservation request to the subtraction control unit (TMC) 1051 of the timer unit 105. The subtraction control unit (TMC) 1051 controls the BT of the main memory unit (MM) 104.
Search for a timer with BYF of O in TST in the address range indicated by ST to ETST (indicated by a broken line arrow), set BYF of that timer to 1, and notify the TID of that timer.

タイマの確保は、プロセッサ10がTSTを参照して、
BYFがOのタイマを検索し、TIDを求めてBYF=
1を設定することによっても実施することができる。減
算制御部(TMC)1051、プロセッサ10によるB
YFの更新は、MM交差部(MXC)103で監視され
、このMM交差部(MXC)103,113を経由して
プロセッサ11のBYFも更新される。
To secure the timer, the processor 10 refers to the TST and
Search for the timer whose BYF is O, find the TID, and write BYF=
This can also be implemented by setting 1. B by the subtraction control unit (TMC) 1051 and the processor 10
The update of the YF is monitored by the MM intersection (MXC) 103, and the BYF of the processor 11 is also updated via the MM intersection (MXC) 103 and 113.

■プロセッサ10は、そのタイマに任意のタイムアウト
時刻を設定する。タイムアウト時刻の設定は、プロセッ
サ10がTIDで指定するタイマのTDT(アドレスは
BTDT+TI Dで算出)に設定時刻を書き込むこと
により行われる(第2図の破線矢印で示す)。この場合
にも、■と同じようにして、プロセッサ11のTDTを
更新するための動作が、MM交差部(MXC)103,
113を経由して実行される。
(2) The processor 10 sets an arbitrary timeout time in the timer. The timeout time is set by the processor 10 by writing the set time into the TDT (the address is calculated by BTDT+TID) of the timer specified by the TID (indicated by the broken line arrow in FIG. 2). In this case as well, the operation for updating the TDT of the processor 11 is performed by the MM intersection (MXC) 103,
113.

■プロセッサ10は、タイマの起動を指示する。(2) The processor 10 instructs to start the timer.

タイマの起動は、プロセッサ10が指定するTIDのタ
イマに対して、TMCがTST内(アドレスはBTST
+TIDで算出)のEXFに1を設定することにより行
われる。なお、プロセッサ11のEXFは、MM交差部
(MXC)103゜113を経由して更新される。
To start the timer, the TMC is in TST (the address is BTST) for the timer of TID specified by the processor 10.
+TID) is set to 1 in EXF. Note that the EXF of the processor 11 is updated via the MM intersection (MXC) 103°113.

■タイマ部(TMG)105は、プロセッサ10と独立
にタイマ時刻を更新する。なお、タイマの更新について
は、第3図により詳述する。
(2) The timer unit (TMG) 105 updates the timer time independently of the processor 10. Note that updating of the timer will be explained in detail with reference to FIG.

■タイマ部(TMG)105は、プロセッサ10にタイ
ムアウトを通知する。この場合には、TOQが空でない
場合に割り込みでプロセッサ10に通知する。または、
プロセッサ10が主記憶部(MM)104のタイムアウ
ト中TTD保持領域(TOQ)1044からタイムアウ
トを検出することによっても実施可能である。この場合
には、プロセッサ10がTOQを参照することにより、
タイムアウトを知ることができる。
(2) The timer unit (TMG) 105 notifies the processor 10 of the timeout. In this case, if the TOQ is not empty, the processor 10 is notified by an interrupt. or
This can also be implemented by the processor 10 detecting a timeout from the timeout TTD holding area (TOQ) 1044 of the main memory (MM) 104. In this case, when the processor 10 refers to the TOQ,
You can know the timeout.

■プロセッサ10は、使用を終了したタイマを解放する
。タイマの解放は、タイマ減算制御部(TMC) 10
51またはプロセッサ10がそのTID(アドレスはB
TST+TIDで算出)のBYF=○、EXF=O,T
OF=Oを設定スルコトニより行われる。なお、プロセ
ッサ11に灯しては、MM交差部(MXC)103.l
 13を経由して更新が実施される。
(2) The processor 10 releases the timer that has finished being used. The timer is released by the timer subtraction control unit (TMC) 10
51 or processor 10 with its TID (address is B
(calculated by TST + TID) BYF = ○, EXF = O, T
This is done by setting OF=O. In addition, regarding the processor 11, the MM intersection (MXC) 103. l
The update is carried out via 13.

第3図は、第2図における■タイマ更新処理のフローチ
ャートである。
FIG. 3 is a flowchart of the timer update process shown in FIG.

タイマ減算制御部(TMC) l O5]は、TID=
Oのタイマについて、TSTの1番目(アドレスはBT
ST+T IDで算出)を読み出しくステップ301,
302)、タイマ時刻更新中(EXF=1)であれば(
ステ・ツブ303)、TDTの1番目(アドレスはBT
DT+T IDで算出)の値を1だけ減算した値に更新
する(ステップ304,305゜306)。プロセッサ
11の該当するタイマは、MM交差部(MXC)103
を経由して更新される。
Timer subtraction control unit (TMC) l O5] is TID=
Regarding timer O, the first TST (address is BT
Step 301:
302), if the timer time is being updated (EXF=1), (
Step 303), TDT 1st (address is BT
DT+T ID) is updated to a value obtained by subtracting 1 (steps 304, 305 and 306). The relevant timer of the processor 11 is the MM intersection (MXC) 103
updated via.

TDTの更新値がOであれば(ステップ307)、タイ
ムアウトであるから、TSTにEXF=O1TOF=1
を設定し、TOQのQTPを1だけ増加させ、QTPの
指すTOQにTIDを書き込む(ステップ308,30
9)。なお、プロセッサ11における該当タイマのEX
F、TOFも、MM交差部(MXC)103を経由して
更新する。さらに、プロセッサ11のTOQのQTPの
1増加、およびQTPの指すTOQへのTIDの書き込
み動作も、MM交差部(MXC)103を経由して更新
する。
If the updated value of TDT is O (step 307), it is a timeout, so EXF=O1TOF=1 is written to TST.
is set, the QTP of the TOQ is increased by 1, and the TID is written to the TOQ pointed to by the QTP (steps 308, 30
9). Note that the EX of the corresponding timer in the processor 11
F and TOF are also updated via the MM intersection (MXC) 103. Furthermore, the increment of QTP of the TOQ of the processor 11 by 1 and the write operation of the TID to the TOQ pointed to by the QTP are also updated via the MM intersection (MXC) 103.

次に、TIDを1だけ増加して、全く同じ動作を再度実
行する(ステップ310,311)。
Next, the TID is increased by 1 and the exact same operation is performed again (steps 310, 311).

この一連の動作を全てのタイマについて、タイマ更新時
間毎に1回実施する。
This series of operations is performed once for each timer update time for all timers.

以上がタイマ更新処理の詳細である。The above are the details of the timer update process.

なお、タイマ部(TMG)105内の情報の一致制御は
、MM交差部(MXC)103がプロセッサ10系の主
記憶部(MM)104への書き込み発生時に、プロセッ
サ11系の主記憶部(MM)114への書き込みを行っ
ているので、切り替え時にタイマ部(TMC;)105
. 115としては特別な処理を行わない。
Note that the coincidence control of information in the timer section (TMG) 105 is performed when the MM intersection section (MXC) 103 writes to the main memory section (MM) 104 of the processor 10 system. ) 114, the timer section (TMC;) 105 is written at the time of switching.
.. 115, no special processing is performed.

また、この実施例では、タイマ部(TMG)内の全ての
情報を予備系と運用系とで一致させているが、切り替え
時間が許す範囲で、一部の情報のみを一致させて、残り
の情報を切り替え時にコピする方法もある。
In addition, in this embodiment, all the information in the timer unit (TMG) is made to match between the backup system and the active system, but within the range that the switching time allows, only a part of the information is made to match, and the remaining information is There is also a method of copying information when switching.

第5図は、第1図の変形例を示すプロセッサ内の構成図
である。
FIG. 5 is a diagram showing the internal configuration of a processor showing a modification of FIG. 1.

第1図の実施例では、プロセッサバスに主記憶部(MM
)とタイマ部(TMG)を接続しているが、第5図に示
すように、メモリバスを別途設けることにより、入出力
装置(10)1053はプロセッサバスに、主記憶部(
MM)とタイマ部(TMG)はメモリバスに、それぞれ
別個に接続させることも可能である。この方法では、タ
イマ部(TMG)のプロセッサバスの使用率への影響を
緩和することができる。タイマ部(TMG)の処理は全
て同一である。
In the embodiment shown in FIG. 1, the main memory (MM) is connected to the processor bus.
) and the timer section (TMG), but as shown in FIG. 5, by providing a separate memory bus, the input/output device (10) 1053 connects the main memory section (
It is also possible to connect the timer section (MM) and the timer section (TMG) to the memory bus separately. With this method, the influence of the timer section (TMG) on the usage rate of the processor bus can be alleviated. The processing of the timer section (TMG) is all the same.

第5図は、本発明の第2の実施例を示す二重系プロセッ
サの構成図である。
FIG. 5 is a configuration diagram of a dual system processor showing a second embodiment of the present invention.

第5図では、タイマ専用の交差部(TXC)を持つ二重
化構成のプロセッサシステムが示されている。ここでは
、タイマ情報(PT、TST、TDT。
FIG. 5 shows a processor system with a duplex configuration having a timer-dedicated crossing section (TXC). Here, timer information (PT, TST, TDT.

TOQ)をタイマ部(TMG)内に専用に設けている。TOQ) is provided exclusively in the timer section (TMG).

すなわち、主記憶部(MM)504,514とMM交差
部(MXC)103,113がプロセッサバスに接続さ
れるとともに、タイマ部(TRG)505.515が接
策されている。
That is, main memory units (MM) 504, 514 and MM intersection units (MXC) 103, 113 are connected to the processor bus, and timer units (TRG) 505, 515 are connected.

タイマ部(TMG)505,515中には、PT(ポイ
ンタテーブル)5052,5152、TST(タイマ管
理表)5053,5153、タイマ時刻保持表(TDT
)5054,5154、タイムアウト中TID保持領域
(TOQ)5055,5155、減算制御部(TMC)
5051,5]、51、PT先頭保持レジスタ(PTH
R)5056,5156、ならびにタイマ情報の一致制
御部(TXC)5057.5157が設けられている。
The timer sections (TMG) 505 and 515 include PT (pointer tables) 5052 and 5152, TST (timer management tables) 5053 and 5153, and timer time holding tables (TDT).
) 5054, 5154, TID holding area during timeout (TOQ) 5055, 5155, subtraction control unit (TMC)
5051,5], 51, PT start holding register (PTH
R) 5056, 5156, and timer information coincidence control units (TXC) 5057, 5157.

動作は、第1図に示す場合と同じであるが、運用系と予
備系のタイマ情報の一致制御部(TXC)5057.5
157をタイマ専用に設けているので、他と兼用で使用
することなく、専用で高速動作が可能である。具体的な
動作は、第1図におけるMM交差部(MXC)をタイマ
情報一致制御部(TXC)に置き替えることにより説明
することができる。
The operation is the same as that shown in FIG. 1, but the timer information matching control unit (TXC) 5057.
Since the timer 157 is provided exclusively for the timer, high-speed operation is possible as a dedicated timer without using it for other purposes. The specific operation can be explained by replacing the MM intersection section (MXC) in FIG. 1 with a timer information matching control section (TXC).

第5図においては、タイマ情報をタイマ部(TMG)内
に専用化しているので、タイマの更新時にプロセッサバ
スおよびメモリバスを使用する必要がなく、プロセッサ
およびタイマの性能を向上することが可能である。
In Figure 5, since the timer information is dedicated to the timer section (TMG), there is no need to use the processor bus and memory bus when updating the timer, making it possible to improve the performance of the processor and timer. be.

第4図および第5図に示すタイマ構成は、各々適用分野
に応じて選択して使用することにより、効率的な使用が
可能である。
The timer configurations shown in FIGS. 4 and 5 can be used efficiently by selecting and using each according to the field of application.

[発明の効果] 以上説明したように、本発明によれば、タイマ管理表、
タイマ時刻保持表、タイムアウトキュ等を主記憶上に配
置して、タイマ減算制御部(TMC)またはプロセッサ
10によるデータ更新をMM交差部(MXC)により監
視、転送して、常に両系のタイマの内容を一致させるの
で、従来の方式に比べて、プロセッサ切り替え時に、タ
イマ情報のコピー時間が短縮され、速やかにプロセッサ
の切り替えが可能になる。本発明は、特にタイマ数が増
大した場合に、より有効である。
[Effects of the Invention] As explained above, according to the present invention, the timer management table,
A timer time holding table, timeout cue, etc. are placed in the main memory, and data updates by the timer subtraction control unit (TMC) or processor 10 are monitored and transferred by the MM intersection unit (MXC), so that the timers of both systems are always updated. Since the contents are matched, the time required to copy timer information is shortened when switching processors, compared to conventional methods, and processors can be switched quickly. The present invention is particularly effective when the number of timers increases.

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

第1図は本発明の第1の実施例を示す二重化プロセッサ
システムの構成図、第2図は第1図における主記憶部内
のデータ構成例の図、第3図は第1図におけるタイマ更
新処理のフローチャート、第4図は第1図における変形
例を示すプロセッサ内の構成図、第5図は本発明の第2
の実施例を示す二重化プロセッサシステムの構成図、第
6図は従来の二重化プロセッサシステムの構成図である
。 10.11:プロセッサ、101,111:中央制御部
(MPU)、103,113:MM交差部(MXC)、
102,112:バス交差回路(BXC)、104,1
14+主記憶部(MM)、105゜115.505,5
15  タイマ部(TMG)、1041、 1141 1042、 1142 104.3,1143 1044.1144 領域(TOQ)、10 制御部(TMC)、1 保持レジスタ、】0 (10)。 :ポインタテーブル(PT)、 TST (タイマ管理表)、 タイマ時刻保持表(TDT)、 タイムアウト中TID保持 51.1151:タイマ減算 052.1152:PT先頭 53.1153:入出力部 −ひ・
FIG. 1 is a block diagram of a duplex processor system showing a first embodiment of the present invention, FIG. 2 is a diagram of an example of the data structure in the main memory in FIG. 1, and FIG. 3 is a timer update process in FIG. 1. FIG. 4 is a block diagram of the inside of the processor showing a modification of FIG. 1, and FIG. 5 is a flowchart of the second embodiment of the present invention.
FIG. 6 is a block diagram of a conventional dual processor system. 10.11: Processor, 101, 111: Central control unit (MPU), 103, 113: MM intersection unit (MXC),
102, 112: Bus crossover circuit (BXC), 104, 1
14+main memory (MM), 105°115.505,5
15 Timer unit (TMG), 1041, 1141 1042, 1142 104.3, 1143 1044.1144 Area (TOQ), 10 Control unit (TMC), 1 Holding register, ]0 (10). : Pointer table (PT), TST (timer management table), timer time holding table (TDT), TID retention during timeout 51.1151: Timer subtraction 052.1152: PT start 53.1153: Input/output section - H

Claims (2)

【特許請求の範囲】[Claims] (1)各々、中央処理装置、主記憶装置およびタイマ制
御装置を備えた二重化プロセッサシステムのタイマ制御
方式において、前記二重化された各プロセッサの主記憶
を相互接続する情報転送装置を設けるとともに、前記主
記憶装置上に少なくとも一以上のタイマを管理する管理
表と、該タイマの現在時刻を保持するタイマ時刻保持表
と、タイムアウトしたタイマ番号を保持するタイムアウ
トキューを配置し、前記タイマ制御装置は、前記中央処
理装置から各プロセス毎に発生するタイマの使用要求起
動に対して、前記タイマ時刻保持表の時刻を減算し、前
記タイマ管理表とタイムアウトキューの更新を行い、前
記主記憶装置は、前記タイマ制御装置のタイマ管理表と
タイマ時刻保持表とタイムアウトキューの更新を受ける
と、上記転送装置を介して更新内容を互いに転送するこ
とを特徴とするタイマ制御方式。
(1) In a timer control method for a duplex processor system each comprising a central processing unit, a main memory device, and a timer control device, an information transfer device is provided to interconnect the main memories of each of the duplex processors, and A management table for managing at least one or more timers, a timer time holding table for holding the current time of the timer, and a timeout queue for holding the timer number that has timed out are arranged on the storage device, and the timer control device In response to activation of a timer use request generated for each process from the central processing unit, the time in the timer time holding table is subtracted, the timer management table and the timeout queue are updated, and the main storage device stores the timer A timer control method characterized in that when a timer management table, a timer time holding table, and a timeout queue of a control device are updated, the updated contents are transferred to each other via the transfer device.
(2)前記タイマ管理表、タイマ時刻保持表およびタイ
ムアウトキューを、タイマ制御装置配下のメモリ内に配
置するとともに、二重化されたプロセッサの各タイマ制
御装置を相互接続する転送装置を設け、該転送装置を介
して該メモリの更新内容を両系のタイマ制御装置間で転
送することを特徴とする請求項1に記載のタイマ制御方
式。
(2) The timer management table, timer time holding table, and timeout queue are arranged in a memory under the timer control device, and a transfer device is provided to interconnect each timer control device of the duplex processor, and the transfer device 2. The timer control method according to claim 1, wherein the updated contents of the memory are transferred between the timer control devices of both systems via the timer control system.
JP2236643A 1990-09-06 1990-09-06 Timer control system Pending JPH04116732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2236643A JPH04116732A (en) 1990-09-06 1990-09-06 Timer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2236643A JPH04116732A (en) 1990-09-06 1990-09-06 Timer control system

Publications (1)

Publication Number Publication Date
JPH04116732A true JPH04116732A (en) 1992-04-17

Family

ID=17003664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2236643A Pending JPH04116732A (en) 1990-09-06 1990-09-06 Timer control system

Country Status (1)

Country Link
JP (1) JPH04116732A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08115302A (en) * 1994-10-14 1996-05-07 Nec Corp Method and device for switching control accompanying system call of cluster connected type multiprocessor system
JP2007329683A (en) * 2006-06-07 2007-12-20 Fujitsu Ltd Timer synchronization accuracy guarantee by system switching, and timer synchronization accuracy duplexing apparatus
JP2012014549A (en) * 2010-07-02 2012-01-19 Nec Corp Dual system, and data processing method and data processor thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08115302A (en) * 1994-10-14 1996-05-07 Nec Corp Method and device for switching control accompanying system call of cluster connected type multiprocessor system
JP2007329683A (en) * 2006-06-07 2007-12-20 Fujitsu Ltd Timer synchronization accuracy guarantee by system switching, and timer synchronization accuracy duplexing apparatus
JP2012014549A (en) * 2010-07-02 2012-01-19 Nec Corp Dual system, and data processing method and data processor thereof

Similar Documents

Publication Publication Date Title
FI101432B (en) Fault-tolerant computer system
JP2894676B2 (en) Asynchronous remote copy system and asynchronous remote copy method
US6959400B2 (en) System and method for establishing consistent memory contents in redundant systems
EP1179770A2 (en) File system
CN102890716B (en) The data back up method of distributed file system and distributed file system
CA2921108A1 (en) System and method for failover
EP1672506A2 (en) A fault tolerant computer system and a synchronization method for the same
JP3197279B2 (en) Business takeover system
JP2006178659A (en) Fault tolerant computer system and interrupt control method therefor
JP2724078B2 (en) Maintenance method for redundant memory
CA2498592A1 (en) Method and circuit arrangement for synchronization of synchronously or asynchronously clocked processing units
CN114020279A (en) Application software distributed deployment method, system, terminal and storage medium
JPH04116732A (en) Timer control system
JP2000222375A (en) Multi-processor system
JP4305007B2 (en) System switching system, processing method therefor, and processing program therefor
JP2008009797A (en) Uninterruptible memory replication method
JPH06510895A (en) Fault Tolerant Communication System Controller
JP2001159985A (en) Duplex device
KR100494522B1 (en) Dual System and Dual Change Method on the same, and Computer-readable Medium recording a Program for performing the Method thereof
JP3351469B2 (en) Information processing system and failure handling method with data copy used for it
JP2004295272A (en) Transaction control method
JP2002149439A (en) Method for switching server and server device in distributed processing system
JPH11120017A (en) Automatic numbering system, duplex system, and cluster system
JP2002312302A (en) Peripheral device
JPH0954690A (en) File replacement system