JPH0553948A - Inter-process communication system - Google Patents
Inter-process communication systemInfo
- Publication number
- JPH0553948A JPH0553948A JP3217672A JP21767291A JPH0553948A JP H0553948 A JPH0553948 A JP H0553948A JP 3217672 A JP3217672 A JP 3217672A JP 21767291 A JP21767291 A JP 21767291A JP H0553948 A JPH0553948 A JP H0553948A
- Authority
- JP
- Japan
- Prior art keywords
- message
- communication line
- task
- received
- reception
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はプロセス間通信方式に関
し,特に通信回線を通して通信を行うシステム上で,受
信を行いたいタスクが通信回線サーバから受信電文の送
信を受けるプロセス間通信方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interprocess communication system, and more particularly to an interprocess communication system in which a task to be received receives a received message from a communication line server in a system which communicates through a communication line.
【0002】[0002]
【従来の技術】従来のプロセス間通信方式では,受信を
行いたいタスクが電文を入れるためのバッファをメモリ
プールから確保し,受信要求のメッセージとして通信回
線サーバに送出するステップと,受信要求の受け取り
後,通信回線サーバが回線から電文を受信すると,受信
を行いたいタスクが送出したメッセージの中に用意され
ているバッファに受信電文を格納し,タスクへ返送する
ステップと,タスクが電文の終了処理を行うステップと
から構成されていた。2. Description of the Related Art In the conventional inter-process communication method, a step for allocating a buffer for a message to be received by a task to receive a message from a memory pool and sending it as a reception request message to a communication line server, and receiving a reception request After that, when the communication line server receives a message from the line, the step of storing the received message in the buffer prepared in the message sent by the task that wants to receive and returning it to the task, and the task ending process of the message And the steps to do.
【0003】[0003]
【発明が解決しようとする課題】この従来のプロセス間
通信方式では,通信回線サーバにおいて複数のタスクか
ら受信要求を受け,それぞれのタスクが異なる構造のバ
ッファを取り扱う場合には,通信回線サーバは受信する
前には宛先のわからない電文の受信のために,使用する
バッファを使い分けなくてはならないという問題点があ
る。In this conventional interprocess communication system, when a communication line server receives a reception request from a plurality of tasks and each task handles a buffer having a different structure, the communication line server receives the request. Before doing so, there is a problem that the buffer to be used must be used properly in order to receive a message whose destination is unknown.
【0004】本発明の目的は上述した問題点を解決し,
受信を行いたいタスクが予め通信回線サーバに受信電文
の通知方法を通知することによって通信回線サーバが自
らメモリプールから取得することを可能とし,電文の送
信元のタスクによって構造の違うバッファを使い分けず
にすむプロセス間通信方式を提供することにある。The object of the present invention is to solve the above-mentioned problems,
The task that wants to receive enables the communication line server to acquire itself from the memory pool by notifying the communication line server in advance of the notification method of the received message, and does not use buffers with different structures depending on the task of the sender of the message. The purpose is to provide an interprocess communication method.
【0005】[0005]
【課題を解決するための手段】本発明のプロセス間通信
方式は,通信回線を通して通信を行うシステムで,通信
回線から電文を受信して通信を制御する汎用タスクであ
る通信回線サーバから,受信を行いたいタスクが受信電
文の通知を受けるプロセス間通信において,受信開始要
求及び受信電文の送信方法を,受信を行いたいタスクが
メッセージ送信によって前記通信回線サーバに通知する
第1の手段と,受信開始要求の受け取り後に前記通信回
線サーバが回線から電文を受信すると,前記通信回線サ
ーバがメモリプールからバッファを確保して電文の先頭
にメッセージヘッダを付加し,電文の終了処理の処理完
了通知方法をメッセージヘッダ内に格納して電文をメッ
セージとしてタスクへ送出する第2の手段と,電文を受
信したタスクが電文の終了処理を行い,前記メッセージ
ヘッダ内に示された方法で前記通信回線サーバに処理完
了を通知する第3の手段とから構成される。The interprocess communication system of the present invention is a system for performing communication through a communication line, and receiving from a communication line server which is a general-purpose task for receiving a message from the communication line and controlling the communication. In the inter-process communication in which the task to be performed receives the notification of the received message, the first means for the task to receive to notify the communication line server by a message transmission of the reception start request and the method of transmitting the received message, and reception start When the communication line server receives a message from the line after receiving the request, the communication line server reserves a buffer from the memory pool, adds a message header to the beginning of the message, and gives a message indicating the processing completion notification method of the message end process. The second means for storing the message in the header and sending the message as a message to the task, and the task that received the message Performs the termination process, and a third means notifying the completion of processing to the communication line server by the indicated in the message header process.
【0006】[0006]
【実施例】次に,本発明について図面を参照して説明す
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.
【0007】図1は,本発明の一実施例のシステム構成
図であり,本発明を適用したコンピュータシステムの一
構成例を示す。FIG. 1 is a system configuration diagram of an embodiment of the present invention, showing an example of the configuration of a computer system to which the present invention is applied.
【0008】このコンピュータシステムは,コンピュー
タ1と通信回線6とで構成され,通信回線6から受信し
た電文をコンピュータ1内で処理する形態のものであ
る。This computer system is composed of a computer 1 and a communication line 6, and has a form in which a message received from the communication line 6 is processed in the computer 1.
【0009】コンピュータ1では,複数のタスク2−1
〜2−nと,通信回線サーバ3とが動作し,またメモリ
プール5が用意されている。In the computer 1, a plurality of tasks 2-1
.. 2-n and the communication line server 3 operate, and a memory pool 5 is prepared.
【0010】タスク2−1〜2−nは,通信回線6より
通信回線サーバ3が受信した電文を処理するタスクであ
る。Tasks 2-1 to 2-n are tasks for processing a telegram received by the communication line server 3 from the communication line 6.
【0011】通信回線サーバ3は,通信回線6からの受
信を制御するタスクであり,受信開始要求したタスクを
登録するタスク登録テーブル4を有し,このタスク登録
テーブル4に受信開始要求をメッセージで送信したタス
クを登録し,電文を受信すると,受信した電文にメッセ
ージヘッダを付加し,付加したメッセージヘッダに終了
処理完了通知方法を格納し,受信開始要求したタスク2
−1〜2−nに電文を送出し,タスク2−1〜2−nか
ら終了処理完了を通知されると次の電文を受信し,タス
ク2−1〜2−nから受信終了要求されると,タスク登
録テーブル4から受信終了要求したタスク2−1〜2−
nを削除する。The communication line server 3 is a task for controlling reception from the communication line 6, and has a task registration table 4 for registering a task for which a reception start request is made. When the transmitted task is registered and a message is received, a message header is added to the received message, the termination processing completion notification method is stored in the added message header, and task 2 that requests reception start
A message is sent to -1 to 2-n, and when the completion processing is notified from the tasks 2-1 to 2-n, the next message is received and a reception completion request is issued from the tasks 2-1 to 2-n. And the tasks 2-1 to 2-for which the reception end request is issued from the task registration table 4.
Delete n.
【0012】図2は,図1のタスク2−1〜2−nの処
理の一例を示す流れ図であり,図3は,図1の通信回線
サーバ3の処理の一例を示す流れ図である。以下,図2
および図3を参照しつつ本実施例の動作を説明する。FIG. 2 is a flow chart showing an example of the processing of the tasks 2-1 to 2-n of FIG. 1, and FIG. 3 is a flow chart showing an example of the processing of the communication line server 3 of FIG. Below, Figure 2
The operation of this embodiment will be described with reference to FIG.
【0013】タスク2−1〜2−nは起動されると,図
2に示すように,まず通信回線サーバに受信開始要求の
メッセージを送信し(T1),通信回線サーバからの電
文送信の受信待ちをする(T2)。When the tasks 2-1 to 2-n are activated, as shown in FIG. 2, first, a message of a reception start request is transmitted to the communication line server (T1), and a message transmission from the communication line server is received. Wait (T2).
【0014】通信回線サーバ3が起動されると,図3に
示すように,まず電文受信用のバッファをメモリプール
5から取得し(S1),受信待ちする(S2)。When the communication line server 3 is started, as shown in FIG. 3, first, a buffer for receiving a message is acquired from the memory pool 5 (S1) and waits for reception (S2).
【0015】受信したものがタスク2−1〜2−nから
の受信開始要求であれば(S3)。テーブル4に受信開
始要求したタスク2−1〜2−nを追加する(S4)。If the received one is a reception start request from the tasks 2-1 to 2-n (S3). The tasks 2-1 to 2-n for which the reception start request is made are added to the table 4 (S4).
【0016】受信したものが通信回線6からの電文であ
れば(S5),受信した電文にメッセージ情報を格納す
るためのメッセージヘッダを付加し(S6),付加した
メッセージヘッダに通信回線サーバ3への終了処理完了
通知方法を格納し(S7),タスク登録テーブル4を参
照して電文を受信してタスク2−1〜2−nに電文をメ
ッセージとして送信する(S8)。次いで,タスク2−
1〜2−nからの終了処理完了待ちする(S9)。If the received message is a message from the communication line 6 (S5), a message header for storing message information is added to the received message (S6), and the added message header is sent to the communication line server 3. The end processing completion notification method is stored (S7), the task registration table 4 is referenced to receive the message, and the message is transmitted to the tasks 2-1 to 2-n as a message (S8). Then, Task 2-
Waiting for completion of termination processing from 1 to 2-n (S9).
【0017】タスク2−1〜2−nは通信回線サーバ3
からのメッセージを受信すると,メッセージ中の電文を
読み出してタスク2−1〜2−n独自の処理を行う(T
3)。Tasks 2-1 to 2-n are communication line server 3
When receiving the message from, the message in the message is read and the processing unique to tasks 2-1 to 2-n is performed (T
3).
【0018】次に,受信したメッセージのメッセージヘ
ッダから通信回線サーバ3への終了処理完了通知方法を
読み出しておき(T4),メッセージのバッファをメモ
リプール5に返却,すなわちメッセージの終了処理を行
い(T5),T4の処理中に読み出した通信回線サーバ
3への終了処理完了通知方法によってタスク2−1〜2
−nは通信回線サーバ3にメッセージの終了処理完了を
通知する(T6)。Next, the method of notifying the end processing completion to the communication line server 3 is read from the message header of the received message (T4), and the message buffer is returned to the memory pool 5, that is, the end processing of the message is performed ( Tasks 2-1 and 2-2 according to the termination processing completion notification method to the communication line server 3 read during the processing of T5) and T4.
-N notifies the communication line server 3 of the completion processing of the message (T6).
【0019】ステップT3の処理中に読み出された電文
の内容が,タスク2−1〜2−nへの最後の電文である
ことを示していれば(T7),通信回線サーバ3に受信
終了要求のメッセージを送信する(T8)。If the content of the message read during the processing of step T3 indicates that it is the last message to the tasks 2-1 to 2-n (T7), the communication line server 3 finishes receiving. A request message is transmitted (T8).
【0020】通信回線サーバ3は,図3に示すように,
ステップS2の処理で受信したものがタスク2−1〜2
−nからの受信終了要求のメッセージだったときには
(S10),受信終了要求したタスク2−1〜2−nを
タスク登録テーブル4から削除する。The communication line server 3, as shown in FIG.
What is received in the processing of step S2 is tasks 2-1 and 2-2.
If the message is a reception end request message from -n (S10), the tasks 2-1 to 2-n for which the reception end request is made are deleted from the task registration table 4.
【0021】ステップS2の処理で受信したものが,タ
スク2−1〜2−nからの受信開始要求のメッセージ,
通信回線6からの電文およびタスク2−1〜2−nから
の受信終了要求のメッセージのいずれでもない場合に
は,通信回線サーバ3は処理を終了する。What is received in the process of step S2 is the message of the reception start request from the tasks 2-1 to 2-n,
If neither the message from the communication line 6 nor the reception end request message from the tasks 2-1 to 2-n, the communication line server 3 ends the process.
【0022】[0022]
【発明の効果】以上説明したように本発明は,プロセス
間通信方式において,受信開始要求及び送信方法を,受
信を行いたいタスクがメッセージ送信によって通知する
第1ステップと,受信開始要求を受けた通信回線サーバ
が回線から電文を受信すると,通信回線サーバがメモリ
プールからバッファを確保し,電文の先頭にメッセージ
ヘッダを付加し,電文の終了処理完了通知方法をメッセ
ージヘッダ内に格納して,電文をメッセージとして受信
開始要求したタスクに送出する第2ステップと,電文を
受信したタスクが電文の終了処理を行い,メッセージヘ
ッダ内に示された方法で通信回線サーバに処理完了を通
知する第3ステップとを備えることにより,受信を行い
たいタスクが予め通信回線サーバに受信電文の通知方法
を通知することによって通信回線サーバが自らメモリプ
ールから取得することが可能となり,電文の送信元のタ
スクによって構造の違うバッファを使い分けずにすむと
いう効果を有する。As described above, according to the present invention, in the interprocess communication system, the reception start request and the transmission method are received by the first step in which the task to be received notifies by the message transmission and the reception start request. When the communication line server receives a message from the line, the communication line server allocates a buffer from the memory pool, adds a message header to the beginning of the message, stores the message end processing completion notification method in the message header, and Is sent as a message to the task that requested to start reception, and the task that received the telegram performs the end processing of the telegram, and the third step that notifies the communication line server of the processing completion by the method indicated in the message header. With the provision of, the task to be received can notify the communication line server in advance of the method of notifying the received message. Communication line server I becomes possible to obtain from its own memory pool, an effect that it is not necessary to distinguish a buffer with different structures by telegram sender task.
【図1】本発明の一実施例のシステム構成図である。FIG. 1 is a system configuration diagram of an embodiment of the present invention.
【図2】図1のタスク2−1〜2−nの処理の一例を示
す流れ図である。2 is a flowchart showing an example of processing of tasks 2-1 to 2-n in FIG.
【図3】図1の通信回線サーバ3の処理の一例を示す流
れ図である。3 is a flowchart showing an example of processing of a communication line server 3 of FIG.
1 コンピュータ 2−1〜2−n タスク 3 通信回線サーバ 4 タスク登録テーブル 5 メモリプール 6 通信回線 1 computer 2-1 to 2-n task 3 communication line server 4 task registration table 5 memory pool 6 communication line
Claims (1)
で,通信回線から電文を受信して通信を制御する汎用タ
スクである通信回線サーバから,受信を行いたいタスク
が受信電文の通知を受けるプロセス間通信において,受
信開始要求及び受信電文の送信方法を,受信を行いたい
タスクがメッセージ送信によって前記通信回線サーバに
通知する第1の手段と,受信開始要求の受け取り後に前
記通信回線サーバが回線から電文を受信すると,前記通
信回線サーバがメモリプールからバッファを確保して電
文の先頭にメッセージヘッダを付加し,電文の終了処理
の処理完了通知方法をメッセージヘッダ内に格納して電
文をメッセージとしてタスクへ送出する第2の手段と,
電文を受信したタスクが電文の終了処理を行い,前記メ
ッセージヘッダ内に示された方法で前記通信回線サーバ
に処理完了を通知する第3の手段とから構成されること
を特徴とするプロセス間通信方式。1. An inter-process communication in which a task to be received is notified of a received message from a communication line server, which is a general-purpose task that receives a message from the communication line and controls communication in a system that communicates through the communication line. In the above, in the first method, the task to receive the reception start request and the transmission method of the reception message notifies the communication line server by sending a message, and the communication line server receives a message from the line after receiving the reception start request. Upon reception, the communication line server reserves a buffer from the memory pool, adds a message header to the beginning of the message, stores the processing completion notification method of message termination processing in the message header, and sends the message as a message to the task. A second means of doing
An interprocess communication, characterized in that the task receiving the message performs a message termination process and third means for notifying the communication line server of the completion of the process by the method indicated in the message header. method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3217672A JPH0553948A (en) | 1991-08-29 | 1991-08-29 | Inter-process communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3217672A JPH0553948A (en) | 1991-08-29 | 1991-08-29 | Inter-process communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0553948A true JPH0553948A (en) | 1993-03-05 |
Family
ID=16707916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3217672A Pending JPH0553948A (en) | 1991-08-29 | 1991-08-29 | Inter-process communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0553948A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5947695A (en) * | 1994-12-09 | 1999-09-07 | Komatsu Ltd. | Control device for a variable displacement hydraulic pump |
-
1991
- 1991-08-29 JP JP3217672A patent/JPH0553948A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5947695A (en) * | 1994-12-09 | 1999-09-07 | Komatsu Ltd. | Control device for a variable displacement hydraulic pump |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH06243070A (en) | Inter-processor communication system | |
JPH07210519A (en) | Data transfer control method and transmission/reception controller | |
KR890008703A (en) | Communication management device workflow control method | |
CN112822300A (en) | RDMA (remote direct memory Access) -based data transmission method and device and electronic equipment | |
JPH0553948A (en) | Inter-process communication system | |
JP2538765B2 (en) | Inter-job information communication method and inter-job information communication method | |
JP2910176B2 (en) | Request reception processing device | |
JPH0381852A (en) | Connection control system | |
JPH0511342B2 (en) | ||
JPH0431454B2 (en) | ||
JP2003303171A (en) | Request processing method during congestion | |
JP2961542B2 (en) | Data processing system | |
JPH0736799A (en) | Program server device | |
JP2001256171A (en) | Data transfer method and module | |
JPS63300349A (en) | Confirmation system for start of data transmission between computers | |
JPH0612357A (en) | Information processing system, information processing method and information processor | |
JPH0291718A (en) | Remote printer processing system | |
JPH02165253A (en) | Terminal control system | |
JPS62299139A (en) | Multiple address communication system | |
JPH05342136A (en) | Resources common use method | |
JPH07162634A (en) | Facsimile communication control system | |
JPH064425A (en) | File transfer request control system | |
JPH05151132A (en) | Inter-remote job communication system | |
JPH0736838A (en) | Shared resource using network device and method for acquiring shared resource occupation right | |
JPS63137347A (en) | Image data communication control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20011106 |