Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2611739B2 - Task communication system - Google Patents
[go: Go Back, main page]

JP2611739B2 - Task communication system - Google Patents

Task communication system

Info

Publication number
JP2611739B2
JP2611739B2 JP6088222A JP8822294A JP2611739B2 JP 2611739 B2 JP2611739 B2 JP 2611739B2 JP 6088222 A JP6088222 A JP 6088222A JP 8822294 A JP8822294 A JP 8822294A JP 2611739 B2 JP2611739 B2 JP 2611739B2
Authority
JP
Japan
Prior art keywords
task
message
queue
processing
source
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.)
Expired - Fee Related
Application number
JP6088222A
Other languages
Japanese (ja)
Other versions
JPH07295839A (en
Inventor
夕佳 田中
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 JP6088222A priority Critical patent/JP2611739B2/en
Publication of JPH07295839A publication Critical patent/JPH07295839A/en
Application granted granted Critical
Publication of JP2611739B2 publication Critical patent/JP2611739B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、通信回線を介さずに同
一システム上で実行され、かつ、フロー制御を必要とす
るタスク間通信システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an inter-task communication system which is executed on the same system without using a communication line and requires flow control.

【0002】[0002]

【従来の技術】従来のタスク間通信システムにおいて、
フロー制御を行う場合、受信する側のタスクが制御を行
っていた。
2. Description of the Related Art In a conventional inter-task communication system,
When performing flow control, the task on the receiving side performed control.

【0003】例えば、図6に示すように、タスクA60
1は受信側のタスクであり、タスクB602およびタス
クC603は送信側のタスクである。受信用キュー60
4は、前記タスクAに備えられ、前記タスクAに送信さ
れたメッセージを受信する場合に使用される。タスクB
用キュー605は、前記受信用キュー604につながっ
ているメッセージのうち前記タスクBから送信されもの
を処理する場合に使用され、タスクC用キュー606
は、前記受信用キュー604につながっているメッセー
ジのうち前記タスクCから送信されものを処理する場合
に使用される。
[0003] For example, as shown in FIG.
1 is a task on the receiving side, and task B 602 and task C 603 are tasks on the transmitting side. Receive queue 60
Reference numeral 4 is provided in the task A and is used when receiving a message transmitted to the task A. Task B
The task queue 605 is used when processing messages transmitted from the task B among the messages connected to the reception queue 604, and the task C queue 606
Is used for processing messages transmitted from the task C among the messages connected to the reception queue 604.

【0004】次に、この従来のタスク間通信システムの
動作について図6を参照して説明する。
Next, the operation of this conventional inter-task communication system will be described with reference to FIG.

【0005】まず、タスクB602からタスクA601
に対してメッセージの送信を行う場合、まず、タスクA
601がタスクB602に対し送信開始要求を送信し
て、前記タスクB602に送信を促す。このタスクB6
02は、前記タスクA601から送信された送信開始要
求を受信すると、このタスクA601に対して、メッセ
ージを送信する。前記タスクA601は前記タスクB6
02からメッセージを受信すると、このタスクA601
内の受信用キューにこの受信したメッセージをつないで
おく。ここで、この受信用キュー604には、他のタス
ク、例えばタスクC603から送信されたメッセージ等
もつながっている。ここで、前記タスクB602から送
信されたメッセージを処理する場合に、さらに、前記メ
ッセージをタスクB用キュー605につなぎ替えて、次
に、そのメッセージをFIFOで取り出して処理を実行
する。
First, task B 602 to task A 601
To send a message to
601 transmits a transmission start request to the task B 602 to urge the task B 602 to transmit. This task B6
02, upon receiving the transmission start request transmitted from the task A601, transmits a message to the task A601. The task A601 is the task B6
02, the task A 601
This received message is linked to the receiving queue in. Here, the reception queue 604 is also connected to another task, for example, a message transmitted from the task C603. Here, when processing the message transmitted from the task B 602, the message is further connected to the task B queue 605, and then the message is taken out by the FIFO and executed.

【0006】ここで、前記タスクB用キュー605にメ
ッセージがたまり過ぎた場合、前記タスクA601は前
記タスクB602に対してメッセージの送信を一時中断
するように要求する。このタスクB602は、前記タス
クA601からの送信中断要求を受信すると、メッセー
ジの送信を一時中断する。
[0006] Here, when the messages are excessively accumulated in the task B queue 605, the task A 601 requests the task B 602 to temporarily suspend the message transmission. Upon receiving the transmission suspension request from the task A 601, the task B 602 suspends the transmission of the message.

【0007】次に、前記タスクB用キュー605にたま
っていたメッセージがある程度処理されると、前記タス
クA601は再び、前記タスクB602に対して送信再
開要求を送信する。前記タスクB602は、前記タスク
A601から送信された送信再開要求を受信するとメッ
セージの送信を再開する。
Next, when the messages accumulated in the task B queue 605 are processed to some extent, the task A 601 transmits a transmission restart request to the task B 602 again. When the task B 602 receives the transmission restart request transmitted from the task A 601, the task B 602 restarts message transmission.

【0008】[0008]

【発明が解決しようとする課題】この従来のタスク間通
信におけるフロー制御では、メッセージの送信先のタス
クが、送信元のタスクに対して送信要求を行い、送信元
のタスクはその送信要求を受信した後、メッセージの送
信を行うために、メッセージ送信に対する負荷が高くな
っていた。
In the flow control in the conventional inter-task communication, a task of a message transmission destination issues a transmission request to a task of a transmission source, and the task of the transmission source receives the transmission request. After that, the load on the message transmission has increased due to the message transmission.

【0009】また、送信元のタスクは送信先のタスクか
らの送信要求を受信しなければ、メッセージを送信する
ことができないために、フロー制御を行うのに非常に時
間がかかっていた。
[0009] Further, since the source task cannot transmit a message unless it receives a transmission request from the destination task, it takes a very long time to perform flow control.

【0010】さらに、OSIのプロトコルスタック等の
実装の際に層ごとにタスク分割を行う場合に、メッセー
ジを複数のタスク間を中継して送信する必要があるが、
この従来のタスク間通信方法では実行できないという問
題点があった。
Further, when task division is performed for each layer when the OSI protocol stack or the like is implemented, it is necessary to relay a message between a plurality of tasks and transmit the message.
There has been a problem that this conventional task communication method cannot be executed.

【0011】[0011]

【課題を解決するための手段】上記問題点を解決するた
めに、本発明のタスク間通信システムは、複数のタスク
間でメッセージの送受信を行うタスク間通信システムに
おいて、送信元タスクは、予め確保されるメッセージバ
ッファにつなげられ、送信先タスクにメッセージを送信
するフリーキューと、前記送信先タスクにおいて前記送
信元タスクから送信されたメッセージの処理が遅れてい
るかどうかを判定する判定手段とを備え、また、前記送
信先タスクは、前記フリーキューから送信されたメッセ
ージを受信する通常キューと、前記判定手段において処
理が遅れていると判定された場合に、判定した前記送信
元タスクから送信されたメッセージを受信する優先キュ
ーと、前記通常キューまたは前記優先キューにおいて受
信したメッセージを処理する処理手段とを有する。
In order to solve the above problems, an inter-task communication system according to the present invention is an inter-task communication system for transmitting and receiving a message between a plurality of tasks. A free queue that is connected to a message buffer to be transmitted to transmit a message to a destination task, and a determination unit that determines whether processing of a message transmitted from the source task is delayed in the destination task, The destination task is a normal queue for receiving a message transmitted from the free queue, and a message transmitted from the determined source task when the determination unit determines that processing is delayed. And the message received in the normal queue or the priority queue And a processing unit for processing.

【0012】また、前記送信元タスクから前記送信先タ
スクにメッセージを送信する際に、中継用のタスク(中
継タスク)を介して送信する場合、この中継タスクは、
前記フリーキューから送信されたメッセージを受信する
第二の通常キューと、前記判定手段において処理が遅れ
ていると判定された場合に、判定した前記送信元タスク
から送信されたメッセージを受信する第二の優先キュー
と、前記第二の通常キューまたは前記第二の優先キュー
において受信したメッセージを処理する第二の処理手段
と、前記判定手段の判定結果を中継する中継フラグとを
備える。
In the case where a message is transmitted from the source task to the destination task via a relay task (relay task), the relay task includes:
A second normal queue for receiving a message transmitted from the free queue, and a second for receiving a message transmitted from the determined source task when the determination unit determines that processing is delayed. , A second processing unit that processes a message received in the second normal queue or the second priority queue, and a relay flag that relays a determination result of the determination unit.

【0013】[0013]

【実施例】次に、本発明のタスク間通信システムの第一
の実施例について図面を参照して詳細に説明する。
Next, a first embodiment of the inter-task communication system of the present invention will be described in detail with reference to the drawings.

【0014】図1は、第一の実施例のタスク間通信シス
テムの構成を示すブロック図であり、送信元タスク10
1は、コンピュータ100上で動作しメッセージを送信
する。送信先タスク106は前記コンピュータ100上
で動作しメッセージを受信するとともにその処理を行
う。各タスクは互いにメッセージの送受信によって同期
をとりながら各々の処理を行っている。通常キュー10
2および107は、各タスクごとに備えられ、メッセー
ジを受信する際に使用される。優先キュー103および
108は、各タスクごとに備えられ、前記通常キュー1
02または107につなげられるメッセージよりも優先
度の高いメッセージを受信する際に使用される。処理部
111は、送信されたメッセージを処理する。フリーキ
ュー104は、前記送信元タスク101に備えられ、前
記コンピュータ100が管理するメモリプール109に
確保された本システムにおいて使用される最大数のメッ
セージバッファ110がつながれる。フローフラグ10
5は、前記送信元タスク101に備えられ、前記フリー
キュー104に残っている未使用の前記メッセージバッ
ファ110の数にしたがって、前記送信先タスク106
における送信されたメッセージの処理が遅れているかど
うかを判断する。つまり、このフローフラグ105がO
Nであれば前記送信先タスク106における処理が遅れ
ていることを示す。
FIG. 1 is a block diagram showing a configuration of a communication system between tasks according to a first embodiment.
1 operates on the computer 100 and transmits a message. The destination task 106 operates on the computer 100 to receive a message and perform the processing. Each task performs each process while synchronizing with each other by transmitting and receiving messages. Normal queue 10
2 and 107 are provided for each task and used when receiving a message. The priority queues 103 and 108 are provided for each task.
It is used when receiving a message having a higher priority than a message connected to 02 or 107. The processing unit 111 processes the transmitted message. The free queue 104 is provided in the transmission source task 101, and is connected to the maximum number of message buffers 110 used in the present system and secured in the memory pool 109 managed by the computer 100. Flow flag 10
5 is provided in the source task 101, and the destination task 106 is provided in accordance with the number of unused message buffers 110 remaining in the free queue 104.
To determine if the processing of the sent message in is delayed. That is, the flow flag 105
If N, it indicates that the processing in the destination task 106 is delayed.

【0015】次に、本実施例の動作について図1、図3
および図5を参照して詳細に説明する。
Next, the operation of this embodiment will be described with reference to FIGS.
This will be described in detail with reference to FIG.

【0016】まず、図3のフローチャートを参照して送
信元タスクの動作について説明する。
First, the operation of the source task will be described with reference to the flowchart of FIG.

【0017】送信元タスク101は、本システムで使用
される最大数の送信用メッセージバッファ110をシス
テム管理下のメモリプール109に予め確保し、そのメ
ッセージバッファ110をフリーキュー104につない
でおく(S301)。さらに、フローフラグ105をO
FFにセットしておく。
The transmission source task 101 secures the maximum number of transmission message buffers 110 used in the present system in the memory pool 109 managed by the system in advance, and connects the message buffers 110 to the free queue 104 (S301). ). Further, the flow flag 105 is set to O
Set to FF.

【0018】次に、メッセージを送信する際に、前記送
信元タスク101は、前記フリーキュー104につなが
れているメッセージをはずし(S302)、送信先タス
ク106に備えられる通常キュー107につなげる(S
303)。ここで、この通常キュー107には、前記送
信元タスク101以外のタスクから送信されたメッセー
ジもつながれる。
Next, when transmitting a message, the source task 101 removes the message connected to the free queue 104 (S302) and connects it to the normal queue 107 provided in the destination task 106 (S302).
303). Here, messages transmitted from tasks other than the source task 101 are also connected to the normal queue 107.

【0019】さらに、前記送信元タスク101は、前記
フローフラグ105をチェックし(S304)、このフ
ローフラグ105がOFFであれば、さらに、前記フリ
ーキュー104が所定量(例えば全体の3/4)以上使
用されているかどうかをチェックし(S306)、使用
されていれば前記フローフラグ105をONにする(S
307)。また、前記S4に手順において、前記フロー
フラグ105がONであった場合には、前記通常キュー
107につながれているメッセージを先頭から検索し、
最初に発見された前記送信元タスク101から送信され
たメッセージを1つだけ優先キュー108につなぎかえ
る(S305)。
Further, the source task 101 checks the flow flag 105 (S 304). If the flow flag 105 is OFF, the free queue 104 further has a predetermined amount (for example, / of the total). It is checked whether or not it is used (S306), and if it is used, the flow flag 105 is turned ON (S306).
307). In the step S4, if the flow flag 105 is ON, a message connected to the normal queue 107 is searched from the top,
Only one message transmitted from the transmission source task 101 found first is reconnected to the priority queue 108 (S305).

【0020】次に、図5のフローチャートを参照して送
信先タスクの動作について説明する。
Next, the operation of the destination task will be described with reference to the flowchart of FIG.

【0021】前記送信先タスク106は、前記送信元タ
スク101から送信されたメッセージを受信した場合
に、まず、前記優先キュー108にメッセージがあるか
どうかをチェックし(S501)、前記メッセージがな
ければ前記通常キュー107の先頭にあるメッセージを
取る(S503)。また、前記優先キュー108にメッ
セージがある場合はその優先キュー108の先頭にある
メッセージを取る(S502)。
When receiving the message transmitted from the source task 101, the destination task 106 first checks whether there is a message in the priority queue 108 (S501). The message at the head of the normal queue 107 is taken (S503). If there is a message in the priority queue 108, the message at the head of the priority queue 108 is taken (S502).

【0022】次に、前記通常キュー107または優先キ
ュー108から取ったメッセージは処理部111におい
て処理が行われ(S504)、その後、処理されたメッ
セージを前記送信元タスク101に備えられた前記フリ
ーキュー104に返す(S505)。
Next, the message received from the normal queue 107 or the priority queue 108 is processed by the processing unit 111 (S504), and then the processed message is transferred to the free queue provided in the source task 101. It returns to S104 (S505).

【0023】さらに、前記フリーキュー104につなが
れたメッセージの数をチェックし(S506)、この数
が所定量(例えば全体の1/2)以上であれば前記送信
元タスク101に備えられる前記フローフラグ105を
ONにする(S507)。
Further, the number of messages connected to the free queue 104 is checked (S506). If this number is equal to or more than a predetermined amount (for example, 全体 of the total), the flow flag provided in the source task 101 is checked. 105 is turned ON (S507).

【0024】次に、本発明の第二の実施例について図
2、図3、図4および図5を参照して詳細に説明する。
Next, a second embodiment of the present invention will be described in detail with reference to FIGS. 2, 3, 4 and 5.

【0025】図2は、第二の実施例の構成を示すブロッ
ク図である。また、本実施例の構成の大部分は前述の第
一の実施例と同様の構成であるので、重複部分の説明は
省略する。
FIG. 2 is a block diagram showing the configuration of the second embodiment. Further, most of the configuration of the present embodiment has the same configuration as that of the above-described first embodiment, and the description of the overlapping portions will be omitted.

【0026】中継タスク201は、コンピュータ100
上で動作し、送信元タスク101から送信されたメッセ
ージを受信するとともに、送信先タスク106に送信す
る。通常キュー202および優先キュー203は前記中
継タスク201に備えられ、前記各タスク101、10
6に備えられているものと同様の機能を有する。処理部
205は、前記通常キュー202または前記優先キュー
203に綱下られためっせーじを処理する。中継フラグ
204は、前記中継タスク201に備えられ、送信元タ
スク101に備えられるフローフラグ105の状態を中
継する。
The relay task 201 is executed by the computer 100
It operates on the above and receives the message transmitted from the transmission source task 101 and transmits it to the transmission destination task 106. The normal queue 202 and the priority queue 203 are provided in the relay task 201, and the tasks 101, 10
6 has the same function as that provided in the sixth embodiment. The processing unit 205 processes a mess sent by the normal queue 202 or the priority queue 203. The relay flag 204 is provided in the relay task 201, and relays the state of the flow flag 105 provided in the source task 101.

【0027】次に、本実施例の動作について図2、図
3、図4および図5を参照して詳細に説明する。
Next, the operation of this embodiment will be described in detail with reference to FIG. 2, FIG. 3, FIG. 4, and FIG.

【0028】まず、送信元タスク101は、本システム
で使用される最大数の送信用メッセージバッファ110
をシステム管理下のメモリプール109に予め確保し、
そのメッセージバッファ110をフリーキュー104に
つないでおく(S301)。さらに、フローフラグ10
5をOFFにセットしておく。
First, the transmission source task 101 transmits the maximum number of transmission message buffers 110 used in the present system.
In the memory pool 109 under system management in advance,
The message buffer 110 is connected to the free queue 104 (S301). Furthermore, the flow flag 10
5 is set to OFF.

【0029】次に、メッセージを送信する際に、前記送
信元タスク101は、前記フリーキュー104につなが
れているメッセージをはずし(S302)、中継タスク
201に備えられる通常キュー202につなげる(S3
03)。ここで、この通常キュー107には、前記送信
元タスク101以外のタスクから送信されたメッセージ
もつながれる。
Next, when transmitting a message, the source task 101 removes the message connected to the free queue 104 (S302), and connects the message to the normal queue 202 provided in the relay task 201 (S3).
03). Here, messages transmitted from tasks other than the source task 101 are also connected to the normal queue 107.

【0030】さらに、前記送信元タスク101は、前記
フローフラグ105をチェックし(S304)、このフ
ローフラグ105がOFFであれば、さらに、前記フリ
ーキュー104が所定量(例えば全体の3/4)以上使
用されているかどうかをチェックし(S306)、使用
されていれば前記フローフラグ105をONにする(S
307)。また、前記S4に手順において、前記フロー
フラグ105がONであった場合には、前記通常キュー
202につなげられたメッセージを先頭から検索し、最
初に発見された前記送信元タスク101から送信された
メッセージを1つだけ優先キュー203につなぎかえる
(S305)。
Further, the source task 101 checks the flow flag 105 (S 304). If the flow flag 105 is OFF, the free queue 104 further has a predetermined amount (for example, 3 of the total). It is checked whether or not it is used (S306), and if it is used, the flow flag 105 is turned ON (S306).
307). In the step S4, when the flow flag 105 is ON, the message connected to the normal queue 202 is searched from the beginning, and the message transmitted from the source task 101 found first is sent. Only one message is connected to the priority queue 203 (S305).

【0031】次に、中継タスク201は、前記送信元タ
スク101から送信されたメッセージを受信した場合
に、まず、前記優先キュー203にメッセージがあるか
どうかをチェックし(S401)、メッセージがあった
場合には前記優先キュー203の先頭にあるメッセージ
を取る(S402)。さらに、中継フラグ204の状態
をチェックし(S403)、この中継フラグ204がO
FFであればONにする(S404)。また、前記優先
キュー203にメッセージがなかった場合には、前記通
常キュー202の先頭にあるメッセージを取る(S40
5)。さらに、前記中継フラグ204の状態をチェック
し(S406)、この中継フラグ204がONであれば
OFFにする(S407)。
Next, when receiving the message transmitted from the source task 101, the relay task 201 first checks whether there is a message in the priority queue 203 (S401), and there is a message. In this case, the message at the head of the priority queue 203 is taken (S402). Further, the status of the relay flag 204 is checked (S403), and
If it is FF, it is turned ON (S404). If there is no message in the priority queue 203, the message at the head of the normal queue 202 is taken (S40).
5). Further, the status of the relay flag 204 is checked (S406), and if the relay flag 204 is ON, it is turned OFF (S407).

【0032】次に、前記優先キュー203または通常キ
ュー202から取ったメッセージの処理を処理部205
において行い(S408)、さらに、前記中継フラグ2
04の状態をチェック(S409)し、この中継フラグ
204がONであれば前記メッセージを送信先タスク1
06に備えられた優先キュー108につなぎ(S41
0)、また、前記中継フラグ204がOFFであれば前
記送信先タスク106に備えられた通常キュー107に
つなげる(S411)。
Next, processing of the message received from the priority queue 203 or the normal queue 202 is performed by the processing unit 205.
(S408), and the relay flag 2
04 (S409). If the relay flag 204 is ON, the message is transmitted to the destination task 1.
06 (S41).
0) If the relay flag 204 is OFF, the connection is made to the normal queue 107 provided in the destination task 106 (S411).

【0033】次に、前記送信先タスク106は、前記中
継タスク201から送信されたメッセージを受信した場
合に、まず、前記優先キュー108にメッセージがある
かどうかをチェックし(S501)、前記メッセージが
なければ前記通常キュー107の先頭にあるメッセージ
を取る(S503)。また、前記優先キュー108にメ
ッセージがある場合はその優先キュー108の先頭にあ
るメッセージを取る(S502)。
Next, when receiving the message transmitted from the relay task 201, the transmission destination task 106 first checks whether there is a message in the priority queue 108 (S501). If not, the message at the head of the normal queue 107 is taken (S503). If there is a message in the priority queue 108, the message at the head of the priority queue 108 is taken (S502).

【0034】次に、前記通常キュー107または優先キ
ュー108から取ったメッセージの処理を行い(S50
4)、その後、処理されたメッセージを前記送信元タス
ク101に備えられた前記フリーキュー104に返す
(S505)。
Next, processing of the message taken from the normal queue 107 or the priority queue 108 is performed (S50).
4) Then, the processed message is returned to the free queue 104 provided in the source task 101 (S505).

【0035】さらに、前記フリーキュー104につなが
れたメッセージの数をチェックし(S506)、この数
が所定量(例えば全体の1/2)以上であれば前記送信
元タスク101に備えられる前記フローフラグ105を
ONにする(S507)。
Further, the number of messages connected to the free queue 104 is checked (S506). If this number is equal to or more than a predetermined amount (for example, 全体 of the total), the flow flag provided in the source task 101 is checked. 105 is turned ON (S507).

【0036】また、この第二の実施例においては、メッ
セージが送信元タスクから送信先タスクへ送信される間
に、1つのタスクに中継された例を示したが、この中継
タスクは複数であってもよいことは明かであり、それぞ
れの中継タスクは、前述の図4のフローチャートで示し
たものと同様の動作を実行する。この際、中継タスクに
備えられる中継フラグは、送信元タスクに備えられるフ
ローフラグの状態を中継することになるために、中継途
中において、前記フローフラグと同様の機能を果たすこ
ととなる。
Further, in the second embodiment, an example has been described in which a message is relayed to one task while the message is transmitted from the source task to the destination task. Obviously, each relay task performs the same operation as that shown in the flowchart of FIG. 4 described above. At this time, the relay flag provided in the relay task relays the state of the flow flag provided in the source task, and thus performs the same function as the flow flag during the relay.

【0037】さらに、上記各実施例においては説明の簡
略化のため、送信元タスク、中継タスクおよび送信先タ
スクを予め設定したが、全てのタスクが送信元タスク、
中継タスクおよび送信先タスクになることができること
は明かである。
Further, in each of the above embodiments, the source task, the relay task, and the destination task are set in advance for the sake of simplicity of description.
Obviously, it can be a relay task and a destination task.

【0038】[0038]

【発明の効果】以上説明したように、本発明のタスク間
通信システムは、送信元のタスクがフロー制御を行うこ
とにより、高速なフロー制御を実現することができる。
さらに、処理の遅れているタスク間通信を優先的に処理
するために、システム全体の処理速度が向上する。
As described above, the inter-task communication system according to the present invention can realize high-speed flow control by performing flow control by the task of the transmission source.
Further, the processing speed of the entire system is improved because the inter-task communication whose processing is delayed is preferentially processed.

【0039】また、タスク間通信において、メッセージ
を複数のタスクに中継させて送信することが可能であ
り、この場合も、送信元のタスクが中継されるタスクを
含めたフロー制御を行うことができるので、システム全
体の高速性が向上する。
In the inter-task communication, a message can be relayed and transmitted to a plurality of tasks. In this case as well, the flow of the task including the task to be relayed by the source task can be performed. Therefore, the speed of the entire system is improved.

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

【図1】第一の実施例の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of a first embodiment.

【図2】第二の実施例の構成を示すブロック図。FIG. 2 is a block diagram showing a configuration of a second embodiment.

【図3】送信元タスクの動作を示すフローチャート。FIG. 3 is a flowchart illustrating an operation of a transmission source task.

【図4】中継タスクの動作を示すフローチャート。FIG. 4 is a flowchart showing the operation of a relay task.

【図5】送信先タスクの動作を示すフローチャート。FIG. 5 is a flowchart showing the operation of a destination task.

【図6】従来のタスク間通信システムの構成を示すブロ
ック図。
FIG. 6 is a block diagram showing a configuration of a conventional inter-task communication system.

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

100 コンピュータ 101 送信元タスク 102 通常キュー 103 優先キュー 104 フリーキュー 105 フローフラグ 106 送信先タスク 107 通常キュー 108 優先キュー 109 メモリプール 110 メッセージバッファ 111 処理部 201 中継タスク 202 通常キュー 203 優先キュー 204 処理部 205 中継フラグ 601 タスクA 602 タスクB 603 タスクC 604 受信用キュー 605 タスクB用キュー 606 タスクC用キュー REFERENCE SIGNS LIST 100 computer 101 source task 102 normal queue 103 priority queue 104 free queue 105 flow flag 106 destination task 107 normal queue 108 priority queue 109 memory pool 110 message buffer 111 processing unit 201 relay task 202 normal queue 203 priority queue 204 processing unit 205 Relay flag 601 Task A 602 Task B 603 Task C 604 Receive queue 605 Task B queue 606 Task C queue

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のタスク間でメッセージの送受信を
行うタスク間通信システムにおいて、 送信元タスクは、 予め確保されるメッセージバッファにつなげられ、送信
先タスクにメッセージを送信するフリーキューと、 前記送信先タスクにおいて前記送信元タスクから送信さ
れたメッセージの処理が遅れているかどうかを送信元の
フリーキューに繋がれているメッセージの数により判定
する判定手段とを備え、 前記送信先タスクは、 前記フリーキューから送信されたメッセージを受信する
第一の通常キューと、 前記判定手段において処理が遅れていると判定された場
合に、判定した前記送信元タスクから送信されたメッセ
ージを格納する第一の優先キューと、 前記第一の通常キューまたは前記第一の優先キューにお
いて受信したメッセージを処理する第一の処理手段とを
有することを特徴とするタスク間通信システム。
1. An inter-task communication system for transmitting and receiving a message between a plurality of tasks, wherein a transmission source task is connected to a message buffer reserved in advance, and a free queue for transmitting a message to a transmission destination task; whether processing of a message sent from the sender task in the previous task is delayed source
Determining means for determining based on the number of messages connected to the free queue , wherein the destination task is a first normal queue for receiving a message transmitted from the free queue, and processing is delayed in the determining means. If it is determined that the message has been transmitted, the first priority queue storing the message transmitted from the determined source task, and the message received in the first normal queue or the first priority queue is processed. An inter-task communication system comprising: a first processing unit.
【請求項2】 前記送信元タスクは、前記判定手段にお
いて処理が遅れていると判定した場合に、この送信元タ
スクが送信したメッセージを前記第一の通常キューにつ
ながれたメッセージの中から検索し、最初に検索された
前記メッセージを前記第一の優先キューにつなぎかえ、 前期送信先タスクにおいては、 前記処理部は、前記第一の優先キューにメッセージがあ
る場合には、そのメッセージを前記第一の通常キューに
つなげられたメッセージに対して優先的に処理する こと
を特徴とする前記請求項1に記載のタスク間通信システ
ム。
2. The transmission source task according to claim 1 , wherein
And the processing is delayed, the
The message sent by the disk to the first normal queue.
Searched out of flowed messages, first searched
The message is reconnected to the first priority queue, and in the previous destination task, the processing unit stores the message in the first priority queue.
The message is placed in the first regular queue.
2. The inter-task communication system according to claim 1, wherein the connected messages are processed with priority .
【請求項3】 前記送信元タスクから前記送信先タスク
にメッセージを送信する場合に、他のタスク(以下中継
タスク)を中継して送信され、 前記中継タスクは、 前記フリーキューから送信されたメッセージを受信する
第二の通常キューと、 前記判定手段において処理が遅れていると判定された場
合に、判定した前記送信 元タスクから送信されたメッセ
ージを格納する第二の優先キューと、 前記第二の通常キューまたは前記第二の優先キューにお
いて受信したメッセージを処理する第二の処理手段と、 前記判定手段の判定結果を中継する中継フラグとを有す
ことを特徴とする前記請求項1に記載のタスク間通信
システム。
3. A method according to claim 1, wherein said source task is a destination task.
When sending a message to another task,
Transmitted by relaying the task), the relay task receives the message sent from the free queue
A second normal queue, and a case where the determination unit determines that the processing is delayed.
In this case, the message sent from the source task
A second priority queue for storing the queue and the second normal queue or the second priority queue.
Second processing means for processing the received message, and a relay flag for relaying the determination result of the determination means.
Task communication system according to claim 1, characterized in that that.
JP6088222A 1994-04-26 1994-04-26 Task communication system Expired - Fee Related JP2611739B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6088222A JP2611739B2 (en) 1994-04-26 1994-04-26 Task communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6088222A JP2611739B2 (en) 1994-04-26 1994-04-26 Task communication system

Publications (2)

Publication Number Publication Date
JPH07295839A JPH07295839A (en) 1995-11-10
JP2611739B2 true JP2611739B2 (en) 1997-05-21

Family

ID=13936856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6088222A Expired - Fee Related JP2611739B2 (en) 1994-04-26 1994-04-26 Task communication system

Country Status (1)

Country Link
JP (1) JP2611739B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017066966A1 (en) * 2015-10-22 2017-04-27 Oracle International Corporation System and method for providing mssq notifications in transactional processing environment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6272040A (en) * 1985-09-26 1987-04-02 Fujitsu Ltd Information tracing system
JPS63186336A (en) * 1987-01-28 1988-08-01 Nec Corp Message extracting/switching system
JPH0271329A (en) * 1988-09-07 1990-03-09 Fuji Facom Corp Inter-program communication system
JP2527223B2 (en) * 1988-12-12 1996-08-21 富士通株式会社 Message area control method for inter-task communication
JP2513029B2 (en) * 1989-05-12 1996-07-03 日本電気株式会社 Task management method

Also Published As

Publication number Publication date
JPH07295839A (en) 1995-11-10

Similar Documents

Publication Publication Date Title
JP3691654B2 (en) How to prioritize network traffic
JPH08314821A (en) Data transfer method
JP2611739B2 (en) Task communication system
US20090073490A1 (en) Communication information processing system
JPH09247209A (en) Flow control system of transport layer protocol for resource reservation channel
US7233598B2 (en) System and method for speculatively issuing memory requests while maintaining a specified packet order
JP3202894B2 (en) Packet processing method
JPH09191321A (en) Adaptive credit control type transfer method
JPH11234331A (en) Packet parallel processing device
JP2001325212A (en) Method and device for transmitting data block from source processor to destination processor in multiprocessor system
JP2000022728A (en) Network equipment
JPH1196108A (en) Computer system and bus controller
JPH09247192A (en) Real-time communication method
JP2606128B2 (en) Communication method between computers
JP2002326600A (en) Command transmission system and command transmission method
JP2000148639A (en) Data transmission control method and recording medium recording data transmission control program
JP2000078187A (en) Data communication device, method and storage medium
JPH0728733A (en) Network traffic control method
JP4411138B2 (en) Data flow control system, circuit thereof, and method thereof
JP3462061B2 (en) Communication device
JPS6111502B2 (en)
JPS60183659A (en) Information transfer control system
JPH01162036A (en) System for transferring packet switching data
JPH0514365A (en) Scan transmission system
JP2001312479A (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970107

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080227

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090227

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100227

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees