JPS63111558A - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JPS63111558A
JPS63111558A JP25565286A JP25565286A JPS63111558A JP S63111558 A JPS63111558 A JP S63111558A JP 25565286 A JP25565286 A JP 25565286A JP 25565286 A JP25565286 A JP 25565286A JP S63111558 A JPS63111558 A JP S63111558A
Authority
JP
Japan
Prior art keywords
data
buffer
counter
area counter
empty area
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
JP25565286A
Other languages
Japanese (ja)
Inventor
Yuzuru Maya
譲 真矢
Susumu Kawaguchi
進 川口
Hiroshi Ota
博 太田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP25565286A priority Critical patent/JPS63111558A/en
Publication of JPS63111558A publication Critical patent/JPS63111558A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To improve the processing capacity of a data transmission system by using an idle area counter showing the number of data receivable areas and to minimize the overhead of the overall inter-processor communication of the system. CONSTITUTION:An electronic exchange system comprises a central processing unit 1, a communication hardware buffer 2, a terminal controller 3 and an input/output device 4. The unit 1 contains a user area 11, an OS transmission buffer 12, an OS reception buffer 13, a data reception process 14, a data transmission process 15, the idle area counter 16, an auxiliary idle area counter 17, an application process 18, and a supervisor call 19. The counter 16 is set at the maximum value with the overall inter-processor overhead of the system minimized for the data having priority set to its processing capacity. While the value of the counter 16 is minimized together with the minimized executing time for inter-processor communication for the data requiring the real time properties.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、中央処理装置と複数の端末処理装置のプロセ
ッサ間通信に係り、特に、実時間性と処理能力を同時に
満足させたデータ伝送方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to inter-processor communication between a central processing unit and a plurality of terminal processing units, and particularly relates to a data transmission method that satisfies both real-time performance and processing performance. Regarding.

〔従来の技術〕[Conventional technology]

従来、プロセッサ間通信方式は、特開昭60−1160
64号に記載のように、送信側および受信側の分散処理
を行い、全体の処理時間を向上させていた。
Conventionally, the inter-processor communication method was disclosed in Japanese Patent Application Laid-open No. 1160-1983
As described in No. 64, distributed processing was performed on the sending side and the receiving side to improve the overall processing time.

しかし、実時間性の要求されるデータについて、応答時
間内に、データ処理を終了させる点については配慮され
ていなかった。
However, for data that requires real-time performance, no consideration has been given to completing data processing within the response time.

(J?’明が解決しようとするI:J!Ii点〕上記従
来技術は、実時間性の要求されるデータを効率よく、一
定時間内に実行させる点について配慮されておらず、入
出力装置の応答時間を満たすことができないという問題
があった。本発明の目的は、処理能力を低下させずにし
かも入出力装置の応答時間を満足させることにある。
(I:J!Ii point that J?'ming tries to solve) The above conventional technology does not take into consideration the point of efficiently executing data that requires real-time performance within a certain period of time, and the input/output There has been a problem that the response time of the device cannot be satisfied.An object of the present invention is to satisfy the response time of the input/output device without reducing the processing capacity.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、データ受信可能なエリア数を示す空エリア
カウンタを設け、処理謄の要求されるデータの場合、空
エリアカウンタを最大とし、システム全体のプロセッサ
間通信のオーバヘッドを最小とすることにより、処理能
力を最大とし、実時間性の要求されるデータの場合、空
エリアカウンタを最小とし、プロセッサ間通信プロセス
の実行時間を最小とすることにより、達成される。
The above purpose is to provide an empty area counter that indicates the number of areas in which data can be received, and in the case of data that requires processing, to maximize the empty area counter and minimize the overhead of communication between processors in the entire system. This is achieved by maximizing the processing capacity, minimizing the empty area counter, and minimizing the execution time of the interprocessor communication process in the case of data requiring real-time performance.

〔作用〕[Effect]

中央処理装置が端末処理装置からのデータを受信するエ
リア、および受信可能なエリア数を示す空エリアカウン
タを設ける。
An empty area counter is provided that indicates the area in which the central processing unit receives data from the terminal processing unit and the number of receivable areas.

空エリアカウンタは、実時間性の要求されるデータの場
合、空エリアカウンタを最小とし、すなわち、端末処理
装置から受信可能なデータ数を最小として、データ受信
完了後、即ちに、中央処理装置のアプリケーションプロ
セスを実行することにより、実時間性を上げ、また、処
理能力の要求されるデータの場合、空エリアカウンタを
最大とし、端末処理装置からのデータを、−度にできる
だけ多くのメツセージを受信し、すなわち、データ受信
時のオーバヘッドを最小とすることにより、処理能力を
最大とするように動作する。
In the case of data that requires real-time performance, the empty area counter is set to the minimum value, that is, the number of data that can be received from the terminal processing device is set to the minimum, and after data reception is completed, that is, the number of data that can be received from the terminal processing device is By executing the application process, real-time performance is increased, and in the case of data that requires processing power, the empty area counter is maximized and data from the terminal processing device is received as many messages as possible at a time. In other words, the processing capacity is maximized by minimizing the overhead when receiving data.

〔実施例〕〔Example〕

以下、本発明の一実施例を電子交換システムを例にして
、第1図以降により説明する。
An embodiment of the present invention will be described below with reference to FIG. 1 and subsequent figures, taking an electronic exchange system as an example.

第1図は、電子交換システムのシステム構成図である。FIG. 1 is a system configuration diagram of an electronic exchange system.

電子交換システムは、中央処理装置1゜通信用ハードウ
ェアバッファ2.端末制御装置3、および、入出力装置
4で構成される。
The electronic exchange system consists of a central processing unit 1. a communication hardware buffer 2. It is composed of a terminal control device 3 and an input/output device 4.

中央処理装置lは、ユーザエリア11.O8送信バッフ
ァ12.O8受信バッファ13.データ受信プロセス1
4.データ送信プロセス15.空エリアカウンタ16.
補助空エリアカウンタ17゜アプリケーションプロセス
18、およびスーパバイザコール19で構成される。
The central processing unit l has a user area 11. O8 transmission buffer 12. O8 receive buffer 13. Data reception process 1
4. Data transmission process 15. Empty area counter 16.
It consists of an auxiliary free area counter 17, an application process 18, and a supervisor call 19.

空エリアカウンタ16は、O8受信バッファI3に空エ
リアがいくつあるかを示すカウンタである。
The empty area counter 16 is a counter that indicates how many empty areas there are in the O8 reception buffer I3.

補助空エリアカウンタ17は、データ受信プロセス14
が、O8受信バッファ13に空エリアがいくつあるかを
参照するカウンタであり、補助空エリアカウンタ13を
強制的に、0あるいは許容最小値にすることで、実時間
性の必要なデータ処理に対応する。
The auxiliary empty area counter 17 is controlled by the data receiving process 14.
is a counter that refers to the number of empty areas in the O8 reception buffer 13, and by forcibly setting the auxiliary empty area counter 13 to 0 or the minimum allowable value, data processing that requires real-time processing is supported. do.

通信用ハードウェアバッファ2は、ハードウェア送信バ
ッファ21、および、ハードウェア受信バッファ22で
構成される。
The communication hardware buffer 2 includes a hardware transmission buffer 21 and a hardware reception buffer 22.

次に、電子交換システムにおける中央処理装置1と端末
制御装置3間のデータ転送方式について述べる。
Next, a data transfer method between the central processing unit 1 and the terminal control unit 3 in the electronic switching system will be described.

端末制御装置3は、入出力装置4からのデータを受信す
ると、受信したデータを通信用ハードウェアバッファ2
のハードウェア受信バッファ22に書込む。(処理50
) 一方、中央処理装置1は、タイマ割込により。
When the terminal control device 3 receives data from the input/output device 4, the terminal control device 3 transfers the received data to the communication hardware buffer 2.
is written to the hardware reception buffer 22 of. (Processing 50
) Meanwhile, the central processing unit 1 uses a timer interrupt.

データ受信プロセス14を起動する。データ受信プロセ
ス14は、すべての通信用ハードウェア3バツフア2の
ハードウェア受信バッファ22に。
Start the data receiving process 14. The data reception process 14 sends data to the hardware reception buffers 22 of all communication hardware 3 buffers 2.

受信データがあるかどうか判定し、受信データがあれば
、O8受信バッファ13の補助空エリアカウンタ17を
参照して、補助空エリアカウンタ17分のみ、ハードウ
ェア受信バッファ22からO8受信バッファ13に、受
信データを転送する。
It is determined whether there is received data, and if there is received data, the auxiliary empty area counter 17 of the O8 receiving buffer 13 is referred to, and only the amount of the auxiliary empty area counter 17 is transferred from the hardware receiving buffer 22 to the O8 receiving buffer 13. Transfer received data.

(処理51) データ受信プロセス14の実行終了後、アプリケーショ
ンプロセス18に制御を移す。
(Process 51) After the execution of the data receiving process 14 is completed, control is transferred to the application process 18.

アプリケーションプロセス18は、スーパバイザコール
19により、O8受信バッファ13に格納されているデ
ータをユーザエリア11に転送する。(処理52) アプリケーションプロセス18は、受信データの処理を
行う。
The application process 18 transfers the data stored in the O8 reception buffer 13 to the user area 11 by a supervisor call 19. (Processing 52) The application process 18 processes the received data.

次に、中央処理装置1が、端末制御装置に対して、デー
タを転送する場合について、述べる・アプリケーション
プロセス18は、転送すべきデータをユーザエリア11
に設定し、スーパバイザコール19を発行することによ
り、ユーザエリア11からO8送信バッファ12に転送
する。
Next, the case where the central processing unit 1 transfers data to the terminal control device will be described. The application process 18 transfers the data to be transferred to the user area 11.
, and by issuing a supervisor call 19, the data is transferred from the user area 11 to the O8 transmission buffer 12.

(処理53) 中央処理装置1は、タイマ割込により、アプリケーショ
ンプロセス18の実行を中断して、データ送信プロセス
15を起動する。
(Process 53) The central processing unit 1 interrupts the execution of the application process 18 and starts the data transmission process 15 by a timer interrupt.

データ送信プロセス15は、O8送信バッファ12に格
納されているデータを、すべて、通信用ハードウェアバ
ッファ2のハードウェア送信バッファ22に書込む。(
処理54) 端末制御装置3は、通信用ハードウェアバッファ2のハ
ードウェア送信バッファ22にデータがあると、入出力
装置4に転送する。(処理55)ここでは、中央処理装
置1が、端末制御装置3からのデータを受信する場合、
規定の応答時間を満足し、かつ、システム処理能力を最
大限とすることについて、第2図を用いて述べる。
The data transmission process 15 writes all the data stored in the O8 transmission buffer 12 to the hardware transmission buffer 22 of the communication hardware buffer 2. (
Process 54) When the terminal control device 3 has data in the hardware transmission buffer 22 of the communication hardware buffer 2, it transfers the data to the input/output device 4. (Process 55) Here, when the central processing unit 1 receives data from the terminal control device 3,
How to satisfy the specified response time and maximize the system processing capacity will be described using FIG.

まず、タイマ割込により、アプリケーションプロセス1
8を中断させて、データ受信プロセス14を起動する。
First, application process 1 is interrupted by a timer interrupt.
8 and starts the data receiving process 14.

データ受信プロセス14は、補助空エリアカウンタ17
を参照し、補助空エリアカウンタ17が0かどうか判定
する。(ブロック60)補助空エリアカウンタ17がO
ならば、O8受信バッファ13に、空エリアがないため
、また、実時間性の必要なデータ受信のため、データ受
信プロセス14を終了する。(ブロック61)補助空エ
リアカウンタ17が、0でなければ、O8受信バッファ
13に空エリアがあるので、通信用ハードウェアバッフ
ァ2のハードウェア受信バッファ22に受信データがあ
るかどうか判定する。(ブロック62) 通信用ハードウェアバッファ2のハードウェア受信バッ
ファ22に、受信データがなければ、別の通信用ハード
ウェアバッファ2のハードウェア受信バッファ22をス
キャンする。(ブロック通信用ハードウェアバッファ2
に、受信データがあれば1通信用ハードウェアバッファ
2のハードウェア受信バッファ22から○S受信バッフ
ァに転送する。 (ブロック64) そして、O8受信バッファを1エリア使用したので、空
エリアカウンタ16を(−1)する。
The data receiving process 14 receives the auxiliary sky area counter 17.
With reference to , it is determined whether the auxiliary empty area counter 17 is 0 or not. (Block 60) Auxiliary empty area counter 17 is O
If so, the data reception process 14 is terminated because there is no empty area in the O8 reception buffer 13 and because data reception requires real-time processing. (Block 61) If the auxiliary empty area counter 17 is not 0, there is an empty area in the O8 reception buffer 13, so it is determined whether there is reception data in the hardware reception buffer 22 of the communication hardware buffer 2. (Block 62) If there is no received data in the hardware reception buffer 22 of the communication hardware buffer 2, the hardware reception buffer 22 of another communication hardware buffer 2 is scanned. (Hardware buffer 2 for block communication
If there is received data, it is transferred from the hardware reception buffer 22 of the 1 communication hardware buffer 2 to the ○S reception buffer. (Block 64) Then, since one area of the O8 reception buffer has been used, the empty area counter 16 is decremented by (-1).

(ブロック65) 最後に、O8受信バッファ13に格納されたデータは、
実時間性が要求されるかどうか判定する。
(Block 65) Finally, the data stored in the O8 reception buffer 13 is
Determine whether real-time performance is required.

(ブロック66) 実時間性の必要でないデータの場合、空エリアカウンタ
16の値を補助空エリアカウンタ17に設定する。これ
は、データ受信プロセス14が、O8受信バッファの空
エリア数を正しく参照するためである。(ブロック67
) 一方、実時間性の必要なデータの場合、データ受信プロ
セス14が参照する補助空エリアカウンタ17の値をO
とする。 (ブロック68)これにより、データ受信プ
ロセス】4は、oS受信バッファ13に空エリアのない
状態と判定し、データ受信プロセス14を強制終了させ
る。
(Block 66) If the data does not require real-time performance, the value of the empty area counter 16 is set in the auxiliary empty area counter 17. This is because the data receiving process 14 correctly refers to the number of empty areas in the O8 receiving buffer. (Block 67
) On the other hand, in the case of data that requires real-time processing, the value of the auxiliary empty area counter 17 referred to by the data receiving process 14 is
shall be. (Block 68) As a result, the data receiving process [4] determines that there is no empty area in the OS receiving buffer 13, and forcibly terminates the data receiving process 14.

通信用ハードウェアバッファ2に受信データがあるが、
実時間性の必要なデータ処理のため、ハードウェア受信
バッファ22から○S受信バッファに転送されなかった
データは、次回のタイマ割込により実行する。
There is received data in communication hardware buffer 2, but
Because data processing requires real-time processing, data not transferred from the hardware reception buffer 22 to the ○S reception buffer is executed by the next timer interrupt.

さらに、実時間性の必要度により、補助空エリアカウン
タ17の値を0にするのではなく、任意の整数(ただし
、空エリアカウンタ16以下)にして、必要なデータ数
を受信側で選択させることも可能である。
Furthermore, depending on the necessity of real-time performance, the value of the auxiliary empty area counter 17 is not set to 0, but is set to an arbitrary integer (however, the value of the empty area counter 16 or less), and the required number of data is selected on the receiving side. It is also possible.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、中央処理装置の受信データが、処理能
力を優先させる場合、○S受信バッファを最大限に活用
し、また、実時間性を優先させる場合空エリアカウンタ
を最小にすることができるので、中央処理装置は、受信
データを意識しないで、一定の応答時間内に、処理能力
を最大限で実行することが可能となる。
According to the present invention, it is possible to maximize the use of the ○S reception buffer when receiving data of the central processing unit gives priority to processing capacity, and to minimize the empty area counter when giving priority to real-time performance. As a result, the central processing unit can perform processing at its maximum capacity within a certain response time without being aware of the received data.

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

第1図は本発明の一実施態様を示す電子交換システムの
システム構成図、第2図は中央処理装置が端末制御装置
からのデータ受信をするときの制御フローチャート図で
ある。 1・・・中央処理装置 2・・・通信用ハードウェアバッファ 3・・・端末制御装置 4・・・入出力装置 21・・・ハードウェア送信バッファ 22・・・ハードウェア受信バッファ 、7−イ\ 、へ 代理人 弁理士 小川勝馬  ・ 315ノL2〕
FIG. 1 is a system configuration diagram of an electronic exchange system showing one embodiment of the present invention, and FIG. 2 is a control flowchart when a central processing unit receives data from a terminal control device. 1...Central processing unit 2...Hardware buffer for communication 3...Terminal control device 4...I/O device 21...Hardware transmission buffer 22...Hardware reception buffer, 7-I \Represented by Patent Attorney Katsuma Ogawa / 315 no L2]

Claims (1)

【特許請求の範囲】[Claims] 1、中央処理装置と複数の端末処理装置間で、周期的に
データを転送し、周期プログラムより優先順位の低いレ
ベルで、中央処理装置のアプリケーションプロセスを実
行する分散処理システムにおいて、複数の端末装置から
のメッセージを受信するエリア、および、その受信可能
なエリアを示す空エリアカウンタを設け、実時間性の要
求されるデータであるのか、あるいは、処理能力を優先
させるデータであるのか、を判定し、処理能力を優先さ
せるデータの場合、空エリアカウンタを最大として、同
一周期プロセスで、できるだけ多くの端末処理装置から
の受信をすることにより、システム全体のプロセッサ間
通信のオーバヘッドを最小とすることにより、また、実
時間性の要求されるデータの場合、空エリアカウンタを
最小として、プロセッサ間通信の実行時間を最小とする
ことにより、周期プロセスの実行時間を最小にして、す
べての受信データの処理が、一定の応答時間内に、しか
も、システムの処理能力を最大とすることを特徴とする
データ伝送方式。
1. In a distributed processing system that periodically transfers data between a central processing unit and multiple terminal processing units and executes application processes on the central processing unit at a lower priority level than periodic programs, multiple terminal processing units An empty area counter is provided to indicate the areas in which messages can be received and the areas in which they can be received, and it is determined whether the data requires real-time performance or the data prioritizes processing capacity. In the case of data that prioritizes processing capacity, the empty area counter is maximized and the overhead of communication between processors in the entire system is minimized by receiving data from as many terminal processing devices as possible in the same periodic process. In addition, in the case of data that requires real-time processing, by minimizing the empty area counter and minimizing the execution time of inter-processor communication, the execution time of periodic processes is minimized and all received data can be processed. However, this data transmission method is characterized by maximizing the processing capacity of the system within a certain response time.
JP25565286A 1986-10-29 1986-10-29 Data transmission system Pending JPS63111558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25565286A JPS63111558A (en) 1986-10-29 1986-10-29 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25565286A JPS63111558A (en) 1986-10-29 1986-10-29 Data transmission system

Publications (1)

Publication Number Publication Date
JPS63111558A true JPS63111558A (en) 1988-05-16

Family

ID=17281727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25565286A Pending JPS63111558A (en) 1986-10-29 1986-10-29 Data transmission system

Country Status (1)

Country Link
JP (1) JPS63111558A (en)

Similar Documents

Publication Publication Date Title
US5247671A (en) Scalable schedules for serial communications controller in data processing systems
US4930068A (en) Data processor having different interrupt processing modes
US5276896A (en) Apparatus for implementing data communications between terminal devices and user programs
JPS623362A (en) Data reception system
JPS63111558A (en) Data transmission system
JPS62172840A (en) Transferring system for data
JP2643931B2 (en) Information processing device
JPH02128250A (en) Access control circuit for information processor
EP0614148A1 (en) Data processing apparatus
JPH01305461A (en) Right of using bus control system
JPS5921051B2 (en) Communication control device
JPS59177638A (en) Control system of message preferential transmission
JPS58142465A (en) Data transferring and processing device
JPS61166631A (en) Microprogram control processor
KR920009447B1 (en) Multi process system
JPS60235263A (en) Interrupt control system
JPH04372042A (en) Input/output interrupt processing management system
JPS61216069A (en) Channel controlling system
JPH03152648A (en) Arbitrating circuit for bus using right
JPH01248730A (en) Information processor
JPH06250964A (en) Controller
JPH0131223B2 (en)
JPS63261431A (en) Merge process control system
JPS63228253A (en) Interruption processing system
JPH03265250A (en) Communication controller