JPH05204670A - Communication control system for parallel execution between processes - Google Patents

Communication control system for parallel execution between processes

Info

Publication number
JPH05204670A
JPH05204670A JP960592A JP960592A JPH05204670A JP H05204670 A JPH05204670 A JP H05204670A JP 960592 A JP960592 A JP 960592A JP 960592 A JP960592 A JP 960592A JP H05204670 A JPH05204670 A JP H05204670A
Authority
JP
Japan
Prior art keywords
data
storage means
writing
writes
empty
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
JP960592A
Other languages
Japanese (ja)
Inventor
Toshio Komatsu
敏夫 小松
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP960592A priority Critical patent/JPH05204670A/en
Publication of JPH05204670A publication Critical patent/JPH05204670A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the collision of data and to attain sure data transfer by dividing a storing means in the case of simultaneously and mutually sending data from two processes. CONSTITUTION:A process l writes data (a) in a storage means 21 and a process 2 reads out the data (a) from the means 21 by waiting for the end of the writing (steps 1 to 3). Then the process 2 writes data (b) indicating the reading end of the data (a) in a storage means 22 and the process 1 reads out the data (b) to check the normal transfer of the data (b) (steps 4 to 6). Then the process 1 writes space data (c) in the means 21 for the preparation of writing of the succeeding data, the process 2 detects the data (c), writes space data (d) in the means 22 and the process l detects the data (d) (steps 7 to 10). operation erases the data of the means 21, 22 are preparing the succeeding communication. Data transfer from the process 2 to the process 1 is similarly executed by using storage means 23, 24.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は複数プロセス間の並列実
行用通信制御システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control system for parallel execution between a plurality of processes.

【0002】[0002]

【従来の技術】従来の複数プロセス間の並列実行用通信
制御システムについて図面を参照して詳細に説明する。
図3は、従来の一例を示す模式図である。
2. Description of the Related Art A conventional communication control system for parallel execution between a plurality of processes will be described in detail with reference to the drawings.
FIG. 3 is a schematic diagram showing a conventional example.

【0003】図3に示す複数プロセス間の並列実行用通
信制御システムは、(A) プロセス(1)が記憶手段にデ
ータを書き込むステップ31と、(B) プロセス(2)が
プロセス(1)の書き込み終了を待つステップ32と、
(C) プロセス(2)がデータaを読み出し、データaを
消去するステップ33と、(D) プロセス(1)が記憶手
段のデータを消去終了を待つステップ34、(E) プロセ
ス(2)が記憶手段にデータを書き込むステップ35
と、(F) プロセス(1)がプロセス(2)書き込み終了
を待つステップ36と、(G) プロセス(1)がデータb
を読み出し、データbを消去するステップ37と、(H)
プロセス(2)が記憶手段のデータb消去終了を待つス
テップ38と、を含んで構成される。
In the communication control system for parallel execution between a plurality of processes shown in FIG. 3, (A) process (1) writes step 31 into the storage means, and (B) process (2) includes process (1). Step 32 of waiting for the end of writing,
(C) The process (2) reads the data a and erases the data a, step 33, and (D) the process (1) waits until the data in the storage means is erased, and (E) the process (2) Step 35 for writing data in the storage means
And (F) process (1) waits for the end of writing process (2), and (G) process (1) sends data b.
Step 37 of reading out and erasing data b, and (H)
The process (2) includes a step 38 of waiting for the end of erasing the data b in the storage means.

【0004】ステップ31〜ステップ34は、プロセス
(1)からプロセス(2)にデータを転送する動作を示
し、ステップ35〜ステップ38は、プロセス(2)か
らプロセス(1)にデータを転送する動作を示す。
Steps 31 to 34 show an operation of transferring data from the process (1) to the process (2), and steps 35 to 38 show an operation of transferring data from the process (2) to the process (1). Indicates.

【0005】プロセス(1)からプロセス(2)にデー
タを転送するためには、ステップ31でプロセス(1)
が記憶手段にデータaを書き込み、ステップ32でプロ
セス(2)がプロセス(1)の書き込み終了を待つ。ス
テップ33でプロセス(2)がデータaを読み出し、デ
ータaを消去する。ステップ34でプロセス(1)が記
憶手段のデータを消去終了を待ち、終了した時点でプロ
セス(1)からプロセス(2)へのデータ転送を終了す
る。
In order to transfer data from process (1) to process (2), in step 31 process (1)
Writes the data a in the storage means, and in step 32, the process (2) waits for the end of writing of the process (1). In step 33, the process (2) reads the data a and erases the data a. In step 34, the process (1) waits for the end of erasing the data in the storage means, and at the end point, the data transfer from the process (1) to the process (2) is ended.

【0006】プロセス(2)からプロセス(1)にデー
タを転送するためには、ステップ35でプロセス(2)
が記憶手段にデータbを書き込み、ステップ36でプロ
セス(1)がプロセス(2)の書き込み終了を待つ。ス
テップ37でプロセス(1)がデータbを読み出し、デ
ータbを消去する。ステップ38でプロセス(2)が記
憶手段のデータを消去終了を待ち、終了した時点でプロ
セス(2)からプロセス(1)へのデータ転送を終了す
る。
In order to transfer data from process (2) to process (1), step (2)
Writes the data b in the storage means, and in step 36, process (1) waits for the end of writing of process (2). In step 37, the process (1) reads the data b and erases the data b. In step 38, the process (2) waits for the end of erasing the data in the storage means, and when the process is completed, the data transfer from the process (2) to the process (1) is completed.

【0007】[0007]

【発明が解決しようとする課題】上述した従来の複数プ
ロセス間の並列実行用通信制御システムは、プロセス
(1)とプロセス(2)が同時に相手のプロセスにデー
タを送る場合に、データの衝突が起き、先に記憶手段に
データを書き込んだプロセスのデータが失われるという
欠点のがあった。
In the conventional communication control system for parallel execution between a plurality of processes described above, when the process (1) and the process (2) simultaneously send data to the other process, data collision occurs. There was a drawback that the data of the process that happened to write the data to the storage means first is lost.

【0008】[0008]

【課題を解決するための手段】第1の発明の複数プロセ
ス間の並列実行用通信制御システムは、並行実行中のプ
ロセス(1)がデータを書き込み、プロセス(2)がデ
ータを読み出すための記憶手段(1)と記憶手段(4)
と、プロセス(2)がデータを書き込み、プロセス
(1)がデータを読み出すための記憶手段(2)と記憶
手段(3)とを持つ複数プロセス間の並列実行用通信制
御システムにおいて、(A) プロセス(1)が記憶手段
(1)にデータaを書き込むステップと、(B) プロセス
(2)がプロセス(1)の書き込み終了を待つステップ
と、(C) プロセス(2)が記憶手段(1)からデータa
を読み出すステップと、(D) プロセス(2)が記憶手段
(2)に前記データaの読み込み終了を示すデータbを
書き込むステップと、(E) プロセス(1)がプロセス
(2)の書き込み終了を待つステップと、(F) プロセス
(1)がプロセス(2)の読み込み終了を示すデータを
読み出すステップと、(G) プロセス(1)が記憶手段
(1)に、次データを書き込むための準備のために、記
憶手段(1)に空データcを書き込むステップと、(H)
プロセス(2)がプロセス(1)の書き込み準備をした
ため、内容が空になることを検知するステップと、(I)
プロセス(2)が記憶手段(2)に、次データを書き込
むための準備のために、記憶手段(2)に空データdを
書き込むステップと、(J) プロセス(1)がプロセス
(2)の書き込み準備をしたため、内容が空になること
を検知するステップと、(K) プロセス(2)が記憶手段
(3)にデータeを書き込むステップと、(L) プロセス
(1)がプロセス(2)の書き込み終了を待つステップ
と、(M) プロセス(1)が記憶手段(3)からデータe
を読み出すステップと、(N) プロセス(1)が記憶手段
(4)に前記データeの読み込み終了を示すデータfを
書き込むステップと、(O) プロセス(2)がプロセス
(1)の書き込み終了を待つステップと、(P) プロセス
(2)がプロセス(1)の読み込み終了を示すデータf
を読み出すステップと、(Q) プロセス(2)が記憶手段
(3)に、次データを書き込むための準備のために、記
憶手段(3)に空データgを書き込むステップと、(R)
プロセス(2)がプロセス(1)の書き込み準備をした
ため、内容が空になることを検知するステップと、(S)
プロセス(1)が記憶手段(4)に、次データを書き込
むための準備のために、記憶手段(2)に空データhを
書き込むステップと、(T) プロセス(2)がプロセス
(1)の書き込み準備をしたため、内容が空になること
を検知するステップと、を含んで構成される。
In a communication control system for parallel execution between a plurality of processes according to the first aspect of the invention, a memory for a process (1) executing parallel execution to write data and a process (2) to read data. Means (1) and storage means (4)
In a communication control system for parallel execution between a plurality of processes, which has a storage means (2) and a storage means (3) for the process (2) to write data and the process (1) to read the data, (A) The process (1) writes the data a to the storage means (1), (B) the process (2) waits for the end of the writing of the process (1), and (C) the process (2) stores the data a. ) To data a
And (D) the process (2) writes the data b indicating the end of reading of the data a to the storage means (2), and (E) the process (1) ends the writing of the process (2). A step of waiting, a step (F) of reading data indicating that the process (1) has finished reading the process (2), and a step (G) of preparation for writing the next data in the storage means (1). In order to do so, the step of writing the empty data c in the storage means (1), (H)
The process (2) prepares to write the process (1), so that the process detects that the content becomes empty, and (I)
The process (2) writes empty data d to the storage means (2) in preparation for writing the next data to the storage means (2), and (J) the process (1) is a process (2) Since the preparation for writing is made, the step of detecting that the content becomes empty, the step (K) of writing the data e in the storage means (3), and the step (L) of the process (1) of the process (2) Waiting for the end of the writing of the data, and the (M) process (1) stores the data e
, (N) the process (1) writes in the storage means (4) the data f indicating the end of reading of the data e, and (O) the process (2) completes the writing of the process (1). Waiting step, and (f) Data f that indicates that process (2) has finished reading process (1)
And (Q) the process (2) writes empty data g in the storage means (3) in preparation for writing the next data in the storage means (3), and (R)
Since the process (2) prepares to write the process (1), the step of detecting that the content becomes empty, and (S)
The process (1) writes empty data h into the storage means (2) in preparation for writing the next data into the storage means (4), and (T) the process (2) includes the process (1). The step of detecting that the content is empty since the writing is prepared is included.

【0009】第2の発明の複数プロセス間の並列実行用
通信制御システムは、並行実行中のプロセス(1)がデ
ータを書き込み、プロセス(2)がデータを読み出すた
めの記憶手段(1)と、プロセス(2)がデータを書き
込み、プロセス(1)がデータを読み出すための記憶手
段(2)とを持つ複数プロセス間の並列実行用通信制御
システムにおいて、(A) プロセス(1)が記憶手段
(1)にデータaを書き込むステップと、(B) プロセス
(2)がプロセス(1)の書き込み終了を待ちデータa
aを読み出すステップと、(C) プロセス(2)が記憶手
段(1)に空データbbを書き込むステップと、(D) プ
ロセス(1)が記憶手段(1)に空データbbの書き込
み終了を待つステップと、(E) プロセス(2)が記憶手
段(2)にデータbbを書き込むステップと、(F) プロ
セス(1)がプロセス(2)の書き込み終了を待ちデー
タccを読み出すステップと、(G) プロセス(1)が記
憶手段(2)に空データddを書き込むステップと、
(H) プロセス(2)が記憶手段(2)に空データddの
書き込み終了を待つステップと、を含んで構成される。
The communication control system for parallel execution between a plurality of processes according to the second aspect of the present invention comprises a storage means (1) for the process (1) executing the parallel execution to write data and the process (2) to read the data. In the communication control system for parallel execution between a plurality of processes, which has a storage means (2) for the process (2) to write data and the process (1) to read the data, (A) the process (1) is a storage means ( 1) a step of writing the data a, and (B) the process (2) waits for the end of the writing of the process (1).
a reading step a, (C) process (2) writing empty data bb in the storage means (1), and (D) process (1) waiting for completion of writing empty data bb in the storage means (1) Step (E) the process (2) writes the data bb in the storage means (2), (F) the process (1) waits for the end of the writing of the process (2), and reads the data cc. ) The process (1) writes the empty data dd to the storage means (2),
(H) The process (2) waits until the end of writing the empty data dd in the storage means (2).

【0010】[0010]

【実施例】次に、本発明について図面を参照して詳細に
説明する。図1は本発明の第1の実施例を示す模式図で
ある。
The present invention will be described in detail with reference to the drawings. FIG. 1 is a schematic diagram showing a first embodiment of the present invention.

【0011】ステップ1〜ステップ10は、プロセス
(1)からプロセス(2)にデータを転送する動作を示
し、ステップ11〜ステップ20は、プロセス(2)か
らプロセス(1)にデータを転送する動作を示す。記憶
手段(1)〜(4)は2つのプロセスが共有できるハー
ドディスク、フロッピーディスクなどの磁気記憶媒体で
ある。
Steps 1 to 10 show an operation of transferring data from the process (1) to the process (2), and steps 11 to 20 show an operation of transferring data from the process (2) to the process (1). Indicates. The storage means (1) to (4) are magnetic storage media such as a hard disk and a floppy disk that can be shared by two processes.

【0012】ステップ1でプロセス(1)が記憶手段
(1)にデータaを書き込む。ステップ2でプロセス
(2)がプロセス(1)の書き込み終了を待ち、ステッ
プ3でプロセス(2)が記憶手段(1)からデータaを
読み出す。この一連の動作でプロセス(1)からプロセ
ス(2)にデータが渡る。
In step 1, the process (1) writes the data a in the storage means (1). In step 2, the process (2) waits for the end of writing of the process (1), and in step 3, the process (2) reads the data a from the storage means (1). Data is passed from the process (1) to the process (2) by this series of operations.

【0013】次に、ステップ4でプロセス(2)が記憶
手段(2)に前記データaの読み込み終了を示すデータ
bを書き込む。ステップ5でプロセス(1)がプロセス
(2)の書き込み終了を待ち、ステップ6でプロセス
(1)がプロセス(2)の読み込み終了を示すデータを
読み出す。この一連の動作で、プロセス(1)はプロセ
ス(1)からプロセス(2)にデータが無事転送できた
ことを確認できる。
Next, in step 4, the process (2) writes the data b indicating the end of reading the data a in the storage means (2). In step 5, the process (1) waits for the end of writing of the process (2), and in step 6, the process (1) reads data indicating the end of reading of the process (2). Through this series of operations, the process (1) can confirm that the data has been successfully transferred from the process (1) to the process (2).

【0014】次に、ステップ7でプロセス(1)が記憶
手段(1)に、次データを書き込むための準備のため
に、記憶手段(1)に空データcを書き込む。ステップ
8でプロセス(2)がプロセス(1)の書き込み準備を
したため、内容が空になることを検知する。この一連の
動作で記憶手段(1)のデータが消去され、プロセス
(2)はプロセス(1)が通信を終了し、次の通信の準
備をしたことを知る。
Next, in step 7, the process (1) writes empty data c into the storage means (1) in preparation for writing the next data into the storage means (1). In step 8, since the process (2) prepares to write the process (1), it is detected that the content becomes empty. By this series of operations, the data in the storage means (1) is erased, and the process (2) knows that the process (1) has finished the communication and prepared for the next communication.

【0015】次に、ステップ9でプロセス(2)が記憶
手段(2)に、次データを書き込むための準備のため
に、記憶手段(2)に空データdを書き込む。ステップ
10でプロセス(1)がプロセス(2)の書き込み準備
をしたため、内容が空になることを検知する。この一連
の動作で記憶手段(2)のデータも消去され、プロセス
(1)はプロセス(2)が通信を終了し、次の通信の準
備をしたことを知る。
Next, in step 9, the process (2) writes empty data d into the storage means (2) in preparation for writing the next data into the storage means (2). In step 10, since the process (1) prepares to write the process (2), it is detected that the content becomes empty. By this series of operations, the data in the storage means (2) is also erased, and the process (1) knows that the process (2) has finished the communication and prepared for the next communication.

【0016】プロセス(1)はプロセス(2)に通信を
する場合は、上記手順で行う。プロセス(2)はプロセ
ス(1)から通信があるか否かは記憶手段を監視するこ
とで判断する。
When the process (1) communicates with the process (2), the above procedure is used. The process (2) determines whether there is communication from the process (1) by monitoring the storage means.

【0017】ステップ11でプロセス(2)が記憶手段
(3)にデータeを書き込む。ステップ12でプロセス
(1)がプロセス(2)の書き込み終了を待ち、ステッ
プ13でプロセス(1)が記憶手段(3)からデータe
を読み出す。この一連の動作でプロセス(2)からプロ
セス(1)にデータが渡る。
In step 11, the process (2) writes the data e in the storage means (3). In step 12, the process (1) waits for the writing of the process (2) to end, and in step 13, the process (1) stores the data e in the storage means (3).
Read out. Data is passed from the process (2) to the process (1) by this series of operations.

【0018】次に、ステップ14でプロセス(1)が記
憶手段(4)に前記データeの読み込み終了を示すデー
タfを書き込む。ステップ15でプロセス(2)がプロ
セス(1)の書き込み終了を待ち、ステップ16でプロ
セス(2)がプロセス(1)の読み込み終了を示すデー
タを読み出す。この一連の動作で、プロセス(2)はプ
ロセス(2)からプロセス(1)にデータが無事転送で
きたことを確認できる。
Next, in step 14, the process (1) writes the data f indicating the end of reading the data e in the storage means (4). In step 15, the process (2) waits for the end of writing of the process (1), and in step 16, the process (2) reads data indicating the end of reading of the process (1). Through this series of operations, the process (2) can confirm that the data was successfully transferred from the process (2) to the process (1).

【0019】次に、ステップ17でプロセス(2)が記
憶手段(3)に、次データを書き込むための準備のため
に、記憶手段(3)に空データgを書き込む。ステップ
18でプロセス(1)がプロセス(2)の書き込み準備
をしたため、内容が空になることを検知する。この一連
の動作で記憶手段(3)のデータが消去され、プロセス
(1)はプロセス(2)が通信を終了し、次の通信の準
備をしたことを知る。
Next, in step 17, the process (2) writes the empty data g in the storage means (3) in preparation for writing the next data in the storage means (3). In step 18, since the process (1) prepares to write the process (2), it is detected that the content becomes empty. By this series of operations, the data in the storage means (3) is erased, and the process (1) knows that the process (2) has finished the communication and prepared for the next communication.

【0020】次に、ステップ19でプロセス(1)が記
憶手段(4)に、次データを書き込むための準備のため
に、記憶手段(4)に空データhを書き込む。ステップ
20でプロセス(2)がプロセス(1)の書き込み準備
をしたため、内容が空になることを検知する。この一連
の動作で記憶手段(4)のデータも消去され、プロセス
(2)はプロセス(1)が通信を終了し、次の通信の準
備をしたことを知る。
Next, in step 19, the process (1) writes empty data h into the storage means (4) in preparation for writing the next data into the storage means (4). In step 20, since the process (2) prepares to write the process (1), it is detected that the content becomes empty. By this series of operations, the data in the storage means (4) is also erased, and the process (2) knows that the process (1) has finished the communication and prepared for the next communication.

【0021】プロセス(2)はプロセス(1)に通信を
する場合は、上記手順で行う。プロセス(1)はプロセ
ス(2)から通信があるか否かは記憶手段を監視するこ
とで判断する。
When the process (2) communicates with the process (1), the above procedure is used. The process (1) determines whether there is communication from the process (2) by monitoring the storage means.

【0022】図2は、本発明の第2の実施例を示す模式
図である。図2に示す複数プロセス間の並列実行用通信
制御システムは、ステップ101〜ステップ104は、
プロセス(1)からプロセス(2)にデータを転送する
動作を示し、ステップ105〜ステップ108は、プロ
セス(2)からプロセス(1)にデータを転送する動作
を示す。記憶手段(1)、(2)は2つのプロセスが共
有できるハードディスク、フロッピーディスクなどの磁
気記憶媒体である。
FIG. 2 is a schematic diagram showing the second embodiment of the present invention. The communication control system for parallel execution between a plurality of processes shown in FIG.
The operation of transferring data from the process (1) to the process (2) is shown, and steps 105 to 108 show the operation of transferring data from the process (2) to the process (1). The storage means (1) and (2) are magnetic storage media such as a hard disk and a floppy disk that can be shared by two processes.

【0023】ステップ101でプロセス(1)が記憶手
段(1)にデータaを書き込む。ステップ102でプロ
セス(2)がプロセス(1)の書き込み終了を待ち、記
憶手段(1)からデータaaを読み出す。この一連の動
作でプロセス(1)からプロセス(2)にデータが渡
る。
In step 101, the process (1) writes the data a in the storage means (1). In step 102, the process (2) waits for the end of the writing of the process (1) and reads the data aa from the storage unit (1). Data is passed from the process (1) to the process (2) by this series of operations.

【0024】次に、ステップ103でプロセス(2)が
記憶手段(1)にデータaaの読み込み終了を示す空デ
ータbbを書き込む。ステップ104でプロセス(1)
がプロセス(2)の書き込み終了を待つ。この一連の動
作で、プロセス(1)はプロセス(1)からプロセス
(2)にデータが転送できたことを確認できる。
Next, in step 103, the process (2) writes the empty data bb indicating the end of reading the data aa in the storage means (1). Process in step 104 (1)
Waits for the end of writing of process (2). Through this series of operations, the process (1) can confirm that the data can be transferred from the process (1) to the process (2).

【0025】プロセス(1)がプロセス(2)に通信を
する場合は、上記手順で行う。プロセス(2)はプロセ
ス(1)から通信があるか否かは記憶手段を監視するこ
とで判断する。
When the process (1) communicates with the process (2), the above procedure is used. The process (2) determines whether there is communication from the process (1) by monitoring the storage means.

【0026】ステップ105でプロセス(2)が記憶手
段(2)にデータccを書き込む。ステップ106でプ
ロセス(1)がプロセス(2)の書き込み終了を待ち、
記憶手段(2)からデータccを読み出す。この一連の
動作でプロセス(2)からプロセス(1)にデータが渡
る。
In step 105, the process (2) writes the data cc in the storage means (2). In step 106, the process (1) waits for the end of writing of the process (2),
The data cc is read from the storage means (2). Data is passed from the process (2) to the process (1) by this series of operations.

【0027】次に、ステップ107でプロセス(1)が
記憶手段(2)にデータccの読み込み終了を示す空デ
ータddを書き込む。ステップ108でプロセス(2)
がプロセス(1)の書き込み終了を待つ。この一連の動
作で、プロセス(2)はプロセス(2)からプロセス
(1)にデータが転送できたことを確認できる。
Next, in step 107, the process (1) writes the empty data dd indicating the end of reading the data cc into the storage means (2). Process in step 108 (2)
Waits for the end of writing of process (1). Through this series of operations, the process (2) can confirm that the data can be transferred from the process (2) to the process (1).

【0028】プロセス(2)がプロセス(1)に通信を
する場合は、上記手順で行う。プロセス(1)はプロセ
ス(2)から通信があるか否かは記憶手段を監視するこ
とで判断する。
When the process (2) communicates with the process (1), the above procedure is used. The process (1) determines whether there is communication from the process (2) by monitoring the storage means.

【0029】[0029]

【発明の効果】本発明の複数プロセス間の並列実行用通
信制御システムは、プロセス(1)とプロセス(2)が
同時に相手のプロセスにデータを送る場合に、記憶手段
を分けたためデータの衝突はなく、手順を踏んで通信す
るため記憶手段にデータを上書きしデータを破壊するこ
ともなく、さらに相手プロセスにデータが届いたことが
確認できるため、確実なデータ転送ができるという効果
がある。
According to the communication control system for parallel execution between a plurality of processes of the present invention, when the process (1) and the process (2) simultaneously send data to the other process, the storage means are divided, so that data collision does not occur. Since the communication is performed step by step, it is possible to confirm that the data has arrived at the other process without overwriting the data in the storage means and destroying the data, so that there is an effect that reliable data transfer can be performed.

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

【図1】本発明の第1の実施例を示す模式図である。FIG. 1 is a schematic diagram showing a first embodiment of the present invention.

【図2】本発明の第2の実施例を示す模式図である。FIG. 2 is a schematic diagram showing a second embodiment of the present invention.

【図3】従来の一例を示す模式図である。FIG. 3 is a schematic diagram showing a conventional example.

【符号の説明】 21 記憶手段(1) 22 記憶手段(2) 22 記憶手段(3) 23 記憶手段(4) a データ b データ c 空データ d 空データ e データ f データ g 空データ h 空データ[Explanation of Codes] 21 storage means (1) 22 storage means (2) 22 storage means (3) 23 storage means (4) a data b data c empty data d empty data e data f data g empty data h empty data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 並行実行中のプロセス(1)がデータを
書き込み、プロセス(2)がデータを読み出すための記
憶手段(1)と記憶手段(4)と、プロセス(2)がデ
ータを書き込み、プロセス(1)がデータを読み出すた
めの記憶手段(2)と記憶手段(3)とを持つ複数プロ
セス間の並列実行用通信制御システムにおいて、(A) プ
ロセス(1)が記憶手段(1)にデータaを書き込むス
テップと、(B) プロセス(2)がプロセス(1)の書き
込み終了を待つステップと、(C) プロセス(2)が記憶
手段(1)からデータaを読み出すステップと、(D) プ
ロセス(2)が記憶手段(2)に前記データaの読み込
み終了を示すデータbを書き込むステップと、(E) プロ
セス(1)がプロセス(2)の書き込み終了を待つステ
ップと、(F) プロセス(1)がプロセス(2)の読み込
み終了を示すデータを読み出すステップと、(G) プロセ
ス(1)が記憶手段(1)に、次データを書き込むため
の準備のために、記憶手段(1)に空データcを書き込
むステップと、(H) プロセス(2)がプロセス(1)の
書き込み準備をしたため、内容が空になることを検知す
るステップと、(I) プロセス(2)が記憶手段(2)
に、次データを書き込むための準備のために、記憶手段
(2)に空データdを書き込むステップと、(J) プロセ
ス(1)がプロセス(2)の書き込み準備をしたため、
内容が空になることを検知するステップと、(K) プロセ
ス(2)が記憶手段(3)にデータeを書き込むステッ
プと、(L) プロセス(1)がプロセス(2)の書き込み
終了を待つステップと、(M) プロセス(1)が記憶手段
(3)からデータeを読み出すステップと、(N) プロセ
ス(1)が記憶手段(4)に前記データeの読み込み終
了を示すデータfを書き込むステップと、(O) プロセス
(2)がプロセス(1)の書き込み終了を待つステップ
と、(P) プロセス(2)がプロセス(1)の読み込み終
了を示すデータfを読み出すステップと、(Q) プロセス
(2)が記憶手段(3)に、次データを書き込むための
準備のために、記憶手段(3)に空データgを書き込む
ステップと、(R) プロセス(2)がプロセス(1)の書
き込み準備をしたため、内容が空になることを検知する
ステップと、(S) プロセス(1)が記憶手段(4)に、
次データを書き込むための準備のために、記憶手段
(2)に空データhを書き込むステップと、(T) プロセ
ス(2)がプロセス(1)の書き込み準備をしたため、
内容が空になることを検知するステップと、を含むこと
を特徴とする複数プロセス間の並列実行用通信制御シス
テム。
1. A memory means (1) and a memory means (4) for writing data by a process (1) which is executing in parallel and a process (2) for reading data, and a process (2) writing data, In a communication control system for parallel execution between a plurality of processes having a storage means (2) and a storage means (3) for the process (1) to read data, (A) the process (1) is stored in the storage means (1). A step of writing the data a, a step (B) of the process (2) waiting for the end of the writing of the process (1), a step (C) of the process (2) reading the data a from the storage means (1), ) The process (2) writes the data b indicating the end of reading of the data a in the storage means (2), (E) the process (1) waits for the end of writing of the process (2), and (F) Process (1) And (G) the process (1) reads the data indicating the end of the reading of the process (2), and the process (1) stores empty data in the storage unit (1) in preparation for writing the next data. The step of writing c, the step of detecting that the (H) process (2) becomes empty because the process (2) prepared to write the process (1), and (I) the process (2) is a storage means (2).
Then, in order to prepare for writing the next data, the step of writing the empty data d in the storage means (2), and (J) process (1) prepares to write the process (2),
The step of detecting that the content is empty, the step of (K) the process (2) writing the data e in the storage means (3), and the step of (L) the process (1) waiting for the end of the writing of the process (2). Step (M) the process (1) reads the data e from the storage means (3), and (N) the process (1) writes the data f indicating the end of the reading of the data e into the storage means (4). Step (O) Process (2) waits for the end of writing process (1), (P) Process (2) reads data f indicating the end of reading process (1), (Q) The process (2) writes empty data g to the storage means (3) in preparation for writing the next data to the storage means (3), and the (R) process (2) is Prepared for writing, so the contents A step of detecting that become empty, the (S) Process (1) a storage means (4),
In order to prepare for writing the next data, the step of writing the empty data h in the storage means (2) and (T) the process (2) prepares to write the process (1).
A communication control system for parallel execution between a plurality of processes, comprising: detecting that contents are empty.
【請求項2】並行実行中のプロセス(1)がデータを書
き込み、プロセス(2)がデータを読み出すための記憶
手段(1)と、プロセス(2)がデータを書き込み、プ
ロセス(1)がデータを読み出すための記憶手段(2)
とを持つ複数プロセス間の並列実行用通信制御システム
において、(A) プロセス(1)が記憶手段(1)にデー
タaaを書き込むステップと、(B) プロセス(2)がプ
ロセス(1)の書き込み終了を待ちデータaaを読み出
すステップと、(C) プロセス(2)が記憶手段(1)に
空データbbを書き込むステップと、(D) プロセス
(1)が記憶手段(1)に空データbbの書き込み終了
を待つステップと、(E) プロセス(2)が記憶手段
(2)にデータbbを書き込むステップと、(F) プロセ
ス(1)がプロセス(2)の書き込み終了を待ちデータ
ccを読み出すステップと、(G) プロセス(1)が記憶
手段(2)に空データddを書き込むステップと、(H)
プロセス(2)が記憶手段(2)に空データddの書き
込み終了を待つステップと、を含むことを特徴とする複
数プロセス間の並列実行用通信制御システム。
2. A storage means (1) for writing data by a process (1) which is executing in parallel, a process (2) for reading data, and a process (2) for writing data, wherein the process (1) writes data. Means for reading out (2)
In a communication control system for parallel execution between a plurality of processes having and, (A) process (1) writes data aa in storage means (1), and (B) process (2) writes process (1). Waiting for the end to read the data aa, (C) the process (2) writes the empty data bb to the storage means (1), and (D) the process (1) writes the empty data bb to the storage means (1). A step of waiting for the end of writing, a step (E) of the process (2) writing the data bb in the storage means (2), and a step (F) of the process (1) waiting for the end of the writing of the process (2) and reading the data cc. And (G) the process (1) writes the empty data dd to the storage means (2), and (H)
A communication control system for parallel execution between a plurality of processes, characterized in that the process (2) waits for the end of writing the empty data dd in the storage means (2).
JP960592A 1992-01-23 1992-01-23 Communication control system for parallel execution between processes Pending JPH05204670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP960592A JPH05204670A (en) 1992-01-23 1992-01-23 Communication control system for parallel execution between processes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP960592A JPH05204670A (en) 1992-01-23 1992-01-23 Communication control system for parallel execution between processes

Publications (1)

Publication Number Publication Date
JPH05204670A true JPH05204670A (en) 1993-08-13

Family

ID=11724941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP960592A Pending JPH05204670A (en) 1992-01-23 1992-01-23 Communication control system for parallel execution between processes

Country Status (1)

Country Link
JP (1) JPH05204670A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6349964A (en) * 1986-08-20 1988-03-02 Ricoh Co Ltd Handshake controller
JPS649563A (en) * 1987-07-01 1989-01-12 Nec Corp Interprocessor data transfer system
JPH03163654A (en) * 1989-11-21 1991-07-15 Japan Radio Co Ltd Data communication system
JPH03242750A (en) * 1990-02-21 1991-10-29 Fujitsu Ltd Inter-cpu interface system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6349964A (en) * 1986-08-20 1988-03-02 Ricoh Co Ltd Handshake controller
JPS649563A (en) * 1987-07-01 1989-01-12 Nec Corp Interprocessor data transfer system
JPH03163654A (en) * 1989-11-21 1991-07-15 Japan Radio Co Ltd Data communication system
JPH03242750A (en) * 1990-02-21 1991-10-29 Fujitsu Ltd Inter-cpu interface system

Similar Documents

Publication Publication Date Title
EP0147794B1 (en) Error recovery method and apparatus
JPH05204670A (en) Communication control system for parallel execution between processes
JPH01213774A (en) Portable storage medium processor
JPH01118956A (en) Data processor
JPS6050672A (en) Read control system of rotary memory
JPS6332642A (en) Information processor
JPS6346553A (en) File copying method
JP2808761B2 (en) Command control method for data processing system
JP2524620B2 (en) Input / output control method
JPH1027153A (en) Bus transfer device
JPH02244240A (en) Information processing system
JPH0833803B2 (en) Storage controller
JP2004095072A (en) Control method for magnetic tape library and magnetic tape library device
JPH0477916A (en) Magnetic disk device
JPH01251375A (en) Magnetic disk controller
JPH01122073A (en) Control system for magnetic disk device
JPS62200946A (en) Communication control system
JPH07182186A (en) Effective using method for semaphore
JPH04284756A (en) Sequence controller
JPS5914823B2 (en) magnetic card reader device
JPH04174031A (en) File processing system
JPH08263220A (en) Data input and output device
JPH0731639B2 (en) Magnetic disk controller
JPH04163664A (en) Distributed memory type parallel computer system
JPH01205395A (en) Backup information storage system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980616