JPS58217056A - Task control system of multiprocessor system - Google Patents

Task control system of multiprocessor system

Info

Publication number
JPS58217056A
JPS58217056A JP57100205A JP10020582A JPS58217056A JP S58217056 A JPS58217056 A JP S58217056A JP 57100205 A JP57100205 A JP 57100205A JP 10020582 A JP10020582 A JP 10020582A JP S58217056 A JPS58217056 A JP S58217056A
Authority
JP
Japan
Prior art keywords
microprocessor
data
microprocessors
task
external 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.)
Granted
Application number
JP57100205A
Other languages
Japanese (ja)
Other versions
JPH0126096B2 (en
Inventor
Atsushi Sugano
淳 菅野
Kenichi Ueda
謙一 上田
Kunio Honda
本田 邦夫
Yoshiki Okamura
岡村 嘉己
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57100205A priority Critical patent/JPS58217056A/en
Publication of JPS58217056A publication Critical patent/JPS58217056A/en
Publication of JPH0126096B2 publication Critical patent/JPH0126096B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

PURPOSE:To allow synchronism collation even when two microprocessors differ in processing time greatly to cause deviation in timing, by synchronizing both microprocessors with each other on the basis of the judgement of a main system once data from an external device is concatenated to a task. CONSTITUTION:A main microprocessor 11 and a conventional microprocessor 12 are connected to the external device 8, and synchronous data transmitter and receivers 13 and 14 are coupled with those microprocessors 11 and 12 and coupled mutually through a synchronism data transfer line 15 to constitute a synchronous port. Input data from the external device 8 is fetched in the microprocessors 11 and 12 at the same time and stored in input buffers. Once the task requests the input data, synchronism data is generated and the received data of both systems are collated with each other and then used for the task.

Description

【発明の詳細な説明】 本発明は、例えば2台のマイクロプロセッサに同一の処
理を同時に並行して実行させ、両マイクロプロセッサの
実行結果の一致検査を行い、片系のマイクロプロセッサ
が障害を生じた場合に、他糸のマイクロプロセッサが自
動的に単独で動作し、処理を継続するというマルチマイ
クロプロセッサシステムのタスク制御方式に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION The present invention allows two microprocessors to simultaneously execute the same process in parallel, checks the execution results of both microprocessors for consistency, and detects whether one of the microprocessors has failed. The present invention relates to a task control method for a multi-microprocessor system in which the microprocessor of another thread automatically operates independently and continues processing when the microprocessor of the other thread is automatically operated independently.

マルチマイクロプロセッサシステムでのオペレーティン
グシステム(以下O8と略す)の機能にタスクの優先処
理、並行処理を行うタスク制御機能があるが、従来より
のタスク制御方式は単独の計算機シヌテムをA象として
おり、二重系システムを前提としたタスク制御方式は一
般的なものとして提案されていない。
The operating system (hereinafter abbreviated as O8) in a multi-microprocessor system has a task control function that performs priority processing and parallel processing of tasks, but conventional task control methods use a single computer system as the A symbol. A general task control method based on a dual system has not been proposed.

従来のOSを用いて二重系システムを実現するためには
、例えば第1図に示すように、主系マイクロプロセソザ
1.従系マイクロプロセッサ2の双方に共通の計算機ク
ロックをクロックジェネレータ7により供給し、クロッ
クレベルで同期させ外部入出力装置5とでデータ転送す
る際に同期監視装置6によシ同期動作を監視する方式が
あり、ソフトウェアによる同期処理は必要ないが、主系
In order to realize a dual system using a conventional OS, for example, as shown in FIG. 1, the main microprocessor 1. A system in which a common computer clock is supplied to both slave microprocessors 2 by a clock generator 7, synchronized at the clock level, and a synchronization monitoring device 6 monitors the synchronized operation when data is transferred with an external input/output device 5. There is no need for synchronization processing by software, but it is the main system.

従系の各マイクロプロセッサ1,2の間でタイミングに
ずれを生じた場合には同期処理が行えないという欠点を
持っていた。
This has the disadvantage that synchronized processing cannot be performed if a timing difference occurs between the slave microprocessors 1 and 2.

本発明は以上の問題に鑑みてなされたものであり、2台
の独立のマイクロプロセッサにそれぞれ同期ボートを設
け、面同期ボー1−を同期データ転送ラインで結合し、
通常は両方のマイクロプロセッサを独立に動作させ、外
部装置からのデータがタスクにつなぎ込捷れるか、又は
タスクから取り出されて外部装置に転送される時点で、
主系の判断で同期をとることにより、各マイクロプロセ
ッサでの処理時間が大幅に異なって両者でタイミングに
ずれが生じても、同期照合が可能なタスク制御方式を提
供することを目的とするものである。
The present invention has been made in view of the above-mentioned problems. Two independent microprocessors are each provided with a synchronous board, and the surface synchronous boards 1- are connected by a synchronous data transfer line.
Normally, both microprocessors operate independently, and at the point when data from an external device is connected to the task and transferred to the task, or taken out of the task and transferred to the external device,
The objective is to provide a task control method that allows synchronization to be performed even if the processing time of each microprocessor is significantly different and there is a timing lag between the two, by synchronizing based on the judgment of the main system. It is.

以下に本発明の一実施例を図面を用いて説明する。An embodiment of the present invention will be described below with reference to the drawings.

第2図は本発明の一実施例を示すブロック川であり、外
部装置8に主系マイクロプロセッサ11゜従系マイクロ
プロセッサ12が接続されており、各々のマイクロプロ
セッサ1’1.12には同期データ送受信装置13.1
4が結合され、これらは同期データ転送ライン15で結
合され同期ボートを構成している。
FIG. 2 shows a block diagram showing an embodiment of the present invention, in which a main microprocessor 11° and a slave microprocessor 12 are connected to an external device 8, and each microprocessor 1'1. Data transmitting/receiving device 13.1
4 are coupled, and these are coupled by a synchronous data transfer line 15 to form a synchronous port.

外部装置8よりの入力データは主系、従系の各マイクロ
プロセッサ11.12に同時に取り込脣れ、入力ノベソ
ファに格納される。タスクが入力データを要求した時点
で同期データを生成し、両糸の間で同期ボートを介して
受信データの照合がとられた後にタスクで使用される。
Input data from the external device 8 is simultaneously transferred to the main and slave microprocessors 11 and 12 and stored in the input novel sofa. Synchronous data is generated when a task requests input data, and is used by the task after the received data is verified between both threads via a synchronization port.

外部装置8への出力データは入力の場合と同様に両糸で
照合がとられた後に主系マイクロブロセノザ1トからの
み外部装置8へ出力される。
The output data to the external device 8 is outputted to the external device 8 only from the main microprocessor 1 after collation is performed on both threads as in the case of input.

第3図は本発明のタスク制御方式の流れを示しだ図であ
シ、以下発明方式の動作の詳細をこれに従って説明する
FIG. 3 is a diagram showing the flow of the task control method of the present invention, and the details of the operation of the inventive method will be explained below.

外部装置とデータの転送処理を行う場合には、主系、従
系マロクロプロセッサ11.12の両系で転送データの
同期コードが生成される。同期コードは一般に転送デー
タをバイト毎に総和をとったザムコードである。
When performing data transfer processing with an external device, a synchronization code for the transfer data is generated in both the main and slave macro processors 11 and 12. The synchronization code is generally a sum code that sums the transferred data byte by byte.

次に従来マイクロプロセッサ12は同期コート′を同期
ボー1−を経由して主系マロクロプロセッサ5ベー〕 11に転送し、主系マイクロプロセッサ11からACK
の応答コードが入力されるのを待って次の処理へ進む。
Next, the conventional microprocessor 12 transfers the synchronization code ' to the main macroprocessor 5 base 11 via the synchronization board 1-, and receives an ACK from the main microprocessor 11.
Wait until the response code is input before proceeding to the next process.

この時一定時間待っても主系マイクロプロセッサ11か
ら応答コードが人力されないか又は単独稼動指示を示す
ACK1コードが入力された時は、主系マイクロプロセ
ッサ11が障害であると見なして従系マイクロプロセッ
サ12が単独で処理を継続する。捷だ、従系マイクロプ
ロセッサ12が障害であることを示すNAKコードが入
力された場合は従系マイクロプロセッサ12での継続の
処理を禁止する。
At this time, if no response code is input from the main microprocessor 11 after waiting a certain period of time, or if an ACK1 code indicating an independent operation instruction is input, the main microprocessor 11 is assumed to be at fault, and the slave microprocessor 11 12 continues processing alone. If a NAK code indicating that the slave microprocessor 12 is at fault is input, the slave microprocessor 12 is prohibited from continuing the process.

主系マイクロプロセッサ11では従系マイクロプロセッ
サ12からの同期コードと自己の同期コ−1−”を比較
し、一致する時は人CKコードを同期ボートを経由して
従系マイクロプロセッサ12へ転送し、処理を継続する
。比較照合の結果不一致である事がわかると、主系マイ
クロプロセッサ11は自己機能を検査し、自己機能が正
しい場合は、NAKコードを従系マイクロプロセッサ1
2に送信し、以後の処理を主系マロクロプロセッサ11
6 l:、−: 機能に誤りがあった場合はAlK1コードを従系マイク
ロプロセッサ12に送信し、自己を障害と見なして継続
の処理を禁止する。一定時間待っても従系マイクロプロ
セッサ12から同期コードが受信されない時は従系マイ
クロプロセッサ12を障害と見なして主系マイクロプロ
セッサ11が単独で処理を継続する。
The main microprocessor 11 compares the synchronization code from the slave microprocessor 12 with its own synchronization code, and if they match, transfers the human CK code to the slave microprocessor 12 via the synchronization port. , processing continues.If the result of comparison and verification shows that there is a mismatch, the main microprocessor 11 checks its own function, and if the self function is correct, it sends the NAK code to the slave microprocessor 1.
2, and the subsequent processing is carried out by the main macrocro processor 11.
6 l:, -: If there is an error in the function, it sends the AlK1 code to the slave microprocessor 12, considers itself to be a failure, and prohibits further processing. If the synchronization code is not received from the slave microprocessor 12 even after waiting for a certain period of time, the slave microprocessor 12 is regarded as a failure and the master microprocessor 11 continues processing independently.

以上説明したように本発明によれば、同期ボートを有す
る2台のマイクロプロセッサを通常は独立に動作をさせ
、外部装置とのデータ転送時に一方のマイクロプロセッ
サの判断で同期をとるものであり、一方のマイクロプロ
セッサで独自の処理を行うという非同期タスクを有する
ために、両系の同期タイミングが大幅にずれるという二
重系システムにおいても同期処理を可能にし、その工業
的価値は大である。
As explained above, according to the present invention, two microprocessors each having a synchronization port are normally operated independently, and when data is transferred to an external device, synchronization is achieved based on the judgment of one of the microprocessors. Since one microprocessor has an asynchronous task in which it performs its own processing, it enables synchronized processing even in a dual system system where the synchronization timing of both systems is significantly different, and its industrial value is great.

なお、実施例では二重系のシステムについて説明したが
、それ以」二のマイクロプロセッサシステムにおいても
本発明は適用できる。
Although a dual system system has been described in the embodiment, the present invention can also be applied to other types of microprocessor systems.

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

第’ 図ハ従来の二重系マルチプロセッサシステムの構
成を示すブロック図、第2図は本発明の一実施例におけ
るマルチプロセッサシステムのタヌク制御方式を示すブ
ロック図、第3図は本発明の処理手順を示すフローチャ
ー1−である。 1・・・・・・主系プロセッサ、2・・・・・従系プロ
セッサ、3.4・・・・・外部入出力インターフェース
、5・・・・・・外部入出力装置、6・・・・・・同期
監視装置、了・・・・・・クロノクンエネレータ、8・
・・・外部入出力装置、9.10・・・・・・外部入出
力インターフェース、11・・・・・・主系プロセッサ
、12・・印・従系プロセッサ、13.14・・・・・
・同期データ送受信装置、15・・・・・・同期データ
転送ライン。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図      5
Fig. 3 is a block diagram showing the configuration of a conventional dual-system multiprocessor system, Fig. 2 is a block diagram showing the Tanuk control method of the multiprocessor system according to an embodiment of the present invention, and Fig. 3 is a block diagram showing the configuration of a conventional dual-system multiprocessor system. This is a flowchart 1- showing the procedure. 1...Main processor, 2...Slave processor, 3.4...External input/output interface, 5...External input/output device, 6... ...Synchronization monitoring device, completed... Chronokun Enerator, 8.
...External input/output device, 9.10...External input/output interface, 11...Main processor, 12...Slave processor, 13.14...
- Synchronous data transmitting/receiving device, 15... Synchronous data transfer line. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 5

Claims (1)

【特許請求の範囲】[Claims] 第1及び第2のマイクロプロセッサと、それぞれが前記
両マイクロプロセッサに結続された同期ポートと、前記
両同期ボートを結続する同期データ転送ラインとを備え
、前記両マイクロプロセッサの演算処理を機能単位毎に
タスクに分割し、前記タスクが外部装置とのデータ転送
を要求した際に前記同期ボートを介して前記第1のマイ
クロプロセッサから前記第2のマイクロプロセッサへ同
期データの転送を行ない、前記第2のマイクロプロセッ
サの判断で同期をとることを特徴とするマルチプロセッ
サシステムのタスク制御方式。
A first and a second microprocessor, each comprising a synchronization port connected to the two microprocessors, and a synchronization data transfer line connecting the two synchronization ports, each of which functions to carry out arithmetic processing of the two microprocessors. dividing the unit into tasks, and when the task requests data transfer with an external device, synchronous data is transferred from the first microprocessor to the second microprocessor via the synchronous port; A task control method for a multiprocessor system characterized by synchronization based on the judgment of a second microprocessor.
JP57100205A 1982-06-10 1982-06-10 Task control system of multiprocessor system Granted JPS58217056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57100205A JPS58217056A (en) 1982-06-10 1982-06-10 Task control system of multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57100205A JPS58217056A (en) 1982-06-10 1982-06-10 Task control system of multiprocessor system

Publications (2)

Publication Number Publication Date
JPS58217056A true JPS58217056A (en) 1983-12-16
JPH0126096B2 JPH0126096B2 (en) 1989-05-22

Family

ID=14267800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57100205A Granted JPS58217056A (en) 1982-06-10 1982-06-10 Task control system of multiprocessor system

Country Status (1)

Country Link
JP (1) JPS58217056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61194578A (en) * 1985-02-22 1986-08-28 Fujitsu Kiden Ltd Automatic code selection of bar code

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3965699B2 (en) * 2005-01-31 2007-08-29 横河電機株式会社 Information processing apparatus and information processing method
JP3897047B2 (en) * 2005-01-31 2007-03-22 横河電機株式会社 Information processing apparatus and information processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61194578A (en) * 1985-02-22 1986-08-28 Fujitsu Kiden Ltd Automatic code selection of bar code

Also Published As

Publication number Publication date
JPH0126096B2 (en) 1989-05-22

Similar Documents

Publication Publication Date Title
JP3156083B2 (en) Fault-tolerant computer equipment
CN1326042C (en) Fault-tderant computer system and its resynchronization method and program
US20060150004A1 (en) Fault tolerant system and controller, operation method, and operation program used in the fault tolerant system
US7493517B2 (en) Fault tolerant computer system and a synchronization method for the same
JPH0833874B2 (en) Device for synchronizing multiple processors
JP2000510976A (en) Method for synchronizing programs on different computers of an interconnect system
JPS58217056A (en) Task control system of multiprocessor system
JPH06242979A (en) Dual computer device
JPH08241217A (en) Information processor
JPH086800A (en) Data processor and microprocessor
JP2001022720A (en) Multiprocessor system
JPS58214958A (en) Synchronizing data transfer system of multi-processor system
JPH0736720A (en) Duplex computer equipment
JP3166552B2 (en) CPU monitoring method and CPU monitoring device
JPS5843775B2 (en) Processor backup system
JPS6239789B2 (en)
JP2871372B2 (en) Redundant processor unit
JP2526835B2 (en) Duplex synchronous control system of programmable controller
JPS5840215B2 (en) System synchronization method
KR920002665B1 (en) A method for generating local bus cycle in multi processing system
JP2590239B2 (en) Lock circuit lock acquisition method
JP2985188B2 (en) Redundant computer system
JP2905259B2 (en) System configuration change control method
JPS59176863A (en) Timer synchronizing system
JPH01316836A (en) Duplicated controller