JP2003330739A - Communication response synchronous system and method, and communication response synchronous program - Google Patents

Communication response synchronous system and method, and communication response synchronous program

Info

Publication number
JP2003330739A
JP2003330739A JP2002134916A JP2002134916A JP2003330739A JP 2003330739 A JP2003330739 A JP 2003330739A JP 2002134916 A JP2002134916 A JP 2002134916A JP 2002134916 A JP2002134916 A JP 2002134916A JP 2003330739 A JP2003330739 A JP 2003330739A
Authority
JP
Japan
Prior art keywords
response
message
identifier
transmission
communication
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
JP2002134916A
Other languages
Japanese (ja)
Inventor
Tsutomu Saito
勉 齋藤
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 JP2002134916A priority Critical patent/JP2003330739A/en
Publication of JP2003330739A publication Critical patent/JP2003330739A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To immediately restart a process on standby until response is given after a message is sent to another system when a response is made. <P>SOLUTION: A message transmission means 12 adds a response identifier to a transmission message 24 input from a process and transmits the same to another system 22. A queued process storage means 18 stores a pair of the response identifier and a process identifier corresponding thereto. A message receiving means 14 receives a response message 26 to the transmission message 24 from another system 22 to obtain the response identifier added to the response message. A process control means 16 stops the process when the process having the process identifier outputs the transmission message 24, and the process identifier corresponding to the response identifier obtained by the message receiving means 14 is retrieved by a process storage means on standby 18 to restart the process corresponding to the concerned process identifier. <P>COPYRIGHT: (C)2004,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、メッセージを他シ
ステムへ送ってから応答があるまで待機するプロセスの
制御に用いられる通信応答同期システム等に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication response synchronization system and the like used for controlling a process of sending a message to another system and waiting for a response.

【0002】[0002]

【従来の技術】図5は、従来の応答通信同期システムを
示す機能ブロック図である。以下、この図面に基づき説
明する。
2. Description of the Related Art FIG. 5 is a functional block diagram showing a conventional response communication synchronization system. Hereinafter, description will be given with reference to this drawing.

【0003】従来の応答通信同期システム80は、メッ
セージ送信手段82と、メッセージ受信手段84と、プ
ロセス制御手段86と、応答受信確認手段88と、タイ
マ90と、プロセス記憶手段92とから構成されてい
る。応答通信同期システム80は、メッセージを他シス
テム94へ送ってから応答があるまで待機するプロセス
の制御に用いられ、次のように動作する。
A conventional response communication synchronization system 80 comprises a message transmitting means 82, a message receiving means 84, a process control means 86, a response reception confirming means 88, a timer 90 and a process storing means 92. There is. The response communication synchronization system 80 is used for controlling the process of sending a message to the other system 94 and waiting for a response, and operates as follows.

【0004】メッセージを他システム94へ送ってから
応答があるまで待機するプロセスがある場合、プロセス
制御手段86は制御を応答受信確認手段88に渡す。応
答受信確認手段88は、タイマ90によって一定のサン
プリング時間ごとに、送信に対する応答が到着したか否
かを確認する。応答が到着していなければ、一定のサン
プリング時間ごとに確認をし続ける。応答が到着してい
る場合には、プロセス制御手段86へ制御を戻し、プロ
セスを続行する。
When there is a process waiting for a response from sending a message to another system 94, the process control means 86 passes control to the response reception confirmation means 88. The response reception confirmation means 88 confirms whether or not a response to the transmission has arrived by the timer 90 at a constant sampling time. If no response arrives, continue checking at regular sampling times. If a response has arrived, control is returned to the process control means 86 to continue the process.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、この従
来技術には、次のような問題点があった。
However, this conventional technique has the following problems.

【0006】第1の問題点は、システムに対する負荷が
高いということである。その理由は、応答待ちをしてい
るプロセスが定期的に応答の有無を確認するためであ
る。
The first problem is that the load on the system is high. The reason is that the process waiting for a response periodically confirms whether or not there is a response.

【0007】第2の問題点は、応答到着からプロセスの
再開までにタイムラグが発生してしまうということであ
る。その理由は、応答の有無の確認は一定のサンプリン
グ時間ごとに行われるため、実際にプロセス再開のため
の処理が行われるのは、応答到着後の最初の確認の時で
あり、これにより応答到着から確認までに最大で一回の
サンプリング時間分がかかってしまうからである。
The second problem is that there is a time lag from the arrival of the response to the restart of the process. The reason for this is that the confirmation of the presence or absence of a response is performed at regular sampling times, so the process for restarting the process is actually performed at the time of the first confirmation after the response arrives. This is because it takes a maximum of one sampling time from to confirmation.

【0008】[0008]

【発明の目的】そこで、本発明の目的は、メッセージを
他システムへ送ってから応答があるまで待機するプロセ
スに対して、応答があれば直ちに再開させることができ
る通信応答同期システム等に関する。
SUMMARY OF THE INVENTION Therefore, an object of the present invention relates to a communication response synchronization system or the like which can immediately restart a process waiting for a response after sending a message to another system.

【0009】[0009]

【課題を解決するための手段】本発明に係る通信応答同
期システムは、応答識別子が付加された送信メッセージ
を受け取ると当該応答識別子をそのまま付加した応答メ
ッセージを送り返す他システムに対して、通信装置を介
して通信するものである。そして、本発明に係る通信応
答同期システムは、プロセス識別子を有するプロセスが
送信メッセージを出力すると当該プロセスを停止させる
プロセス停止手段と、プロセスから入力した送信メッセ
ージに応答識別子を付加して他システムへ送信するメッ
セージ送信手段と、応答識別子とこれに対応するプロセ
ス識別子とを対にして記憶する待機プロセス記憶手段
と、送信メッセージに対する応答メッセージを他システ
ムから受信し、当該応答メッセージに付加されている応
答識別子を取得するメッセージ受信手段と、このメッセ
ージ受信手段で取得した応答識別子に対応するプロセス
識別子を待機プロセス記憶手段で検索し、当該プロセス
識別子に対応するプロセスを再開させるプロセス再開手
段と、を備えている。
A communication response synchronization system according to the present invention, when receiving a transmission message to which a response identifier is added, returns a response message to which the response identifier is added as it is, to a communication device. It communicates via. The communication response synchronization system according to the present invention includes process stopping means for stopping a process having a process identifier when a process outputs the transmission message, and a response identifier added to the transmission message input from the process to transmit to another system. Message transmitting means, a standby process storage means for storing a response identifier and a process identifier corresponding thereto as a pair, and a response identifier added to the response message for receiving a response message to the transmitted message from another system. And a process resuming means for retrieving the process identifier corresponding to the response identifier acquired by the message receiving means in the standby process storage means and resuming the process corresponding to the process identifier. .

【0010】あるプロセスが送信メッセージを出力する
と、プロセス停止手段が当該プロセスを停止させ、メッ
セージ送信手段が当該送信メッセージに応答識別子を付
加して他システムへ送信する。そして、待機プロセス記
憶手段は、応答識別子とこれに対応するプロセス識別子
とを対にして記憶する。一方、他システムは、送信メッ
セージを受け取ると応答識別子をそのまま付加した応答
メッセージを送り返す。この応答メッセージはメッセー
ジ受信手段で受信され、応答メッセージに付加されてい
る応答識別子が取得される。すると、プロセス再開手段
は、取得した応答識別子に対応するプロセス識別子を待
機プロセス記憶手段で検索し、当該プロセス識別子に対
応するプロセスを再開させる。したがって、従来技術と
異なり応答メッセージを一定の時間間隔ごとに処理する
のではなく、応答メッセージを受信する度に直ちに処理
するので、メッセージを他システムへ送ってから応答が
あるまで待機するプロセスに対して、応答があれば直ち
に再開させることができる。
When a process outputs a transmission message, the process stopping means stops the process, and the message transmitting means adds a response identifier to the transmission message and transmits it to another system. Then, the standby process storage means stores the response identifier and the process identifier corresponding thereto as a pair. On the other hand, when the other system receives the transmission message, the other system sends back the response message with the response identifier added as it is. This response message is received by the message receiving means, and the response identifier added to the response message is acquired. Then, the process restarting means searches the standby process storage means for a process identifier corresponding to the acquired response identifier, and restarts the process corresponding to the process identifier. Therefore, unlike the prior art, the response message is not processed at regular time intervals, but is processed immediately each time the response message is received. Then, if there is a response, it can be restarted immediately.

【0011】また、プロセスに関する情報を記憶すると
ともにプロセスが送信メッセージを出力するものである
か否かの情報をプロセス停止手段へ提供するプロセス記
憶手段を、更に備えてもよい。更に、本発明に係る通信
応答同期方法及び通信応答同期プログラムは、本発明に
係る通信応答同期システムに用いられるものである。
Further, a process storage means for storing information about the process and providing the process stop means with information as to whether or not the process outputs a transmission message may be further provided. Furthermore, the communication response synchronization method and the communication response synchronization program according to the present invention are used in the communication response synchronization system according to the present invention.

【0012】なお、日経BPデジタル大事典2001−
2002年版によれば、「プロセス」とは次のように定
義されている。プロセスとは、OSの制御単位であり、
一種の動的な概念である。プログラムを実行するとプロ
セスを生成する。つまり、プロセスとは、実行中のプロ
グラムを指し、タスクと同じ意味で使われる。一般的
に、プロセスの数だけCPUを用意することはできない
ため、それぞれのプロセスにCPUが割り当てられてい
るような仮想的な状況を作り、実際にCPUを割り当て
る場合には、プロセスを切り替えて(コンテクスト・ス
イッチ)実行する。
The Nikkei BP Digital Encyclopedia 2001-
According to the 2002 edition, “process” is defined as follows. A process is a control unit of the OS,
It is a kind of dynamic concept. When you run the program, it creates a process. In other words, a process refers to a running program and is used synonymously with a task. Generally, as many CPUs as the number of processes cannot be prepared. Therefore, when a virtual situation in which CPUs are allocated to each process is created and the CPUs are actually allocated, the processes are switched ( Context switch) Execute.

【0013】換言すると、本発明は、他システムと通信
を行うような複数のプロセスを実行するシステムであ
り、メッセージ送信後に他システムからその応答がある
まで待機するようなプロセスが複数ある場合において、
メッセージに対する応答を受ければ、待機中のプロセス
を直ちに実行状態に戻すことができる構成を提供するも
のである。
In other words, the present invention is a system for executing a plurality of processes for communicating with another system, and in the case where there are a plurality of processes for waiting for a response from another system after transmitting a message,
It provides a configuration in which a waiting process can be immediately returned to a running state when a response to a message is received.

【0014】[0014]

【発明の実施の形態】次に、本発明に係る通信応答同期
システムの実施の形態を、図面を用いて説明する。ただ
し、特許請求の範囲における「プロセス停止手段」及び
「プロセス再開手段」は、まとめて「プロセス制御手
段」と言い換えるものとする。
BEST MODE FOR CARRYING OUT THE INVENTION Next, an embodiment of a communication response synchronization system according to the present invention will be described with reference to the drawings. However, the "process stopping means" and "process restarting means" in the claims are collectively referred to as "process control means".

【0015】図1は、本発明に係る通信応答同期システ
ムの一実施形態を示す機能ブロック図である。以下、こ
の図面に基づき説明する。
FIG. 1 is a functional block diagram showing an embodiment of a communication response synchronization system according to the present invention. Hereinafter, description will be given with reference to this drawing.

【0016】本実施形態の通信応答同期システム10
は、応答識別子が付加された送信メッセージ24を受け
取ると当該応答識別子をそのまま付加した応答メッセー
ジ26を送り返す他システム22に対して、通信装置
(図示せず)を介して通信するものであり、メッセージ
送信手段12、メッセージ受信手段14、プロセス制御
手段16、待機プロセス記憶手段18、プロセス記憶手
段20等を備えている。
The communication response synchronization system 10 of this embodiment
Is for communicating via the communication device (not shown) to the other system 22 which returns the response message 26 with the response identifier added as it is when the transmission message 24 with the response identifier is received. The transmission means 12, the message reception means 14, the process control means 16, the standby process storage means 18, the process storage means 20 and the like are provided.

【0017】まず、各手段の基本的な機能について説明
する。メッセージ送信手段12は、プロセスから入力し
た送信メッセージ24に応答識別子を付加して他システ
ム22へ送信する。待機プロセス記憶手段18は、応答
識別子とこれに対応するプロセス識別子とを対にして記
憶する。メッセージ受信手段14は、送信メッセージ2
4に対する応答メッセージ26を他システム22から受
信し、応答メッセージ26に付加されている応答識別子
を取得する。プロセス制御手段16は、プロセス識別子
を有するプロセスが送信メッセージ24を出力すると当
該プロセスを停止させるとともに、メッセージ受信手段
14で取得した応答識別子に対応するプロセス識別子を
待機プロセス記憶手段18で検索し、当該プロセス識別
子に対応するプロセスを再開させる。プロセス記憶手段
20は、プロセスに関する情報を記憶するとともに、プ
ロセスが送信メッセージ24を出力するものであるか否
かの情報をプロセス制御手段16へ提供する。
First, the basic function of each means will be described. The message transmission means 12 adds a response identifier to the transmission message 24 input from the process and transmits it to the other system 22. The standby process storage means 18 stores a response identifier and a process identifier corresponding thereto as a pair. The message receiving means 14 sends the transmitted message 2
4 is received from the other system 22, and the response identifier added to the response message 26 is acquired. When the process having the process identifier outputs the transmission message 24, the process control unit 16 stops the process and searches the standby process storage unit 18 for the process identifier corresponding to the response identifier acquired by the message receiving unit 14, Restart the process corresponding to the process identifier. The process storage unit 20 stores information about the process and provides the process control unit 16 with information about whether or not the process outputs the transmission message 24.

【0018】更に詳しく説明する。通信応答同期システ
ム10及び他システム22は、通信応答同期システム1
0が他システム22へ送る送信メッセージ24と、他シ
ステム22から通信応答同期システム10へ返される応
答メッセージ26とを使って通信する。
A more detailed description will be given. The communication response synchronization system 10 and the other system 22 are the communication response synchronization system 1
0 communicates using the transmission message 24 sent to the other system 22 and the response message 26 returned from the other system 22 to the communication response synchronization system 10.

【0019】通信応答同期システム10は、プログラム
制御により動作するコンピュータによって構成されてい
る。メッセージ送信手段12は、プロセス制御手段16
からメッセージを受け取り、外部の他システム22に通
信回線を通じてメッセージを送信する。メッセージ受信
手段14は、通信回線を通じて外部の他システム22か
ら送られてきたメッセージを受信する。プロセス制御手
段16は、通信応答同期システム10内で実行される複
数のプロセスの実行を制御する。待機プロセス記憶手段
18は、複数のプロセス識別子と応答識別子とを組にし
て保持する。プロセス記憶手段20は、プロセスの実行
手順を記憶する。
The communication response synchronization system 10 is composed of a computer that operates under program control. The message transmission means 12 is a process control means 16
From the external system 22 and sends the message to the external system 22 through the communication line. The message receiving means 14 receives a message sent from another external system 22 through a communication line. The process control means 16 controls the execution of a plurality of processes executed in the communication response synchronization system 10. The standby process storage means 18 holds a plurality of process identifiers and response identifiers as a set. The process storage unit 20 stores the execution procedure of the process.

【0020】通信応答同期システム10で実行するプロ
セスは、プロセス記憶手段20が記憶しており、プロセ
ス制御手段16がその実行を制御する。またプロセスは
通信応答同期システム10内で同時に複数実行されてい
る。各プロセスは通信応答同期システム10内で一対一
に対応するプロセス識別子を持つ。
The process executed by the communication response synchronization system 10 is stored in the process storage means 20, and the process control means 16 controls the execution thereof. Further, a plurality of processes are simultaneously executed in the communication response synchronization system 10. Each process has a process identifier corresponding to each other in the communication response synchronization system 10.

【0021】通信応答同期システム10は、プロセスが
他システム22に対して送信を行なうと、その送信に対
する他システム22からの応答があるまで当該プロセス
の処理を一時停止し、応答メッセージがあった後に処理
を続行する。この場合、プロセス制御手段16は送信す
べきメッセージをメッセージ送信手段12へ渡す。メッ
セージ送信手段12は、渡された送信メッセージを一義
的に識別できるような応答識別子を生成し、その応答識
別子を送信メッセージに付加して送信すると同時に、当
該応答識別子をプロセス制御手段16へ返す。プロセス
制御手段16は、メッセージ送信手段12から返された
応答識別子とその応答識別子を持つメッセージを送信し
ようとしたプロセスのプロセス識別子とをペアにして、
これを待機プロセス記憶手段18に登録し、その上で当
該プロセスの実行を一時停止する。
When a process transmits to another system 22, the communication response synchronization system 10 suspends the process of the process until a response is sent from the other system 22, and after receiving a response message. continue processing. In this case, the process control means 16 passes the message to be sent to the message sending means 12. The message transmission means 12 generates a response identifier that can uniquely identify the delivered transmission message, adds the response identifier to the transmission message and transmits the response message, and at the same time returns the response identifier to the process control means 16. The process control means 16 pairs the response identifier returned from the message transmission means 12 with the process identifier of the process that tried to transmit the message having the response identifier,
This is registered in the standby process storage means 18, and the execution of the relevant process is temporarily stopped.

【0022】他システム22は、受け取った送信メッセ
ージ24に対して応答メッセージ26を返す。このと
き、応答メッーセージ26には送信メッセージ24に付
加されていた応答識別子をそのまま付加する。
The other system 22 returns a response message 26 to the received transmission message 24. At this time, the response identifier added to the transmitted message 24 is added to the response message 26 as it is.

【0023】応答メッセージ26は通信応答同期システ
ム10のメッセージ受信手段14が受信する。メッセー
ジ受信手段14は、応答メッセージ26を受信すると、
その応答メッセージ26に付加されている応答識別子を
プロセス制御手段16に渡す。プロセス制御手段16
は、渡された応答識別子に合致する項目を待機プロセス
記憶手段18から探し、その項目に登録されたプロセス
識別子から対応するプロセスを導出し、そのプロセスの
実行を再開する。
The response message 26 is received by the message receiving means 14 of the communication response synchronization system 10. When the message receiving unit 14 receives the response message 26,
The response identifier added to the response message 26 is passed to the process control means 16. Process control means 16
Searches the waiting process storage means 18 for an item that matches the passed response identifier, derives the corresponding process from the process identifier registered in that item, and resumes execution of that process.

【0024】このようにして、複数の待機中のプロセス
から、適切なプロセスを直ちに実行状態に戻すことを可
能にする。
In this manner, it becomes possible to immediately return the appropriate process to the execution state from a plurality of waiting processes.

【0025】図2は、通信応答同期システム10の送信
時の動作を示すフローチャートである。以下、図1及び
図2に基づき説明する。
FIG. 2 is a flow chart showing the operation of the communication response synchronization system 10 during transmission. Hereinafter, description will be given with reference to FIGS. 1 and 2.

【0026】まず、プロセス制御手段16は、プロセス
記憶手段20に記憶されたプロセス実行手順から次に実
行すべき処理を取得する(ステップA1)。続いて、次
に実行すべき処理が、メッセージ送信後応答のあるまで
待機する処理か否かを判定する(ステップA2)。ここ
で、判定が偽、すなわち次に実行すべき処理が送信後応
答のあるまで待機する処理でない場合は、必要な処理を
行い(ステップA7)、ステップA1に戻る。
First, the process control means 16 acquires the process to be executed next from the process execution procedure stored in the process storage means 20 (step A1). Then, it is determined whether or not the next process to be executed is a process of waiting until a response is received after the message is transmitted (step A2). Here, when the determination is false, that is, when the process to be executed next is not the process of waiting until there is a response after transmission, the necessary process is performed (step A7), and the process returns to step A1.

【0027】一方、判定が真、すなわち次に実行すべき
処理が送信後応答のあるまで待機する処理であった場合
には、送信メッセージをメッセージ送信手段12に通知
する。メッセージ送信手段12では、通知された送信メ
ッセージに対して、通信応答同期システム10内で一義
的となるような応答識別子を生成する(ステップA
3)。続いて、メッセージ送信手段12は、通信装置を
使用して送信メッセージ24を他システム22へ送信し
(ステップA4)、応答識別子をプロセス制御手段16
へ通知する。
On the other hand, when the determination is true, that is, when the next process to be executed is the process of waiting until there is a response after transmission, the transmission message is notified to the message transmission means 12. The message transmission means 12 generates a response identifier that is unique within the communication response synchronization system 10 for the notified transmission message (step A).
3). Subsequently, the message sending means 12 sends the send message 24 to the other system 22 using the communication device (step A4), and the response identifier is used as the process control means 16
Notify to.

【0028】プロセス制御手段16は、メッセージ送信
手段12から通知された応答識別子と、現在実行中のプ
ロセスのプロセス識別子とを組にして、待機プロセス記
憶手段18に登録する(ステップA5)。最後に、プロ
セス制御手段16は、現在実行中のプロセスを一時停止
する(ステップA6)。
The process control means 16 registers the response identifier notified by the message transmission means 12 and the process identifier of the process currently being executed in the standby process storage means 18 (step A5). Finally, the process control means 16 suspends the currently executing process (step A6).

【0029】図3は、通信応答同期システム10の受信
時の動作を示すフローチャートである。以下、図1及び
図3に基づき説明する。
FIG. 3 is a flow chart showing the operation of the communication response synchronization system 10 at the time of reception. Hereinafter, description will be given with reference to FIGS. 1 and 3.

【0030】送信メッセージ24に対して応答メッセー
ジ26があった場合、応答メッセージ26はメッセージ
受信手段14が受信する(ステップB1)。メッセージ受
信手段14は、受信した応答メッセージ26から応答識
別子を取得し(ステップB2)、その応答識別子をプロ
セス制御手段16へ通知する。
When there is a response message 26 to the transmitted message 24, the response message 26 is received by the message receiving means 14 (step B1). The message receiving unit 14 acquires the response identifier from the received response message 26 (step B2) and notifies the process control unit 16 of the response identifier.

【0031】メッセージ受信手段14から応答識別子を
受け取ったプロセス制御手段16は、待機プロセス記憶
手段18を検索し、当該応答識別子と合致する応答識別
子を持つ登録項目を探し、その登録項目からプロセス識
別子を取得する(ステップB3)。
Upon receiving the response identifier from the message receiving means 14, the process control means 16 searches the standby process storage means 18 for a registration item having a response identifier that matches the response identifier, and from the registration item, obtains the process identifier. It is acquired (step B3).

【0032】待機プロセス記憶手段18に当該応答識別
子と合致する登録項目がないため、プロセス識別子が取
得できなかった場合は、そのまま終了する(ステップB
4)。一方、プロセス識別子を取得できた場合、当該登
録項目を待機プロセス記憶手段18から削除し(ステッ
プB5)、取得したプロセス識別子を持つプロセスの処
理を再開する(ステップB6)。
If the process identifier cannot be obtained because there is no registration item in the standby process storage means 18 that matches the response identifier, the process is terminated (step B).
4). On the other hand, when the process identifier can be acquired, the registration item is deleted from the standby process storage unit 18 (step B5), and the process of the process having the acquired process identifier is restarted (step B6).

【0033】図4は、通信応答同期システム10を機能
ごとにではなくハードウェア及びソフトウェアごとにブ
ロック化した構成図である。以下、図1及び図4に基づ
き説明する。
FIG. 4 is a block diagram of the communication response synchronization system 10 which is divided into not the function but the hardware and the software. Hereinafter, description will be given with reference to FIGS. 1 and 4.

【0034】通信応答同期システム10は、通信装置2
8を介して他システム22と接続されるとともに、CP
U30、メモリ(主記憶装置)32、補助記憶装置3
4、通信応答同期システム10で稼動するいくつかのプ
ログラム(処理ルーチン)36等によって構成すること
ができる。メモリ32は、プロセスメモリイメージ32
1、待機プロセステーブル322等を備えている。プロ
グラム36は、プロセス制御ルーチン40、プロセス処
理ルーチン群41、送信処理ルーチン42、受信処理ル
ーチン43等からなる。更に、送信処理ルーチン42
は、応答識別子生成ルーチン421、待機プロセス登録
ルーチン422、送信ルーチン423等からなる。受信
処理ルーチン43は、待機プロセス削除ルーチン43
1、待機プロセス検索ルーチン432、受信ルーチン4
33等からなる。
The communication response synchronization system 10 includes the communication device 2
8 is connected to another system 22 via
U30, memory (main storage device) 32, auxiliary storage device 3
4. The communication response synchronization system 10 can be composed of several programs (processing routines) 36 and the like. The memory 32 is the process memory image 32.
1, a standby process table 322 and the like. The program 36 includes a process control routine 40, a process processing routine group 41, a transmission processing routine 42, a reception processing routine 43, and the like. Further, the transmission processing routine 42
Includes a response identifier generation routine 421, a standby process registration routine 422, a transmission routine 423, and the like. The reception processing routine 43 is the standby process deletion routine 43.
1, standby process search routine 432, reception routine 4
It consists of 33 etc.

【0035】メッセージ送信手段12はCPU30と送
信処理ルーチン42とで実現されている。メッセージ受
信手段14はCPU30と受信処理ルーチン43とで実
現されている。プロセス制御手段16は、CPU30、
プロセス制御ルーチン40、プロセス処理ルーチン群4
1、プロセスメモリイメージ321等から実現されてい
る。待機プロセス記憶手段18は待機プロセステーブル
322で実現されている。プロセス記憶手段20は補助
記憶装置34で実現されている。また、待機プロセステ
ーブル322は、行番号、応答識別子、及びプロセスメ
モリイメージ321へのポインタの三項目からなる行の
集合である。
The message transmission means 12 is realized by the CPU 30 and the transmission processing routine 42. The message receiving means 14 is realized by the CPU 30 and the reception processing routine 43. The process control means 16 includes a CPU 30,
Process control routine 40, process processing routine group 4
1 and the process memory image 321 and the like. The standby process storage unit 18 is realized by the standby process table 322. The process storage unit 20 is realized by the auxiliary storage device 34. Further, the standby process table 322 is a set of lines including three items of a line number, a response identifier, and a pointer to the process memory image 321.

【0036】まず、プロセス制御ルーチン40は、補助
記憶装置34上のプロセス定義を読み込み、処理すべき
作業を決定し、適切な処理ルーチンを呼び出す。このと
き、処理すべき作業が「メッセージ送信後応答待ち」で
あった場合、プロセス制御ルーチン40は送信処理ルー
チン42を呼び出す。
First, the process control routine 40 reads the process definition on the auxiliary storage device 34, determines the work to be processed, and calls an appropriate processing routine. At this time, if the work to be processed is “waiting for response after message transmission”, the process control routine 40 calls the transmission processing routine 42.

【0037】送信処理ルーチン42は、応答識別子生成
ルーチン421によって通信応答同期システム10内で
一義的な応答識別子を生成する。この応答識別子は、例
えば、通信応答同期システム10内で保持するカウンタ
から生成される番号と生成時の時刻とを組み合わせたも
のなどが考えられる。続いて、待機プロセス登録ルーチ
ン422によって、応答識別子生成ルーチン421によ
って生成した応答識別子と現在実行中のプロセスのメモ
リ32上のイメージであるプロセスメモリイメージ32
1へのポインタとを組にした行を、待機プロセステーブ
ル322へ登録する。このとき、行番号は待機プロセス
テーブル322内で一義的となるように自動生成され
る。続いて、送信ルーチン423によって、送信メッセ
ージに応答識別子を付加したのち、通信装置28を用い
て応答識別子が付加された送信メッセージ24を他シス
テム22へ送信する。その後、当該プロセスは処理を停
止する。
The transmission processing routine 42 generates a unique response identifier in the communication response synchronization system 10 by the response identifier generation routine 421. The response identifier may be, for example, a combination of a number generated from a counter held in the communication response synchronization system 10 and the time of generation. Then, by the standby process registration routine 422, the response identifier generated by the response identifier generation routine 421 and the process memory image 32 which is an image on the memory 32 of the process currently being executed.
The row in which the pointer to 1 is paired is registered in the standby process table 322. At this time, the line number is automatically generated so as to be unique in the standby process table 322. Subsequently, the transmission routine 423 adds a response identifier to the transmission message, and then the communication device 28 is used to transmit the transmission message 24 to which the response identifier is added to the other system 22. After that, the process stops processing.

【0038】その後、応答メッセージ26が他システム
22から通信装置28を介して到着したとき、CPU3
0は受信処理ルーチン43を実行する。受信処理ルーチ
ン43は、まず受信ルーチン433によって受信メッセ
ージ26から応答識別子を抽出し、必要な受信処理を行
う。続いて、待機プロセス検索ルーチン432によっ
て、待機プロセステーブル322から応答識別子を含む
行を検索する。そして、その行に含まれる、プロセスメ
モリイメージ321へのポインタを取得する。続いて、
待機プロセス削除ルーチン431によって応答識別子を
含む行を待機プロセステーブル322から削除する。そ
の後、プロセス制御ルーチン40は、待機プロセス検索
ルーチン432で取得したプロセスメモリイメージ32
1に該当するプロセスの再開を指示する。
After that, when the response message 26 arrives from the other system 22 via the communication device 28, the CPU 3
0 executes the reception processing routine 43. The reception processing routine 43 first extracts the response identifier from the reception message 26 by the reception routine 433 and performs necessary reception processing. Then, the waiting process search routine 432 searches the waiting process table 322 for a row including the response identifier. Then, the pointer to the process memory image 321 included in the row is acquired. continue,
The standby process deletion routine 431 deletes the line including the response identifier from the standby process table 322. After that, the process control routine 40 uses the process memory image 32 acquired by the standby process search routine 432.
The restart of the process corresponding to 1 is instructed.

【0039】以上の手順で、メッセージ送信後応答待ち
をするプロセスの停止及び再開が実行可能である。
With the above procedure, the process of waiting for a response after sending a message can be stopped and restarted.

【0040】[0040]

【発明の効果】本発明に係る通信応答同期システムによ
れば、あるプロセスが送信メッセージを出力すると、こ
の送信メッセージに応答識別子を付加して他システムへ
送信し、この他システムからの応答メッセージに付加さ
れている応答識別子を取得し、この応答識別子に対応す
るプロセス識別子を検索し、このプロセス識別子に対応
するプロセスを再開させることにより、従来技術と異な
り応答メッセージを一定の時間ごとに処理するのではな
く、応答メッセージを受信する度に直ちに処理するの
で、メッセージを他システムへ送ってから応答があるま
で待機するプロセスに対して、応答があれば直ちに再開
させることができる。
According to the communication response synchronization system of the present invention, when a process outputs a transmission message, a response identifier is added to the transmission message and the transmission message is transmitted to another system. Unlike the prior art, the response message is processed at regular intervals by acquiring the added response identifier, searching for the process identifier corresponding to this response identifier, and restarting the process corresponding to this process identifier. Instead, it processes each time a reply message is received, so that a process that sends a message to another system and waits for a reply can be restarted immediately if there is a reply.

【0041】換言すると、第1の効果は、通信による応
答を行うプロセスにおいて、応答待ちの処理に要するシ
ステムの負荷を軽くできることにある。その理由は、応
答待ちによるプロセス停止後の再開処理は応答メッセー
ジが届くことにより起動されるため、停止中に定期的に
再開確認を行うなどの処理が不要になるためである。第
2の効果は、通信による応答を行うプロセスにおいて、
応答の到着からプロセスの再開までの時間を短縮できる
ことにある。その理由は、応答到着がプロセス再開のき
っかけとなるため、余分な待ち時間などが不要になるた
めである。
In other words, the first effect is that the load of the system required for response waiting processing can be reduced in the process of responding by communication. The reason is that the process of restarting after the process is stopped by waiting for a response is activated by the arrival of a response message, and therefore, the process of periodically confirming the restart while the process is stopped becomes unnecessary. The second effect is that in the process of responding by communication,
It is possible to shorten the time from the arrival of the response to the restart of the process. The reason for this is that the arrival of the response triggers the process to be restarted, so that an extra waiting time is unnecessary.

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

【図1】本発明に係る通信応答同期システムの一実施形
態を示す機能ブロック図である。
FIG. 1 is a functional block diagram showing an embodiment of a communication response synchronization system according to the present invention.

【図2】図1の通信応答同期システムにおける送信時の
動作を示すフローチャートである。
FIG. 2 is a flowchart showing an operation during transmission in the communication response synchronization system of FIG.

【図3】図1の通信応答同期システムにおける受信時の
動作を示すフローチャートである。
FIG. 3 is a flowchart showing an operation at the time of reception in the communication response synchronization system of FIG.

【図4】図1の通信応答同期システムをハードウェア及
びソフトウェアごとにブロック化した構成図である。
FIG. 4 is a block diagram of the communication response synchronization system of FIG. 1 divided into hardware and software.

【図5】従来の通信応答同期システムを示す機能ブロッ
ク図である。
FIG. 5 is a functional block diagram showing a conventional communication response synchronization system.

【符号の説明】[Explanation of symbols]

10 通信応答同期システム 12 メッセージ送信手段 14 メッセージ受信手段 16 プロセス制御手段(プロセス停止手段及びプロセ
ス再開手段) 18 待機プロセス記憶手段 20 プロセス記憶手段 22 他システム 24 送信メッセージ 26 応答メッセージ
10 Communication Response Synchronization System 12 Message Sending Means 14 Message Receiving Means 16 Process Control Means (Process Stopping Means and Process Resuming Means) 18 Standby Process Storage Means 20 Process Storage Means 22 Other Systems 24 Transmission Messages 26 Response Messages

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 応答識別子が付加された送信メッセージ
を受け取ると当該応答識別子をそのまま付加した応答メ
ッセージを送り返す他システムに対して、通信装置を介
して通信する通信応答同期システムであって、 プロセス識別子を有するプロセスが送信メッセージを出
力すると当該プロセスを停止させるプロセス停止手段
と、 前記プロセスから入力した送信メッセージに応答識別子
を付加して前記他システムへ送信するメッセージ送信手
段と、 前記応答識別子とこれに対応する前記プロセス識別子と
を対にして記憶する待機プロセス記憶手段と、 前記送信メッセージに対する応答メッセージを前記他シ
ステムから受信し、当該応答メッセージに付加されてい
る前記応答識別子を取得するメッセージ受信手段と、 このメッセージ受信手段で取得した応答識別子に対応す
るプロセス識別子を前記待機プロセス記憶手段で検索
し、当該プロセス識別子に対応する前記プロセスを再開
させるプロセス再開手段と、 を備えた通信応答同期システム。
1. A communication response synchronization system that communicates via a communication device to another system that returns a response message to which a response identifier is added when it receives a transmission message to which a response identifier is added, the process identifier being a process identifier. Process stop means for stopping a process when a process having a message output a transmission message, message transmission means for adding a response identifier to the transmission message input from the process and transmitting the message to the other system, the response identifier and this Standby process storage means for storing the corresponding process identifier as a pair; message receiving means for receiving a response message to the transmission message from the other system and acquiring the response identifier added to the response message. , With this message receiving means The process identifier corresponding to the obtained the response identifier searched the waiting process storage section, communication response synchronization system and a process resuming means for resuming the process corresponding to the process identifier.
【請求項2】 前記プロセスに関する情報を記憶すると
ともに前記プロセスが送信メッセージを出力するもので
あるか否かの情報を前記プロセス停止手段へ提供するプ
ロセス記憶手段を、更に備えた請求項1記載の通信応答
同期システム。
2. The process storage means according to claim 1, further comprising process storage means for storing information about the process and for providing the process stopping means with information as to whether or not the process outputs a transmission message. Communication response synchronization system.
【請求項3】 応答識別子が付加された送信メッセージ
を受け取ると当該応答識別子をそのまま付加した応答メ
ッセージを送り返す他システムに対して、通信装置を介
して通信する通信応答同期方法であって、 プロセス識別子を有するプロセスが送信メッセージを出
力すると当該プロセスを停止させるプロセス停止ステッ
プと、 前記プロセスから入力した送信メッセージに応答識別子
を付加して前記他システムへ送信するメッセージ送信ス
テップと、 前記応答識別子とこれに対応する前記プロセス識別子と
を対にして記憶することによりデータベースを作成する
待機プロセス記憶ステップと、 前記送信メッセージに対する応答メッセージを前記他シ
ステムから受信し、当該応答メッセージに付加されてい
る前記応答識別子を取得するメッセージ受信ステップ
と、 このメッセージ受信ステップで取得した応答識別子に対
応するプロセス識別子を前記データベースで検索し、当
該プロセス識別子に対応する前記プロセスを再開させる
プロセス再開ステップと、 を備えた通信応答同期方法。
3. A communication response synchronization method for communicating via a communication device to another system that returns a response message to which a response identifier has been added when receiving a transmission message to which a response identifier has been added. When a process having a message outputs a transmission message, a process stopping step of stopping the process, a message transmitting step of adding a response identifier to the transmission message input from the process and transmitting the message to the other system, the response identifier and the A standby process storing step of creating a database by storing the corresponding process identifier in a pair, and a response message to the transmission message received from the other system, and the response identifier added to the response message. Messe to get Di receiving step, to find the process identifier the database corresponding to the response identifier acquired in this message receiving step, the method communication response synchronized with the process resumes step of resuming the process corresponding to the process identifier, the.
【請求項4】 前記プロセスが送信メッセージを出力す
るものであるか否かの情報を前記プロセス停止ステップ
へ提供するプロセス記憶ステップを、更に備えた請求項
3記載の通信応答同期方法。
4. The communication response synchronization method according to claim 3, further comprising a process storing step of providing information to the process stopping step whether the process outputs a transmission message.
【請求項5】 応答識別子が付加された送信メッセージ
を受け取ると当該応答識別子をそのまま付加した応答メ
ッセージを送り返す他システムに対して、通信装置を介
して通信する通信応答同期プログラムであって、 プロセス識別子を有するプロセスが送信メッセージを出
力すると当該プロセスを停止させるプロセス停止ステッ
プと、 前記プロセスから入力した送信メッセージに応答識別子
を付加して前記他システムへ送信するメッセージ送信ス
テップと、 前記応答識別子とこれに対応する前記プロセス識別子と
を対にして記憶することによりデータベースを作成する
待機プロセス記憶ステップと、 前記送信メッセージに対する応答メッセージを前記他シ
ステムから受信し、当該応答メッセージに付加されてい
る前記応答識別子を取得するメッセージ受信ステップ
と、 このメッセージ受信ステップで取得した応答識別子に対
応するプロセス識別子を前記データベースで検索し、当
該プロセス識別子に対応する前記プロセスを再開させる
プロセス再開ステップと、 をコンピュータに実行させるための通信応答同期プログ
ラム。
5. A communication response synchronization program for communicating via a communication device to another system that returns a response message with the response identifier added as it is when a transmission message with the response identifier is received, the process identifier being a process identifier. When a process having a message outputs a transmission message, a process stopping step of stopping the process, a message transmitting step of adding a response identifier to the transmission message input from the process and transmitting the message to the other system, the response identifier and the A standby process storing step of creating a database by storing the corresponding process identifier in a pair, and a response message to the transmission message received from the other system, and the response identifier added to the response message. get Communication for causing a computer to execute a message receiving step, a process resuming step of retrieving a process identifier corresponding to the response identifier obtained in this message receiving step in the database, and resuming the process corresponding to the process identifier Response synchronization program.
【請求項6】 前記プロセスが送信メッセージを出力す
るものであるか否かの情報を前記プロセス停止ステップ
へ提供するプロセス記憶ステップを、更に備えた請求項
5記載の通信応答同期プログラム。
6. The communication response synchronization program according to claim 5, further comprising a process storing step of providing information to the process stopping step whether the process outputs a transmission message.
JP2002134916A 2002-05-10 2002-05-10 Communication response synchronous system and method, and communication response synchronous program Pending JP2003330739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002134916A JP2003330739A (en) 2002-05-10 2002-05-10 Communication response synchronous system and method, and communication response synchronous program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002134916A JP2003330739A (en) 2002-05-10 2002-05-10 Communication response synchronous system and method, and communication response synchronous program

Publications (1)

Publication Number Publication Date
JP2003330739A true JP2003330739A (en) 2003-11-21

Family

ID=29697378

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002134916A Pending JP2003330739A (en) 2002-05-10 2002-05-10 Communication response synchronous system and method, and communication response synchronous program

Country Status (1)

Country Link
JP (1) JP2003330739A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006134816A1 (en) * 2005-06-13 2006-12-21 Olympus Corporation Distributed processing system, distributed processing method, and program
JP2008310449A (en) * 2007-06-12 2008-12-25 Canon Inc Simulation synchronizer and control method thereof
JP2010108095A (en) * 2008-10-28 2010-05-13 Jfe Steel Corp Batch job execution apparatus, batch job execution method, and batch job execution program
JP2013140447A (en) * 2011-12-28 2013-07-18 Fujitsu Ltd Information processing apparatus and method of controlling information processing apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006134816A1 (en) * 2005-06-13 2006-12-21 Olympus Corporation Distributed processing system, distributed processing method, and program
US7962720B2 (en) 2005-06-13 2011-06-14 Olympus Corporation Distributed processing system, distributed processing method and computer program
JP2008310449A (en) * 2007-06-12 2008-12-25 Canon Inc Simulation synchronizer and control method thereof
JP2010108095A (en) * 2008-10-28 2010-05-13 Jfe Steel Corp Batch job execution apparatus, batch job execution method, and batch job execution program
JP2013140447A (en) * 2011-12-28 2013-07-18 Fujitsu Ltd Information processing apparatus and method of controlling information processing apparatus
KR101472186B1 (en) * 2011-12-28 2014-12-12 후지쯔 가부시끼가이샤 Information processing apparatus and method of controlling information processing apparatus
US9652299B2 (en) 2011-12-28 2017-05-16 Fujitsu Limited Controlling the state of a process between a running and a stopped state by comparing identification information sent prior to execution

Similar Documents

Publication Publication Date Title
JP3490473B2 (en) Communication system between processors
CN105373563B (en) Database switching method and device
JP2003330739A (en) Communication response synchronous system and method, and communication response synchronous program
US5754856A (en) MVS/ESA message transport system using the XCF coupling facility
JP2000502202A (en) Instruction Processor Job Scheduling
JP2001051834A (en) Method and system for dynamic application start on workflow system
US7320044B1 (en) System, method, and computer program product for interrupt scheduling in processing communication
JP2002149439A (en) Method for switching server and server device in distributed processing system
US20090019259A1 (en) Multiprocessing method and multiprocessor system
JP5449471B2 (en) Method for synchronous processing of update processing for shared data, data sharing system, and data sharing program
JP2770797B2 (en) Page Descriptor Update Control Method for Multiprocessor System
JP2000029850A (en) Task controlling method using inter-processor communication of operating system
US10025750B2 (en) Transmission device, controller, and system comprising transmission device and controller
JP2004038511A (en) Multi-processor system, load distribution control method for the same, and program for the same system
JP2002251290A (en) Job replacing method, job replacing program, job replacing system and recording medium
CN117171239A (en) Data transmission method and device
JPS6385855A (en) Job step transfer control system in job transfer system
JPH0235520A (en) Address control system for service offerring program
JPH01292559A (en) Message processing system and data transfer system for parallel computers
JPH02118841A (en) Input queue control system
JP2007026008A (en) Task integration system
JPH02284257A (en) Inter-processor communication system
JP2010257335A (en) Computer system
JPH03148747A (en) Inter-processor communication system
JPH02288937A (en) Inter-processor communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040426

A977 Report on retrieval

Effective date: 20060712

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060816

A02 Decision of refusal

Effective date: 20061212

Free format text: JAPANESE INTERMEDIATE CODE: A02