JPH11203150A - Task controller and storage medium storing task control program - Google Patents

Task controller and storage medium storing task control program

Info

Publication number
JPH11203150A
JPH11203150A JP30148398A JP30148398A JPH11203150A JP H11203150 A JPH11203150 A JP H11203150A JP 30148398 A JP30148398 A JP 30148398A JP 30148398 A JP30148398 A JP 30148398A JP H11203150 A JPH11203150 A JP H11203150A
Authority
JP
Japan
Prior art keywords
data
task
size
transmission
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
Application number
JP30148398A
Other languages
Japanese (ja)
Inventor
Koichi Yasutake
剛一 安武
Tetsuji Maeda
哲司 前田
Takuya Sekiguchi
卓也 關口
健人 ▲よし▼井
Taketo Yoshii
Yasutaka Yamada
泰隆 山田
Hirobumi Tanaka
博文 田中
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP30148398A priority Critical patent/JPH11203150A/en
Publication of JPH11203150A publication Critical patent/JPH11203150A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a task controller which improves the processing efficiency of a task, reduces a program size and controls data communication between tasks. SOLUTION: A sending request receiving part 103 receives a data sending request from a task and stores data to be sent in a data storing part 104. A receiving request receiving part 106 receives a data receiving request from task, reads a receiving data size of the task from a receiving data size managing part 105, a data extracting part 108 extracts data of the size from the part 104 and a data transferring part 109 transfers data for the receiving data size from a data storing means to the task.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、オペレーティング
システムにおいて、複数のタスク間でのデータ通信を制
御するタスク制御装置及びタスク制御プログラムを記憶
する記憶媒体に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a task control device for controlling data communication between a plurality of tasks in an operating system, and a storage medium for storing a task control program.

【0002】[0002]

【従来の技術】従来、オペレーティングシステムは複数
のタスクの間でデータ交換を行うしくみをキュー(メー
ルボックスとも呼ばれる)やランデブなどのシステムサ
ービスにより実現していた。この詳細については、例え
ば、A.S.タネンバウム著「OSの基礎と応用」(株式会
社トッパン発行)の「第2章プロセス」の「2.2プロセ
ス間通信」に記載されている。
2. Description of the Related Art Conventionally, an operating system has realized a mechanism for exchanging data between a plurality of tasks by using system services such as a queue (also called a mailbox) and a rendezvous. The details are described, for example, in "2.2 Interprocess Communication" in "Chapter 2 Process" of "Basic and Application of OS" by AS Tanenbaum (published by Toppan Co., Ltd.).

【0003】上記のシステムサービスでは送信タスクと
受信タスクの間で予め決められたデータサイズのデータ
を送信もしくは受信していた。
In the above system service, data of a predetermined data size is transmitted or received between a transmission task and a reception task.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来技
術によればタスクによって内部処理に要するデータサイ
ズが異なることが多く、受信タスクでは送信データを必
要なデータサイズに組み替える処理を必要とするので、
タスクの処理効率が悪化し、かつプログラムサイズが増
加するという問題があった。
However, according to the prior art, the data size required for internal processing often differs depending on the task, and the reception task requires processing for rearranging transmission data to a required data size.
There has been a problem that task processing efficiency deteriorates and the program size increases.

【0005】たとえば、タスクA、タスクBの内部処理
単位がそれぞれ32バイト、64バイトであって、送信
データサイズが32バイトと設定されている場合、受信
タスクBは、第1回目のデータ受信処理、第2回目のデ
ータ受信待ち処理及び第2回目のデータ受信処理を行わ
なければならない。このような処理を各タスクが個別に
行うことは、タスクの本来行うべき処理時間を圧迫する
ので処理効率を悪化させるとともにプログラムサイズの
増加を招くという問題があった。
For example, if the internal processing units of task A and task B are 32 bytes and 64 bytes, respectively, and the transmission data size is set to 32 bytes, reception task B performs the first data reception processing. , The second data reception waiting process and the second data reception process must be performed. Performing such processing individually by each task puts a burden on the processing time that the task should originally perform, so that there is a problem that the processing efficiency is deteriorated and the program size is increased.

【0006】さらに、複数のプロセッサにより構成され
るシステムでは、通常それぞれのプロセッサのバス幅や
処理時間に応じて最適に処理できるデータサイズが異な
るにもかかわらず、プロセッサ間でのタスクのデータ通
信では共通のデータサイズを設定しなければならなかっ
たので、同様の問題がある。本発明は上記の点に鑑み、
複数のタスク間でのデータ通信を制御するタスク制御装
置及びタスク制御プログラムに関し、各タスクにおける
データ通信処理の負荷を低減することにより、タスク全
体の処理効率の向上とタスクのプログラムサイズの低減
とを図ることである。
Further, in a system composed of a plurality of processors, even though the data size that can be optimally processed usually differs depending on the bus width and processing time of each processor, task data communication between the processors is difficult. Since a common data size had to be set, there is a similar problem. The present invention has been made in view of the above points,
Regarding a task control device and a task control program that control data communication between a plurality of tasks, by reducing the load of data communication processing in each task, it is possible to improve the processing efficiency of the entire task and reduce the program size of the task. It is to plan.

【0007】[0007]

【課題を解決するための手段】上記の問題点を解決する
ため本発明に係るタスク制御装置は、タスクの送信すべ
きデータを一時的に記憶するための領域を有するデータ
記憶手段と、第1のタスクからデータ送信要求を受け、
第1のタスクの送信すべきデータをデータ記憶手段に転
送する送信要求処理手段と、データ記憶手段に格納され
ている各データのサイズを管理する管理手段と、第2の
タスクからデータ受信要求を受け、管理手段を参照して
第2のタスクが必要とする受信データサイズに等しいサ
イズのデータがデータ記憶手段に記憶されている場合
に、その受信データサイズに等しいサイズのデータをデ
ータ記憶手段から第2のタスクに転送する受信要求処理
手段とを備える。
In order to solve the above-mentioned problems, a task control device according to the present invention comprises: a data storage unit having an area for temporarily storing data to be transmitted by a task; Receives a data transmission request from the task
Transmission request processing means for transferring data to be transmitted of the first task to the data storage means, management means for managing the size of each data stored in the data storage means, and data reception request from the second task When the data having the size equal to the reception data size required by the second task is stored in the data storage means with reference to the management means, the data having the size equal to the reception data size is transmitted from the data storage means. Receiving request processing means for transferring to the second task.

【0008】また、受信要求処理手段は、タスク毎に必
要とされる受信データサイズを保持する受信サイズテー
ブルと、第2のタスクからデータ受信要求を受けたと
き、受信サイズテーブルから受信データサイズを、管理
手段から各データのサイズを読み出し、第2のタスクの
受信データサイズ以上のデータがデータ記憶手段に記憶
されているか否かを判定するサイズ判定手段と、第2の
タスクの受信データサイズ以上のデータが記憶されてい
ると判定された場合、その受信データサイズに等しいサ
イズのデータをデータ記憶手段から受信要求元のタスク
に転送する第2転送手段とを備える構成としてもよい。
The reception request processing means includes a reception size table for holding a reception data size required for each task, and a reception data size from the reception size table when receiving a data reception request from the second task. Reading the size of each data from the management means and determining whether or not data larger than the received data size of the second task is stored in the data storage means; and larger than the received data size of the second task. And a second transfer unit that transfers data having a size equal to the received data size from the data storage unit to the task that has requested the reception when it is determined that the received data is stored.

【0009】さらに、送信要求処理手段は、タスク毎に
必要とされる送信データサイズを保持する送信サイズテ
ーブルと、第1のタスクからデータ送信要求を受けたと
き、送信サイズテーブルから当該タスクの送信データサ
イズを読み出し、それ以上の空きがデータ記憶手段にあ
るかどうかを判定する空き判定手段と、空きがある場合
に、第1のタスクの送信すべきデータをデータ記憶手段
に転送する第1転送手段とを備える構成としてもよい。
Further, the transmission request processing means includes: a transmission size table for holding a transmission data size required for each task; and when a data transmission request is received from the first task, the transmission request processing means transmits the transmission task size from the transmission size table. A vacancy determining unit that reads the data size and determines whether there is more vacancy in the data storage unit, and a first transfer that transfers data to be transmitted by the first task to the data storage unit when there is vacancy. Means may be provided.

【0010】また、前記データ記憶手段は、先入れ先出
し式にデータを記憶する複数のキューバッファを有し、
前記管理手段は、各キューバッファ毎に、格納されてい
るデータのサイズと空き領域のデータサイズとを管理
し、前記データ送信要求は送信データ格納先のキューバ
ッファの指定を含み、前記データ受信要求は受信データ
要求先のキューバッファの指定を含み、前記空き判定手
段は、データ送信要求にて指定されたキューバッファ
に、送信サイズテーブルから読み出された送信データサ
イズ以上の空きがあるかどうかを判定し、前記サイズ判
定手段は、データ受信要求にて指定されたキューバッフ
ァに、受信サイズテーブルから読み出された受信データ
サイズ以上のデータがあるか否かを判定する構成として
もよい。
The data storage means has a plurality of queue buffers for storing data in a first-in first-out manner.
The management means manages, for each queue buffer, a size of stored data and a data size of a free area, the data transmission request includes designation of a queue buffer for storing a transmission data, and the data reception request includes: Includes a designation of a queue buffer of a reception data request destination, and the empty judgment means judges whether or not the queue buffer specified by the data transmission request has an empty space equal to or larger than the transmission data size read from the transmission size table. The determination may be such that the size determination unit determines whether or not there is data in the queue buffer specified by the data reception request that is equal to or larger than the reception data size read from the reception size table.

【0011】[0011]

【発明の実施の形態】<第1実施形態> <タスク制御装置の概略説明図>図1は、本発明の実施
形態におけるタスク制御装置の概要を示す説明図であ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS <First Embodiment><Schematic Description of Task Control Device> FIG. 1 is an explanatory diagram showing an overview of a task control device according to an embodiment of the present invention.

【0012】同図に示すように本タスク制御装置101
は、プロセッサ(CPU)を備えたハードウェア1上で
マルチタスク機能を有するオペレーティングシステム
(以下OS(Operating System))2を動作させること
により実現される。すなわち本タスク制御装置は、マル
チタスクをサポートするOS2の機能の一部であって、
複数のタスク間のデータ通信を制御する。
As shown in FIG.
Is realized by operating an operating system (hereinafter referred to as OS (Operating System)) 2 having a multitasking function on hardware 1 having a processor (CPU). That is, the task control device is a part of the function of OS2 that supports multitasking,
Controls data communication between multiple tasks.

【0013】また同図では、OS2上でタスク3〜5
(タスクA〜C)が実行されている様子を示している。
各タスクは、OS2によって自身に割り当てられたメモ
リ領域中に、他のタスクへ送信すべきデータを一時的に
保持する送信データエリアと、他のタクスからのデータ
をデータを受信して一時的に保持する受信データエリア
を有する。送信データサイズ、受信データサイズは、そ
れぞれ複数のタスク間で同じとは限らない。タスクは、
他のタスクにデータを送信する場合、送信すべきデータ
を送信データエリアに記憶させてから送信要求をタスク
制御装置101に通知する。また、他のタスクからデー
タを受信する場合、受信要求をタスク制御装置101に
通知する。
In FIG. 1, tasks 3 to 5 are executed on the OS 2.
(Tasks A to C) are being executed.
Each task has a transmission data area for temporarily storing data to be transmitted to another task in a memory area allocated to itself by the OS 2, and a data for receiving data from another task and temporarily storing the data. It has a reception data area to hold. The transmission data size and the reception data size are not necessarily the same among a plurality of tasks. The task is
When transmitting data to another task, data to be transmitted is stored in a transmission data area, and then a transmission request is notified to the task control device 101. When data is received from another task, the task control device 101 is notified of a reception request.

【0014】タスク制御装置は、OS用に割り当てられ
たメモリ領域中に、タスク間の送受信データを一時的に
保持するバッファ(データ格納部)を有し、タスクから
送信要求が通知されたときバッファへ送信データを格納
し、タスクから受信要求が通知されたとき当該タスクが
必要とする受信データサイズ分のデータをそのタスクに
送信する。つまりタスク制御装置は送信側タスクの送信
データサイズと受信側タスクの受信データサイズとの違
いを調整しつつ、タクス間のデータ送信を制御してい
る。このとき、タスク制御装置は、送信側タスクの送信
データサイズと受信側タスクの受信データサイズとが異
なっていても、受信側タスクに対しては当該受信データ
サイズ分のデータを1回の転送で行なうように制御す
る。 <第1のハードウェア構成例>図2は、本タスク制御装
置をテレビジョン受像機に実装した場合のハードウェア
構成例を示す図である。
The task control device has a buffer (data storage unit) for temporarily storing transmission / reception data between tasks in a memory area allocated for the OS, and stores a buffer when a transmission request is notified from the task. Then, when a reception request is notified from the task, data corresponding to the reception data size required by the task is transmitted to the task. That is, the task control device controls data transmission between tasks while adjusting the difference between the transmission data size of the transmission task and the reception data size of the reception task. At this time, even if the transmission data size of the transmission task and the reception data size of the reception task are different, the task control device transfers data of the reception data size to the reception task in one transfer. Control to do so. <First Hardware Configuration Example> FIG. 2 is a diagram showing a hardware configuration example when the present task control device is mounted on a television receiver.

【0015】このハードウェアは、テレビジョン受像器
の主要部を示してあり、CPU1、メモリ2、複数のI
/O(入出力)部3〜7を備える。CPU1は、メモリ
2に記憶されたソフトウェアを実行することによって、
本発明のタスク制御装置の機能を実現する。このソフト
ウェアは、図1に示したように、マルチタスク機能を有
するOSの一部、つまりタスク間のデータ通信制御の機
能を担っている。またCPU1は、OSの配下で複数の
タスクを実行する。
This hardware shows a main part of the television receiver, and includes a CPU 1, a memory 2, and a plurality of I / Os.
/ O (input / output) units 3 to 7 are provided. The CPU 1 executes the software stored in the memory 2 to
The function of the task control device of the present invention is realized. As shown in FIG. 1, this software has a part of an OS having a multitask function, that is, a function of controlling data communication between tasks. The CPU 1 executes a plurality of tasks under the control of the OS.

【0016】メモリ2は、OSの記憶領域(データエリ
アを含む)や、各タスクの記憶領域(タスクのデータエ
リアを含む)を有する。各タスクのデータエリアには、
上記の送信データエリア、受信データエリアを含む。I
/O部3はテレビジョン受像器に付属のリモコンからの
送信されるキーデータを受信するリモコンI/F、I/
O部4はユーザのキー入力を受ける操作パネル、I/O
部5は放送波を選局するチューナ部、I/O部6は映像
を表示する表示部、I/O部7は音声出力部である。
The memory 2 has a storage area for the OS (including the data area) and a storage area for each task (including the data area for the task). In the data area of each task,
The transmission data area and the reception data area are included. I
The / O unit 3 includes remote controllers I / F and I / F for receiving key data transmitted from a remote controller attached to the television receiver.
The O unit 4 is an operation panel for receiving a key input from the user, and an I / O.
The section 5 is a tuner section for selecting broadcast waves, the I / O section 6 is a display section for displaying video, and the I / O section 7 is an audio output section.

【0017】また、図1に示した各タスクは、OSによ
ってタスク用に確保されたメモリ領域中の例えばスタッ
クやワークエリアなどに、上記した送信データエリアと
受信データエリアとを有している。送信データエリアの
送信データは、タスクにより書き込まれ、タスク制御装
置により読み出される。受信データエリアの受信データ
は、タスク制御装置により書き込まれ、タスクにより読
み出される。
Each task shown in FIG. 1 has the above-mentioned transmission data area and reception data area in, for example, a stack or a work area in a memory area reserved for the task by the OS. The transmission data in the transmission data area is written by the task and read by the task control device. The received data in the received data area is written by the task control device and read by the task.

【0018】OS上で実行されるタスクは、図1に示し
たハードウェアに対して、例えば各I/O部に対応して
設けられる。例えば、I/O部3(リモコンI/F部)
の動作を制御するタスク、I/O部4(操作パネル)の
動作を制御するタスク、I/O部5(チューナー部)の
動作を制御するタスク、I/O部6(表示部)の動作を
制御するタスク、I/O部7(音声出力部)制御するタ
スク等々である。もちろんこれ以外にI/O以外の内部
動作を処理する種々のタスクも存在する。
The tasks executed on the OS are provided in the hardware shown in FIG. 1, for example, corresponding to each I / O unit. For example, I / O unit 3 (remote control I / F unit)
, The operation of the I / O unit 4 (operation panel), the operation of the I / O unit 5 (tuner unit), and the operation of the I / O unit 6 (display unit). , A task for controlling the I / O unit 7 (audio output unit), and the like. Of course, there are other various tasks for processing internal operations other than I / O.

【0019】タスク間のデータ送受信については、例え
ばリモコンI/F部用タスクからチューナー用タスクに
対して、チャネルのアップ/ダウンを示すデータや、チ
ャネル番号を直接指定するデータが送信されたり、操作
パネル用タスクから音声出力部用タスクに対して、音量
のアップ/ダウンを示すデータやミュートを指示するデ
ータ等が送信され、また、表示部用タスクが予約設定モ
ード等で時刻データや数字データ、チャネル番号データ
などの表示データを受信データとして要求する等、種々
のデータがタスク間で送受信される必要がある。
For data transmission / reception between tasks, for example, data indicating channel up / down or data directly specifying a channel number is transmitted from a remote controller I / F section task to a tuner task, Data indicating volume up / down, data instructing mute, and the like are transmitted from the panel task to the audio output section task, and the display section task performs time data, numeric data, Various data needs to be transmitted and received between tasks, such as requesting display data such as channel number data as received data.

【0020】ここでリモコンI/F部用タスク、チュー
ナー部用タスク、表示部用タスクをタスクA〜Cとす
る。図5(a)、図5(b)に、タスクA〜Cの送信デ
ータサイズ、受信データサイズの例を示す。同図のよう
に、これらのタスクの送信データサイズ、受信データサ
イズはその処理内容に応じて定められる。 <第2のハードウェア構成例>図3は、本タスク制御装
置をセットトップボックス(衛星放送チューナ)に実装
した場合のハードウェア構成例を示す図である。
Here, the tasks for the remote controller I / F unit, the tuner unit, and the display unit are referred to as tasks A to C. FIGS. 5A and 5B show examples of the transmission data size and the reception data size of the tasks A to C. FIG. As shown in the figure, the transmission data size and the reception data size of these tasks are determined according to the processing contents. <Second Hardware Configuration Example> FIG. 3 is a diagram showing a hardware configuration example when the present task control device is mounted on a set-top box (satellite broadcast tuner).

【0021】このハードウェアは、セットトップボック
ス全体を制御する制御部11、リモコン14からのキー
データを受信するリモコン受信部13、デジタル又はア
ナログ放送波を受信して所望のチャネルを選択受信する
受信部15、デジタル放送を受信した場合に受信された
チャネルの信号を復号するMPEGデコーダ16、復号
結果を映像信号として出力するビデオ信号処理部17を
備える。
The hardware includes a control unit 11 for controlling the entire set-top box, a remote control receiving unit 13 for receiving key data from a remote control 14, a reception for receiving a digital or analog broadcast wave and selectively receiving a desired channel. A decoding unit for decoding a signal of a received channel when a digital broadcast is received; and a video signal processing unit for outputting a decoding result as a video signal.

【0022】制御部11は、CPU11a、バスI/F
部11c、主記憶11dからなる。主記憶11dは、上
記OS及びアプリケーション(複数のタスク)などのソ
フトウェアが記憶する。CPU11aが主記憶11dの
ソフトウェアを実行することにより本タスク制御装置と
しての機能を発揮する。この場合、OS上で実行される
タスクには、リモコン受信部13の動作を制御するタス
ク、受信部15の動作を制御するタスク、MPEGデコ
ーダ16の動作を制御するタスク、ビデオ信号処理部1
7の動作を制御するタスクなどがある。
The control unit 11 includes a CPU 11a, a bus I / F
The unit 11c includes a main memory 11d. The main memory 11d stores software such as the OS and the application (a plurality of tasks). The function as the task control device is exhibited by the CPU 11a executing the software of the main memory 11d. In this case, the tasks executed on the OS include a task for controlling the operation of the remote control receiving unit 13, a task for controlling the operation of the receiving unit 15, a task for controlling the operation of the MPEG decoder 16, and the video signal processing unit 1.
7 and the like to control the operation of FIG.

【0023】これらのタスクは、図2の場合と同様に、
タスクの処理内容に応じて定まる送信データサイズ、受
信データサイズのデータを送受信する。本セットトップ
ボックスにおいて、文字多重放送を受信しさらに文字表
示用の映像信号を出力する場合の送信データサイズ、受
信データサイズについて説明する。受信部15用タスク
は、垂直帰線区間(VBI:Vertical Blanking Interval)
に送信される文字データを受信して、ビデオ信号処理部
17用タスクに送信する。ビデオ信号処理部17は受信
した文字データから文字表示用の映像信号を出力する。
この場合、受信部15用タスクの送信データサイズは、
1VBI区間の文字数に相当するサイズとするのが望ま
しい。また、ビデオ信号処理部17用タスクの受信デー
タサイズは、表示の更新単位が1画面単位であれば1画
面に表示される文字数に相当するサイズ(約400バイ
ト)に、表示の更新単位が1行単位であれば1行に表示
される文字数に相当するサイズ(約40バイト)とな
る。この場合、ビデオ信号処理部17用タスクの代わり
に、1画面単位に表示を更新するタスク、行単位に表示
を更新するタスクなど複数のタスクとしてもよい。
These tasks are performed as in FIG.
Transmits and receives data of the transmission data size and the reception data size determined according to the processing content of the task. The transmission data size and the reception data size in the case where a text multiplex broadcast is received and a video signal for character display is output in this set-top box will be described. The task for the receiving unit 15 is a vertical blanking interval (VBI).
Is received and transmitted to the video signal processing unit 17 task. The video signal processing unit 17 outputs a video signal for character display from the received character data.
In this case, the transmission data size of the task for the receiving unit 15 is
It is desirable that the size be equivalent to the number of characters in one VBI section. The reception data size of the task for the video signal processing unit 17 is set to a size (approximately 400 bytes) corresponding to the number of characters to be displayed on one screen when the update unit of the display is one screen unit. In the case of a line unit, the size is equivalent to the number of characters displayed on one line (about 40 bytes). In this case, in place of the task for the video signal processing unit 17, a plurality of tasks such as a task of updating display in units of one screen and a task of updating display in units of lines may be used.

【0024】ここではリモコン受信部13用タスク、受
信部15用タスク、ビデオ信号処理部17用をタスクA
〜Cとする。この場合のタスクA〜Cの送信データサイ
ズ、受信データサイズは、図5(a)、図5(b)のよ
うに、これらのタスクの送信データサイズ、受信データ
サイズはその処理内容に応じて定められる。 <タスク制御装置の構成>図4は、タスク制御装置の構
成を示すブロック図である。本タスク制御装置101
は、送信データサイズ管理部102、データ格納部10
4、受信データサイズ管理部105、受信要求受付部1
06、データ抽出部108、データ転送部109とから
構成される。同図のタスク制御装置101は、機能的な
ブロックに分解して図示されているが、実際には図1の
ようなハードウェア上で、図4の機能を果たすソフトウ
ェアがOSの一部として実行されることにより実現され
る。
Here, the task for the remote control receiving section 13, the task for the receiving section 15, and the task for the video signal processing section 17 are called task A.
To C. In this case, the transmission data size and the reception data size of the tasks A to C are, as shown in FIGS. 5A and 5B, the transmission data size and the reception data size of these tasks according to the processing contents. Determined. <Structure of Task Control Device> FIG. 4 is a block diagram showing the structure of the task control device. The present task control device 101
Are the transmission data size management unit 102 and the data storage unit 10
4. Received data size management unit 105, reception request reception unit 1
06, a data extraction unit 108, and a data transfer unit 109. Although the task control device 101 in FIG. 1 is illustrated as being disassembled into functional blocks, software that performs the functions in FIG. 4 is actually executed as a part of the OS on the hardware illustrated in FIG. It is realized by doing.

【0025】送信データサイズ管理部102は、各タス
クの送信データサイズを記憶する。図5(a)にその一
例を示す。同図ではタスクA、B、Cの送信データサイ
ズは、それぞれ32、64、64バイトである。送信要
求受付部103は、他のタスクへの送信データを有して
いるタスクからの送信要求を受け付け、さらに、その送
信データをデータ格納部104に格納する。ここで、送
信要求には、当該タスクの送信データエリアに格納され
た当該送信データの先頭アドレスと、データ格納部10
4内のキューの指定とが含まれる。送信要求受付部10
3は、データ格納部104に空きがない場合には、送信
要求の受け付けを保留し、データ格納部104に空きが
ある場合には、送信データサイズ管理部102から当該
タスクの送信データサイズを読み出して、当該タスクの
データエリア中の指定されたアドレスから送信データサ
イズ分のデータを読み出して、データ格納部104の指
定されたキューに格納する。
The transmission data size management unit 102 stores the transmission data size of each task. FIG. 5A shows an example. In the figure, the transmission data sizes of tasks A, B, and C are 32, 64, and 64 bytes, respectively. The transmission request receiving unit 103 receives a transmission request from a task having transmission data to another task, and further stores the transmission data in the data storage unit 104. Here, the transmission request includes the start address of the transmission data stored in the transmission data area of the task and the data storage unit 10.
4 designation of the queue. Transmission request receiving unit 10
No. 3, when there is no free space in the data storage unit 104, the reception of the transmission request is suspended, and when there is a free space in the data storage unit 104, the transmission data size of the task is read from the transmission data size management unit 102. Then, data corresponding to the transmission data size is read from the specified address in the data area of the task, and stored in the specified queue of the data storage unit 104.

【0026】データ格納部104は、送信要求受付部1
03により受け付けられた送信データを一時的に記憶及
び管理する。そのためデータ格納部104は、先入れ先
だし式の複数のキューと、各キューに対応するキュー管
理テーブルとを有する。受信データサイズ管理部105
は、各タスクの受信データサイズを記憶する。図5
(b)にその一例を示す。同図ではタスクA、B、Cの
受信データサイズは、それぞれ32、64、128バイ
トである。
The data storage unit 104 includes the transmission request receiving unit 1
03 temporarily stores and manages the transmission data received. Therefore, the data storage unit 104 has a plurality of first-in first-out queues and a queue management table corresponding to each queue. Received data size management unit 105
Stores the received data size of each task. FIG.
(B) shows an example. In the figure, the received data sizes of tasks A, B, and C are 32, 64, and 128 bytes, respectively.

【0027】受信要求受付部106は、タスクから受信
要求(キューの指定と、受信データエリアに格納すべき
受信データの先頭アドレス)を受け付け、受信データサ
イズ管理部105から当該タスクの受信データサイズを
読み出し、データ格納部104からのデータ抽出を要求
する抽出要求(上記のキューの指定と先頭アドレスと受
信データサイズ)をデータ抽出部108に通知する。
The reception request receiving unit 106 receives a reception request (designation of a queue and the start address of reception data to be stored in the reception data area) from the task, and receives the reception data size of the task from the reception data size management unit 105. The data extraction unit 108 is notified of an extraction request (the above-described queue designation, head address, and received data size) for reading and extracting data from the data storage unit 104.

【0028】データ抽出部108は、データの抽出要求
を受けると、指定されたキューに受信データサイズ分の
データが記憶されていれか否かをチェックして、記憶さ
れている場合には当該データを読み出してデータ転送部
109に転送指示(読み出したデータと上記先頭アドレ
スと受信データサイズ)を通知する。記憶されていない
場合には、所定時間をあけて再度チェックを繰り返す。
Upon receiving a data extraction request, the data extraction unit 108 checks whether or not data corresponding to the reception data size is stored in the designated queue. And notifies the data transfer unit 109 of a transfer instruction (the read data, the above-described head address, and the received data size). If not, the check is repeated again after a predetermined time.

【0029】データ転送部109は、転送指示を受け
て、当該受信データサイズ分のデータを、受信要求で指
定されたアドレスが示す格納先に転送する。 <データ格納部104>図6は、データ格納部104の
データ格納方式の一例を示す説明図である。この例では
データ格納部104は、キュー21a、22a、23a
とキュー管理テーブル21b、22b、23bとを有し
ている。
Upon receiving the transfer instruction, the data transfer section 109 transfers the data of the received data size to the storage location indicated by the address specified in the reception request. <Data Storage Unit 104> FIG. 6 is an explanatory diagram showing an example of a data storage system of the data storage unit 104. In this example, the data storage unit 104 stores the queues 21a, 22a, and 23a.
And queue management tables 21b, 22b and 23b.

【0030】キュー21aは、何れかのタスクからタス
クA宛の送信データを一時的に記憶するバッファであ
り、物理的にはメモリ2におけるOSのメモリ領域(デ
ータエリア)中に確保されるが、論理的にはキュー管理
テーブル21bとあいまって先入れ先だし方式のキュー
として構成される。キュー21aで管理されるデータの
最小サイズは、そのキューを介して送受信されるデータ
の送信データサイズと受信データサイズの最大公約数と
しておけばよい。図5(a)、図5(b)に示したよう
に、キュー21aに送信するタスクB、Cの送信データ
サイズはそれぞれ64バイトであり、タスクAの受信デ
ータサイズは32バイトであるから、これらの最大公約
数32バイトとしておけばよい。
The queue 21a is a buffer for temporarily storing transmission data addressed to the task A from any task, and is physically secured in the memory area (data area) of the OS in the memory 2. Logically, it is configured as a first-in first-out queue in combination with the queue management table 21b. The minimum size of the data managed by the queue 21a may be set to the greatest common divisor of the transmission data size and the reception data size of the data transmitted / received via the queue. As shown in FIGS. 5A and 5B, the transmission data size of each of the tasks B and C to be transmitted to the queue 21a is 64 bytes, and the reception data size of the task A is 32 bytes. The greatest common divisor may be 32 bytes.

【0031】キュー管理テーブル21bは、キュー21
aの状態を管理するため、OSのメモリ領域(データエ
リア)中に確保されたキュー21a用の領域について、
そのアドレス、データのサイズ、データの個数などを管
理するためのテーブルである。キュー22a、23a、
キュー管理テーブル22b、23bについても同様であ
る。
The queue management table 21b stores the queue 21
In order to manage the state of a, the area for the queue 21a secured in the memory area (data area) of the OS is
This is a table for managing the address, data size, number of data, and the like. Queues 22a, 23a,
The same applies to the queue management tables 22b and 23b.

【0032】また、キューの数はデータを受信するタス
クの数及び各タスクが受信するデータの種類に応じて決
められる。同図でキューの数を3つとしているのは、タ
スクA、B、Cがそれぞれ1種類のデータを他のタスク
から受信することを前提としている。仮に、タスクAが
複数種類のデータを他のタスクから受信するのであれ
ば、タスクA用にその数のキューを設けてもよいし、1
つのキューで済ましてもよい。さらに、複数のタスクが
同種のデータを受信する場合には、1つのキューを共用
するようにしてもよい。 <キュー管理テーブル>図7(a)(b)は、キュー2
1a、キュー管理テーブル21bのより詳細な構成を示
す説明図である。
The number of queues is determined according to the number of tasks that receive data and the type of data that each task receives. The reason why the number of queues is three in the figure is that tasks A, B, and C each receive one type of data from another task. If task A receives a plurality of types of data from other tasks, the same number of queues may be provided for task A,
One queue may be enough. Further, when a plurality of tasks receive the same type of data, one queue may be shared. <Queue Management Table> FIGS. 7A and 7B show queue 2
FIG. 1A is an explanatory diagram showing a more detailed configuration of a queue management table 21b.

【0033】同図(a)おいて71〜75は、リング状
の5個のデータ記憶領域を示す。76はデータが記憶さ
れている先頭のデータ記憶領域を示すヘッド(head)ポ
インタである。77はデータが記憶されている末尾を示
すテイル(tail)ポインタである。同図(b)におい
て、キュー管理テーブル21bは、「データサイズ」、
「ヘッドポインタ」、「テイルポインタ」、「最大
数」、「空き数」、「使用数」、「受信要求待ち行列」
とを記憶する。
In FIG. 6A, reference numerals 71 to 75 denote five ring-shaped data storage areas. Reference numeral 76 denotes a head pointer indicating the first data storage area in which data is stored. Reference numeral 77 denotes a tail pointer indicating the end where data is stored. In FIG. 3B, the queue management table 21b includes “data size”,
"Head pointer", "Tail pointer", "Maximum number", "Free number", "Use number", "Reception request queue"
Is stored.

【0034】ここで「データサイズ」は、当該キューの
各データ記憶領域のデータサイズである。同図の例では
データサイズが32バイトとなっている。このデータサ
イズは、キュー21aを介してデータを受信するタスク
Aの受信データサイズが32バイトであり、キュー21
aを介してデータを送信するタスクB、Cの送信データ
サイズがそれぞれ64バイトであることから、最大公約
数の32バイトと定められている。
Here, the "data size" is the data size of each data storage area of the queue. In the example shown in the figure, the data size is 32 bytes. This data size is such that the received data size of task A that receives data via queue 21a is 32 bytes,
Since the transmission data size of tasks B and C for transmitting data via a is 64 bytes, the maximum common divisor is set to 32 bytes.

【0035】「ヘッドポインタ(head)」、「テイルポ
インタ(tail)」は、それぞれキューデータの先頭、末尾
を示すポインタである。同図の例では、ヘッドポインタ
がデータ記憶領域72を、テイルポインタがデータ記憶
領域74を指している状態を示している。「最大数」、
「空き数」、「使用数」はそれぞれ、データ記憶領域の
全数、空きのデータ記憶領域の数、使用中のデータ記憶
領域の数を示す。同図の例では、最大数が5、空き数が
2、使用数が3である状態を示している。
A "head pointer (head)" and a "tail pointer (tail)" are pointers indicating the head and end of queue data, respectively. In the example shown in the figure, the head pointer points to the data storage area 72 and the tail pointer points to the data storage area 74. "Maximum number",
The "number of free spaces" and "the number of used spaces" indicate the total number of data storage regions, the number of free data storage regions, and the number of data storage regions in use, respectively. In the example of the figure, the maximum number is 5, the number of free spaces is 2, and the number of used spaces is 3.

【0036】「受信要求待ち行列」は、当該キューに対
して発行された受信要求の待ち行列(キュー)である。
同図ではタスクAからの受信要求が待たされている状態
を示している。受信要求は、要求元のタスク名と、当該
タスクの受信データ領域の格納先アドレスとを含んでい
る。 <送信要求受け付け処理>図8は、タスク制御装置にお
ける送信要求受付処理を示すフローチャートである。
The "reception request queue" is a queue (queue) of reception requests issued to the queue.
The figure shows a state in which a reception request from task A is waiting. The reception request includes the task name of the request source and the storage destination address of the reception data area of the task. <Transmission Request Accepting Process> FIG. 8 is a flowchart showing a transmission request accepting process in the task control device.

【0037】同図において送信要求受付部103は、何
れかのタスクから送信要求(送信データの先頭アドレス
と、キューの指定)を受信したとき(ステップ80)、
送信データサイズ管理部102から要求元のタスクの送
信データサイズを抽出して(ステップ81)、指定され
たキューのキュー管理部を参照して当該キューに空きが
あるかどうかを判定し、空きがない場合には要求元のタ
スクにその旨を示すエラーメッセージを通知して(ステ
ップ82、83)本処理を終了する。
In FIG. 7, when a transmission request (a head address of transmission data and designation of a queue) is received from any of the tasks (step 80),
The transmission data size of the requesting task is extracted from the transmission data size management unit 102 (step 81), and the queue management unit of the designated queue is referred to to determine whether or not the queue has a free space. If not, an error message indicating the fact is notified to the requesting task (steps 82 and 83), and the process ends.

【0038】例えば、タスクBからの送信要求(宛て先
がキュー21a、タスクBの送信データエリアに格納さ
れた送信データの先頭アドレス)を受けた場合、送信要
求受付部103は、送信データサイズ管理部102から
タスクBの送信データサイズ(図5(a)に示した64
バイト)を抽出する。さらに、送信要求受付部103
は、タスクBの送信データサイズと、キュー管理テーブ
ル21bの”空き数”と”データサイズ”の積との大小
関係を調べることにより、空きがあるかどうかをチェッ
クする。空きがなければタスクBにエラーメッセージを
通知して本処理を終了する。
For example, when a transmission request from the task B is received (the destination is the queue 21a, the head address of the transmission data stored in the transmission data area of the task B), the transmission request receiving unit 103 manages the transmission data size. The transmission data size of the task B from the unit 102 (64 shown in FIG.
Byte). Further, the transmission request receiving unit 103
Checks whether there is a vacancy by examining the magnitude relationship between the transmission data size of task B and the product of the "number of vacancies" and "data size" in the queue management table 21b. If there is no free space, an error message is notified to task B, and the process ends.

【0039】空きがある場合には、送信要求受付部10
3は要求元のタスクBの送信データエリア内の指定され
たアドレスから送信データサイズ分(64バイト)のデ
ータをデータ格納部104内の当該キュー21aに転送
する(ステップ82、84)とともに、キュー管理テー
ブルを更新する(ステップ85)。例えば、タスクBか
らキュー21aへの送信要求の場合、図5(a)に示し
たようにタスクBの送信データサイズが64バイトであ
り、図7(b)に示したようにキュー21aのデータサ
イズが32バイトであるので、キュー管理テーブル21
bの”空き数”が2以上である場合は、送信要求受付部
103により空きがあると判定される。タスクBの64
バイトの送信データは、送信要求受付部103によりキ
ュー21aに転送され、2個のキューデータとして格納
される。その際、キュー管理部21bの”使用数”は2
増え、”空き数”は2減る。
If there is a vacancy, the transmission request receiving unit 10
3 transfers the data of the transmission data size (64 bytes) from the specified address in the transmission data area of the requesting task B to the queue 21a in the data storage unit 104 (steps 82 and 84), and The management table is updated (step 85). For example, in the case of a request for transmission from the task B to the queue 21a, the transmission data size of the task B is 64 bytes as shown in FIG. 5A, and the data of the queue 21a is transmitted as shown in FIG. Since the size is 32 bytes, the queue management table 21
If the “number of vacancies” of b is 2 or more, the transmission request receiving unit 103 determines that there is a vacancy. Task B 64
The byte transmission data is transferred to the queue 21a by the transmission request receiving unit 103 and stored as two pieces of queue data. At this time, the “number of uses” of the queue management unit 21b is 2
Increase, and the number of "empties" decreases by 2.

【0040】キュー管理テーブルの更新後、データ抽出
部108は、キュー管理テーブルに受信要求が待ち行列
として登録されている場合には、受信データサイズ管理
部105を参照して受信待ちのタスクの受信データサイ
ズを読み出して(ステップ86、87)、当該キューに
受信データサイズ分のデータがあれば、キューから受信
待ちタスクのデータ領域にデータを転送し(ステップ8
8、89)、キュー管理テーブルを更新する(ステップ
90)。このようにキュー管理テーブルの更新後にデー
タ抽出部108が、受信要求が登録されているか否かを
チェックするのは、データ待ちのタスクがある場合に、
そのタスク宛の送信要求が発行された時点で直ちに、デ
ータを転送するためである。 <受信要求受け付け処理>図9は、タスク制御装置にお
ける受信要求受付処理を示すフローチャートである。
After updating the queue management table, if a reception request is registered as a queue in the queue management table, the data extraction unit 108 refers to the reception data size management unit 105 to receive the task waiting for reception. The data size is read (steps 86 and 87), and if there is data of the received data size in the queue, the data is transferred from the queue to the data area of the task waiting for reception (step 8).
8, 89), and updates the queue management table (step 90). As described above, the data extraction unit 108 checks whether or not a reception request has been registered after updating the queue management table, when there is a task waiting for data.
This is because data is transferred as soon as a transmission request addressed to the task is issued. <Reception Request Accepting Process> FIG. 9 is a flowchart showing a receiving request accepting process in the task control device.

【0041】同図において、受信要求受付部106は、
何れかのタスクから受信要求(受信データエリアの格納
先アドレスと、キューの指定)を受信したとき(ステッ
プ91)、受信データサイズ管理部105を参照して当
該タスクの受信データサイズを読み出して(ステップ9
2)、当該キューに受信データサイズ分のデータがある
かどうかを判定する(ステップ93)。
In the figure, the reception request receiving unit 106
When a reception request (storage destination address of reception data area and designation of queue) is received from any task (step 91), the reception data size of the task is read out with reference to the reception data size management unit 105 (step 91). Step 9
2) It is determined whether there is data of the received data size in the queue (step 93).

【0042】例えば、タスクAが受信要求を発行した場
合、受信要求受付部106は、受信データサイズ管理部
105からタスクAの受信データサイズ(32バイト)
を読み出し、キュー管理テーブル21bの”データサイ
ズ”と”使用数”とから受信データサイズ分のデータが
あるかどうかを判定する。この場合、キュー管理テーブ
ル21bの”データサイズ”が32バイトであるの
で、”使用数”が1以上であればタスクAが必要とする
データが存在していると判定される。
For example, when task A issues a reception request, reception request receiving section 106 receives data size of task A (32 bytes) from reception data size management section 105.
Is read, and it is determined from the “data size” and “number of uses” in the queue management table 21b whether or not there is data of the received data size. In this case, since the “data size” of the queue management table 21b is 32 bytes, if the “number of uses” is 1 or more, it is determined that data required by the task A exists.

【0043】受信データサイズ分のデータがある場合に
は、データ抽出部108は、キューからその受信データ
サイズ分のデータを取り出す。さらに、データ転送部1
09は、取り出されたデータを、タスクの受信データエ
リアの指定されたアドレスに転送する(ステップ9
5)。その際、データ抽出部108は、キュー管理テー
ブルを更新する(ステップ96)。
If there is data of the received data size, the data extracting unit 108 extracts data of the received data size from the queue. Further, the data transfer unit 1
09 transfers the fetched data to the specified address of the task reception data area (step 9).
5). At that time, the data extraction unit 108 updates the queue management table (Step 96).

【0044】例えば、タスクAからの受信要求があった
場合には、キュー21aから32バイトのキューデータ
がデータ抽出部108によって取り出されて、データ転
送部109によってタスクAの受信データエリアの指定
されたアドレスに転送される。また、受信要求受付部1
06は、当該キューに受信データサイズ分のデータがな
い場合には、当該タスクの受信要求を、キュー管理テー
ブルの受信要求の待ち行列に登録する(ステップ93、
94)。
For example, when there is a reception request from task A, 32-byte queue data is extracted from the queue 21a by the data extraction unit 108, and the data transfer unit 109 specifies the reception data area of the task A. Is forwarded to the specified address. Also, the reception request receiving unit 1
06, if there is no data of the reception data size in the queue, the reception request of the task is registered in the reception request queue of the queue management table (step 93,
94).

【0045】以上のように構成された本発明の第1実施
形態におけるタスク制御装置について、以下その動作を
説明する。送信データサイズが32バイトのタスクAか
ら、受信データサイズが64バイトのタスクBにデータ
を送信する場合を例にその動作を説明する。まず、タス
クAは、タスクAの送信データエリアに32バイトの送
信データを格納しておき、送信要求受付部103に対し
て送信要求を出す。この送信要求は送信データエリア内
の送信データの先頭アドレスと、キュー22aを示す宛
て先とからなる。
The operation of the task control device according to the first embodiment of the present invention configured as described above will be described below. The operation will be described by taking as an example a case where data is transmitted from task A having a transmission data size of 32 bytes to task B having a reception data size of 64 bytes. First, task A stores 32-byte transmission data in the transmission data area of task A, and issues a transmission request to transmission request receiving section 103. This transmission request includes a head address of transmission data in the transmission data area and a destination indicating the queue 22a.

【0046】キュー22aは、図10(a)に示すよう
に空きの状態であるとする。送信要求受付部103は、
この送信要求を受信すると、送信データサイズ管理部1
02からタスクAの送信データサイズ(32バイト)を
抽出して(ステップ81)、宛て先として指定されたキ
ュー22aのキュー管理テーブル22bを参照して当該
キューに空きがあるかどうかを判定する。この場合空き
があるので、送信要求受付部103は、要求元のタスク
Aの送信データエリア内の指定されたアドレスから送信
データサイズ分(32バイト)のデータをデータ格納部
104内の当該キュー22aに転送するとともに、キュ
ー管理テーブル22bを更新する。 このときのキュー
22aとキュー管理テーブル22bの状態を、図10
(b)に示す。同図(b)では、32バイトのキューデ
ータ1個が格納されている。
It is assumed that the queue 22a is empty as shown in FIG. The transmission request receiving unit 103
Upon receiving the transmission request, the transmission data size management unit 1
The transmission data size (32 bytes) of the task A is extracted from 02 (step 81), and it is determined whether or not the queue has a free space by referring to the queue management table 22b of the queue 22a specified as the destination. In this case, since there is a space, the transmission request receiving unit 103 stores the data of the transmission data size (32 bytes) from the specified address in the transmission data area of the task A of the request source in the queue 22a in the data storage unit 104. And updates the queue management table 22b. The state of the queue 22a and the queue management table 22b at this time are shown in FIG.
(B). In FIG. 3B, one piece of 32-byte queue data is stored.

【0047】さらに、再度、タスクAからタスクBへの
送信要求が出された場合、上記と同様にして、32バイ
トの送信データがキュー22aに格納され、キュー管理
テーブル22bが更新される。この状態を図10(c)
に示す。このようにして送信側のタスクは、受信側のタ
スクのデータサイズとは無関係に、いつでも送信要求を
発行することができる。
Further, when the transmission request from the task A to the task B is issued again, the 32-byte transmission data is stored in the queue 22a and the queue management table 22b is updated in the same manner as described above. This state is shown in FIG.
Shown in In this way, the task on the transmitting side can issue a transmission request at any time regardless of the data size of the task on the receiving side.

【0048】さらに、図10(c)の状態で、タスクB
が受信要求を発行したものとする。この受信要求は、タ
スクBの受信データエリア内の格納先アドレスと、キュ
ー22aの指定とからなる。受信要求受付部106は、
受信データサイズ管理部105からタスクBの受信デー
タサイズ(64バイト)を読み出し、キュー管理テーブ
ル22bの”データサイズ”と”使用数”とから受信デ
ータサイズ分のデータがあるかどうかを判定する。この
場合、キュー管理テーブル22bの”データサイズ”が
32バイトであり、”使用数”が2以上であるので、タ
スクBが必要とするデータが存在していると判定され
る。
Further, in the state shown in FIG.
Has issued a reception request. The reception request includes a storage destination address of the task B in the reception data area and designation of the queue 22a. The reception request receiving unit 106
The reception data size (64 bytes) of the task B is read from the reception data size management unit 105, and it is determined whether or not there is data of the reception data size based on “data size” and “number of uses” in the queue management table 22b. In this case, since the “data size” of the queue management table 22b is 32 bytes and the “number of uses” is 2 or more, it is determined that the data required by the task B exists.

【0049】さらに、データ抽出部108は、キュー2
2aからその受信データサイズ分のデータを取り出す。
さらに、データ転送部109は、取り出されたデータ
を、タスクの受信データエリアの指定されたアドレスに
転送する。その際、データ抽出部108は、キュー管理
テーブルを更新し、その結果、図10(a)の状態に戻
る。
Further, the data extracting unit 108
Data corresponding to the received data size is extracted from 2a.
Further, the data transfer unit 109 transfers the extracted data to a specified address in the task reception data area. At that time, the data extraction unit 108 updates the queue management table, and as a result, returns to the state of FIG.

【0050】もし、図10(b)の状態でタスクBが受
信要求を発行した場合、キュー22a内のキューデータ
が受信データサイズに足りないので、タスクBの受信要
求は、キュー管理テーブル22bの受信待ちキューに登
録される。この後、図10(c)の状態になった時点
で、データ転送部109によりタスクBに64バイトの
データが転送される。
If the task B issues a reception request in the state shown in FIG. 10B, the queue data in the queue 22a is smaller than the reception data size. Therefore, the reception request of the task B is stored in the queue management table 22b. It is registered in the reception queue. Thereafter, when the state shown in FIG. 10C is reached, 64-byte data is transferred to the task B by the data transfer unit 109.

【0051】このようにして受信側のタスクは、送信側
のタスクのデータサイズとは無関係に、いつでも受信要
求を発行することができ、1回の受信要求の発行で1度
に必要なデータサイズの受信データを得ることができ
る。なお、上記実施形態においてタクス制御装置は、テ
レビジョン受像機(図2)、セットトップボックス(図
3)に実装される場合を示したが、図4の機能ブロック
図の機能はソフトウェアにより実現されるので、マルチ
タスクをサポートするCPUを有するハードウェア構成
であれば実施することができる。例えば、パーソナルコ
ンピュータやワークステーションや携帯用情報機器等に
おいても実施することができる。また、図4の機能を実
現するための既に説明したソフトウェアは、フロッピー
ディスクや光ディスク等の記憶媒体に記録しあるいは通
信網を介して流通させることができる。したがって、こ
の記憶媒体を読み取り可能なコンピュータは、記憶媒体
から読み取ったソフトウェアを実行することにより本発
明を実施することができる。 <第2の実施形態>図11は、第2の実施形態における
タスク制御装置200の構成を示すブロック図である。
In this way, the task on the receiving side can issue a reception request at any time regardless of the data size of the task on the transmission side, and the data size required at one time by issuing one reception request can be obtained. Can be obtained. In the above embodiment, the case where the tax control device is mounted on the television receiver (FIG. 2) and the set-top box (FIG. 3) has been described. However, the functions of the functional block diagram of FIG. 4 are realized by software. Therefore, the present invention can be implemented with any hardware configuration having a CPU that supports multitasking. For example, the present invention can be implemented in a personal computer, a workstation, a portable information device, or the like. The software for realizing the functions shown in FIG. 4 can be recorded on a storage medium such as a floppy disk or an optical disk or distributed via a communication network. Therefore, a computer that can read the storage medium can execute the present invention by executing the software read from the storage medium. <Second Embodiment> FIG. 11 is a block diagram showing a configuration of a task control device 200 according to a second embodiment.

【0052】同図のタスク制御装置200は、図4のタ
スク制御装置101に比べて、送信要求受付部103の
代わりに送信要求受付部201備え、新たに直接転送部
202を追加している点のみが異なり、他の構成要素は
同じである。ハードウェア構成についても、図1と同じ
である。以下同じ点は説明を省略して、異なる点を中心
に説明する。
The task control device 200 shown in FIG. 10 is different from the task control device 101 in FIG. 4 in that a transmission request reception unit 201 is provided instead of the transmission request reception unit 103, and a direct transfer unit 202 is newly added. Only the differences are the other components are the same. The hardware configuration is the same as in FIG. Hereinafter, the same points will not be described, and different points will be mainly described.

【0053】図11において、送信要求受付部201
は、送信要求受付部103の機能に加えて、送信要求を
受けた時点で、既にその送信要求に対応する受信要求が
データ格納部104内の何れかのキュー管理テーブルに
登録されていれば、データ格納部104に格納しない
で、直接転送部202に直接転送を指示する。直接転送
部202は、送信要求受付部201に直接転送を指示さ
れたとき、送信要求元のタスクの送信データエリアか
ら、受信要求元のタスクの受信データエリアに直接デー
タを転送する。 <送信要求受付処理>図12は、タスク制御装置におけ
る送信要求受付処理を示すフローチャートである。同図
の処理内容は、図8の送信要求受付処理に対して、新た
にステップ121〜123が追加されている。同じ点は
説明を省略し、異なる点のみ説明する。
In FIG. 11, a transmission request receiving unit 201
In addition to the function of the transmission request receiving unit 103, if a reception request corresponding to the transmission request is already registered in any of the queue management tables in the data storage unit 104 at the time of receiving the transmission request, The direct transfer unit 202 is instructed to transfer directly without storing the data in the data storage unit 104. When direct transmission is instructed by the transmission request receiving unit 201, the direct transfer unit 202 directly transfers data from the transmission data area of the task of the transmission request source to the reception data area of the task of the reception request source. <Transmission Request Accepting Process> FIG. 12 is a flowchart showing a transmission request accepting process in the task control device. In the processing contents of FIG. 11, steps 121 to 123 are newly added to the transmission request reception processing of FIG. The description of the same points will be omitted, and only different points will be described.

【0054】同図において、送信要求受付部201は、
タスクから送信要求を受けて送信データサイズを確認し
たとき(ステップ80、81)、その送信要求に対応す
る受信要求がデータ格納部104内の何れかのキュー管
理テーブルに登録されているか否かを判定する(ステッ
プ121)。ここで、送信要求に対応する受信要求とい
うのは、送信データサイズと受信データサイズとが同じ
で、かつ送信要求の宛て先のキューと受信要求が待たさ
れているキューとが同じであることをいう。
In the figure, the transmission request receiving unit 201
When a transmission request is received from the task and the transmission data size is confirmed (steps 80 and 81), it is determined whether a reception request corresponding to the transmission request is registered in any of the queue management tables in the data storage unit 104. A determination is made (step 121). Here, the reception request corresponding to the transmission request means that the transmission data size and the reception data size are the same, and the queue to which the transmission request is addressed and the queue in which the reception request is waiting are the same. Say.

【0055】送信要求に対応する受信要求が登録されて
いる場合は、送信要求受付部201は、直接転送部20
2に直接転送を指示する。直接転送部202は、送信要
求元のタスクの送信データエリアから、受信要求元のタ
スクの受信データエリアに送信データサイズ分のデータ
を直接転送し(ステップ122)、当該受信要求をキュ
ー管理テーブルから削除する(ステップ123)。
If a reception request corresponding to the transmission request is registered, the transmission request receiving unit 201
2 is instructed to transfer directly. The direct transfer unit 202 directly transfers the data of the transmission data size from the transmission data area of the task of the transmission request source to the reception data area of the task of the reception request source (step 122), and transfers the reception request from the queue management table. It is deleted (step 123).

【0056】送信要求に対応する受信要求が登録されて
いない場合は、第1実施形態と同様である。以上のよう
に、本実施形態のタスク制御装置200は、送信要求発
行時にそれに対応する受信要求が既に登録されている場
合に、送信タスクと受信タスクのデータエリア間で直接
データ転送を行うので、データ格納部104への格納と
読み出し動作が不要になる分、高速にタスク間のデータ
通信を実現することができる。
When the reception request corresponding to the transmission request is not registered, the process is the same as in the first embodiment. As described above, the task control device 200 of the present embodiment directly performs data transfer between the data areas of the transmission task and the reception task when the reception request corresponding to the transmission request is already registered when the transmission request is issued. Data communication between tasks can be realized at high speed because the operation of storing and reading data in the data storage unit 104 becomes unnecessary.

【0057】なお、ステップ121における、対応する
受信要求の有無の判定は、サイズとキューとに基づいて
行われているが、直接転送を行う送信要求元のタスクと
受信要求元のタスク(あるいはキュー)とをあらかじめ
テーブルとして用意しておき、テーブル参照により判定
するようにしてもよい。 <第3の実施形態>図13は、第3の実施形態における
タスク制御装置300の構成を示すブロック図である。
Although the determination of the presence or absence of the corresponding reception request in step 121 is made based on the size and the queue, the task of the transmission request source and the task of the reception request source (or queue ) May be prepared in advance as a table, and the determination may be made by referring to the table. <Third Embodiment> FIG. 13 is a block diagram showing a configuration of a task control device 300 according to a third embodiment.

【0058】同図のタスク制御装置300は、図4のタ
スク制御装置101に比べて、送信要求受付部103の
代わりに送信要求受付部301を、受信要求受付部10
6の代わりに受信要求受付部302、データ格納部10
4の代わりにデータ格納部304を備え、新たに直接転
送部303を追加している点のみが異なり、他の構成要
素は同じである。ハードウェア構成についても、図1と
同じである。以下同じ点は説明を省略して、異なる点を
中心に説明する。
4 differs from the task control device 101 of FIG. 4 in that the transmission request reception unit 301 is replaced by the transmission request reception unit 301 instead of the transmission request reception unit 103.
6, a reception request receiving unit 302 and a data storage unit 10
4 except that a data storage unit 304 is provided and a direct transfer unit 303 is newly added, and the other components are the same. The hardware configuration is the same as in FIG. Hereinafter, the same points will not be described, and different points will be mainly described.

【0059】図13において、送信要求受付部301
は、送信要求受付部103の機能に加えて、送信要求を
受け付けた時点で、その送信要求が特定の送信要求であ
る場合には、送信要求で宛て先として指定されたキュー
にデータを格納しないで、キュー管理テーブルに送信要
求を登録する。ここで特定の送信要求とは、タスク間の
直接転送が可能な送信要求であって、あらかじめ定めら
れた送信要求である。例えば特定の送信要求は、送信デ
ータサイズと受信データサイズとが同じで、キューが同
じであるような受信要求が発行される可能性があればよ
い。
Referring to FIG. 13, transmission request receiving section 301
Does not store the data in the queue specified as the destination in the transmission request when the transmission request is a specific transmission request at the time of receiving the transmission request in addition to the function of the transmission request receiving unit 103 Then, a transmission request is registered in the queue management table. Here, the specific transmission request is a transmission request that allows direct transfer between tasks, and is a predetermined transmission request. For example, a specific transmission request may have a possibility that a reception request having the same transmission data size and the same reception data size and the same queue will be issued.

【0060】受信要求受付部302は、受信要求受付部
106の機能に加えて、受信要求を受けた時点で、既に
その受信要求に対応する特定の送信要求がデータ格納部
304内の何れかのキュー管理テーブルに登録されてい
れば、直接転送部303に直接転送を指示する。ここで
受信要求に対応する送信要求というのは、送信データサ
イズと受信データサイズとが同じで、かつ受信要求の宛
て先のキューと送信要求が待たされているキューとが同
じであることをいう。
In addition to the function of reception request receiving section 106, reception request receiving section 302 has already received a specific transmission request corresponding to the reception request at the time of receiving the reception request. If it is registered in the queue management table, it instructs the direct transfer unit 303 to perform direct transfer. Here, the transmission request corresponding to the reception request means that the transmission data size and the reception data size are the same, and the destination queue of the reception request is the same as the queue in which the transmission request is waiting. .

【0061】直接転送部303は、受信要求受付部30
2に直接転送を指示されたとき、送信要求元のタスクの
送信データエリアから、受信要求元のタスクの受信デー
タエリアに直接データを転送する。データ格納部304
は、データ格納部104の機能に加えて、各キュー管理
テーブル内に特定の送信要求を待ち行列として一時的に
保持する。 <送信要求受付処理>図14は、タスク制御装置300
における送信要求受付処理を示すフローチャートであ
る。同図の処理内容は、図8の送信要求受付処理に対し
て、新たにステップ141、142が追加されている。
同じ点は説明を省略し、異なる点のみ説明する。
[0061] The direct transfer unit 303 includes the reception request receiving unit 30.
2, when the direct transfer is instructed, the data is directly transferred from the transmission data area of the task of the transmission request source to the reception data area of the task of the reception request source. Data storage unit 304
Stores, in addition to the function of the data storage unit 104, a specific transmission request as a queue in each queue management table. <Transmission Request Accepting Process> FIG.
5 is a flowchart showing a transmission request receiving process in the embodiment. In the processing contents of FIG. 14, steps 141 and 142 are newly added to the transmission request reception processing of FIG.
The description of the same points will be omitted, and only different points will be described.

【0062】同図において、送信要求受付部301は、
タスクから送信要求を受けて送信データサイズを確認し
たとき(ステップ80、81)、その送信要求が特定の
送信要求であるか否かを判定する(ステップ141)。
特定の送信要求である場合には、送信要求受付部301
は、当該送信要求をデータ格納部304内の対応するキ
ュー管理テーブルに登録する。このとき送信データは、
データ格納部304のキューに格納されない。
In the figure, the transmission request receiving unit 301
When a transmission request is received from the task and the transmission data size is confirmed (steps 80 and 81), it is determined whether or not the transmission request is a specific transmission request (step 141).
If the request is a specific transmission request, the transmission request receiving unit 301
Registers the transmission request in the corresponding queue management table in the data storage unit 304. At this time, the transmission data is
It is not stored in the queue of the data storage unit 304.

【0063】特定の送信要求でない場合は、第1実施形
態と同様である。 <受信要求受付処理>図15は、タスク制御装置300
における受信要求受付処理を示すフローチャートであ
る。同図の処理内容は、図9の受信要求受付処理に対し
て、新たにステップ151〜153とが追加されてい
る。同じ点は説明を省略し、異なる点のみ説明する。
If it is not a specific transmission request, it is the same as in the first embodiment. <Reception Request Accepting Process> FIG.
9 is a flowchart showing a reception request reception process in FIG. In the processing contents of FIG. 14, steps 151 to 153 are newly added to the reception request reception processing of FIG. The description of the same points will be omitted, and only different points will be described.

【0064】同図において、受信要求受付部302は、
タスクから受信要求を受けて受信データサイズを確認し
たとき(ステップ91、92)、その受信要求に対応す
る送信要求がデータ格納部304内の何れかのキュー管
理テーブルに登録されているか否かを判定する(ステッ
プ151)。受信要求に対応する送信要求が登録されて
いる場合は、受信要求受付部302は、直接転送部30
3に直接転送を指示する。直接転送部303は、登録さ
れていた送信要求元のタスクの送信データエリアから、
受信要求元のタスクの受信データエリアに送信データサ
イズ分のデータを直接転送し(ステップ152)、当該
送信要求をキュー管理テーブルから削除する(ステップ
153)。
In the figure, the reception request receiving unit 302
When a reception request is received from the task and the reception data size is confirmed (steps 91 and 92), it is determined whether a transmission request corresponding to the reception request is registered in any of the queue management tables in the data storage unit 304. A determination is made (step 151). If the transmission request corresponding to the reception request is registered, the reception request receiving unit 302
3 is instructed to transfer directly. The direct transfer unit 303 obtains, from the transmission data area of the registered task of the transmission request source,
The data of the transmission data size is directly transferred to the reception data area of the task of the reception request source (step 152), and the transmission request is deleted from the queue management table (step 153).

【0065】受信要求に対応する送信要求が登録されて
いない場合は、第1実施形態と同様である。以上のよう
に、本実施形態のタスク制御装置300は、特定の送信
要求が発行された場合に、送信要求をキュー管理テーブ
ルに登録しておき、対応する受信要求が発行された時点
で、送信タスクと受信タスクのデータエリア間で直接デ
ータ転送を行うので、データ格納部404への格納と読
み出し動作が不要になる分、高速にタスク間のデータ通
信を実現することができる。 <第4の実施の形態>図16は、第4実施形態における
タスク制御装置400に関するハードウェア構成を示す
図である。
When the transmission request corresponding to the reception request is not registered, the processing is the same as in the first embodiment. As described above, when a specific transmission request is issued, the task control device 300 of the present embodiment registers the transmission request in the queue management table, and transmits the transmission request when the corresponding reception request is issued. Since the data transfer is directly performed between the data area of the task and the data area of the receiving task, the data communication between the tasks can be realized at high speed because the operation of storing and reading the data in the data storage unit 404 becomes unnecessary. <Fourth Embodiment> FIG. 16 is a diagram showing a hardware configuration of a task control device 400 according to a fourth embodiment.

【0066】このハードウェアは、ゲート30、CPU
31、メモリ32、I/O部33〜35、CPU41、
メモリ42、I/O部43、44、CPU51、メモリ
52、I/O部53、54を有し、マルチプロセッサ構
成になっている。以下、CPU31、CPU41、CP
U51を中心とするハードウェア部分をそれぞれプロセ
ッサX、プロセッサY、プロセッサZと呼ぶ。
This hardware includes a gate 30, a CPU
31, memory 32, I / O units 33 to 35, CPU 41,
It has a memory 42, I / O units 43 and 44, a CPU 51, a memory 52, I / O units 53 and 54, and has a multiprocessor configuration. Hereinafter, CPU 31, CPU 41, CP
The hardware parts centering on U51 are called processor X, processor Y, and processor Z, respectively.

【0067】プロセッサX、Y、Zは、それぞれ図2に
示したハードウェアとほぼ同等であり、図2のCPU1
と同様にメモリ中のソフトウェアを実行することによっ
て、本発明のタスク制御装置の機能を実現する。各プロ
セッサのソフトウェアは、図2に示したように、マルチ
タスク機能を有するOSの一部、つまりタスク間のデー
タ通信制御の機能を担っている。
The processors X, Y, and Z are substantially the same as the hardware shown in FIG. 2, respectively.
The functions of the task control device of the present invention are realized by executing software in the memory in the same manner as in. As shown in FIG. 2, software of each processor has a part of an OS having a multitasking function, that is, a function of controlling data communication between tasks.

【0068】さらに、プロセッサX、Y、Zは、メモリ
32を介して結合されている。すなわちメモリ32の一
部の記憶領域は、共有メモリであり、どのプロセッサか
らもゲート30を介して利用できるように構成されてい
る。共有メモリは、物理的にはプロセッサY、Zのメモ
リ42、52とは異なるメモリであるが、どのプロセッ
サからも同列にアクセスされる。各プロセッサは、論理
的には共有メモリも自身のメモリと同じように見える。
プロセッサX、Y、Zは、プロセッサ間でもタスクのデ
ータ送受信を行う。
Further, the processors X, Y, and Z are connected via a memory 32. That is, a part of the storage area of the memory 32 is a shared memory, and is configured to be usable from any processor via the gate 30. Although the shared memory is physically different from the memories 42 and 52 of the processors Y and Z, the same memory is accessed from any processor. Each processor logically looks at the shared memory like its own memory.
The processors X, Y, and Z also perform task data transmission and reception between the processors.

【0069】また、各I/O部についても、第1実施形
態と同様である。<タスク制御装置の構成>図17は、
プロセッサXにおけるタスク制御装置400の構成を示
すブロック図である。プロセッサY、Zについても同じ
なので、ここではプロセッサXを代表して説明する。
The I / O units are the same as in the first embodiment. <Configuration of Task Control Device> FIG.
FIG. 3 is a block diagram illustrating a configuration of a task control device 400 in a processor X. Since the same applies to the processors Y and Z, the processor X will be described here as a representative.

【0070】同図のタスク制御装置400は、図4のタ
スク制御装置101に比べて、送信要求受付部103の
代わりに送信要求受付部1703を、送信データサイズ
管理部102の代わりに送信データサイズ管理部171
2を、受信データサイズ管理部105の代わりに受信デ
ータサイズ管理部1705を備え、新たにプロセッサ管
理部1701とデータ配送部1702とが追加されてい
る点のみが異なっている。以下同じ点は説明を省略して
異なる点を中心に説明する。
The task control device 400 shown in FIG. 11 differs from the task control device 101 shown in FIG. 4 in that the transmission request reception unit 1703 is used instead of the transmission request reception unit 103 and the transmission data size is used instead of the transmission data size management unit 102. Management unit 171
2 is different from the reception data size management unit 105 in that a reception data size management unit 1705 is provided instead of the reception data size management unit 105, and a processor management unit 1701 and a data delivery unit 1702 are newly added. Hereinafter, the same points will not be described, and different points will be mainly described.

【0071】プロセッサ管理部1701は、各タスクが
どのプロセッサで実行されているかを記憶している。プ
ロセッサ管理部1701の記憶例を図18に示す。同図
では、タスクAがプロセッサXで、タスクBがプロセッ
サYで、タスクCがプロセッサZで実行されることを示
している。データ配送部1702は、送信要求受付部1
703の指示を受けて、データの送信先が他のプロセッ
サであれば、そのプロセッサに送信データを転送する。
この転送では、送信要求元のタスクの送信データエリア
から、共有メモリを介して当該プロセッサのデータ格納
部104に送信データが格納される。送信要求受付部1
703は、送信要求を受け付けたとき、データの送信先
が他のプロセッサであれば、データ配送部1702に当
該プロセッサへの配送指示を出す。
The processor management section 1701 stores which processor is executing each task. FIG. 18 illustrates a storage example of the processor management unit 1701. In the figure, task A is executed by processor X, task B is executed by processor Y, and task C is executed by processor Z. The data delivery unit 1702 is a transmission request receiving unit 1
In response to the instruction of 703, if the data transmission destination is another processor, the transmission data is transferred to that processor.
In this transfer, the transmission data is stored in the data storage unit 104 of the processor via the shared memory from the transmission data area of the task requesting the transmission. Transmission request receiving unit 1
When the transmission request is received, if the transmission destination of the data is another processor, 703 issues a distribution instruction to the data distribution unit 1702 to the processor.

【0072】送信データサイズ管理部1712、受信デ
ータサイズ管理部1705は、それぞれ送信データサイ
ズ管理部102、受信データサイズ管理部105の機能
に加えて、他のプロセッサの各タスクの送信データサイ
ズ、受信データサイズも記憶する。本実施例では、送信
データサイズ管理部1712、受信データサイズ管理部
1705は、図19、図20に示す送信データサイズ、
受信データサイズを記憶しているものとする。 <送信要求受付処理>図21は、タスク制御装置400
における送信要求受付処理を示すフローチャートであ
る。同図の処理内容は、図8の送信要求受付処理に対し
て、新たにステップ201、202が追加されている点
のみ異なっている。同じ点は説明を省略し、異なる点の
み説明する。
The transmission data size management unit 1712 and the reception data size management unit 1705 have the functions of the transmission data size management unit 102 and the reception data size management unit 105, respectively. The data size is also stored. In the present embodiment, the transmission data size management unit 1712 and the reception data size management unit 1705 determine the transmission data size shown in FIGS.
It is assumed that the received data size is stored. <Transmission Request Accepting Process> FIG.
5 is a flowchart showing a transmission request receiving process in the embodiment. 8 differs from the transmission request receiving process of FIG. 8 only in that steps 201 and 202 are newly added. The description of the same points will be omitted, and only different points will be described.

【0073】同図において、送信要求受付部1703
は、タスクから送信要求を受けて送信データサイズを確
認したとき(ステップ80、81)、プロセッサ管理部
1701を参照して送信要求が他のプロセッサのタスク
宛であるか否かを判定し(ステップ201)、他のプロ
セッサであれば、送信データを当該プロセッサに配送す
るようデータ配送部1702に指示する。このとき、デ
ータ配送部1702は、送信要求元のタスクの送信デー
タエリアから送信データを読み出して、共有メモリを介
して当該プロセッサのデータ格納部104に送信データ
を格納する(ステップ202)。例えば、データ配送部
1702は、共有メモリ(プロセッサ毎に送信要求と送
信データを中継するためのエリアが決められているとす
る)の当該プロセッサ宛のエリアに送信要求と送信デー
タとを格納する。当該エリアからは、当該他のプロセッ
サのデータ格納部104が指定されたキューに格納し
て、キュー管理テーブルを更新する。
In the figure, a transmission request receiving unit 1703
When a transmission request is received from a task and the transmission data size is confirmed (steps 80 and 81), the processor refers to the processor management unit 1701 to determine whether the transmission request is addressed to a task of another processor (step 80). 201), if it is another processor, it instructs the data delivery unit 1702 to deliver the transmission data to the processor. At this time, the data delivery unit 1702 reads out the transmission data from the transmission data area of the task that requested the transmission, and stores the transmission data in the data storage unit 104 of the processor via the shared memory (Step 202). For example, the data delivery unit 1702 stores the transmission request and the transmission data in an area addressed to the shared memory (an area for relaying the transmission request and the transmission data for each processor). From the area, the data storage unit 104 of the other processor stores the data in the designated queue and updates the queue management table.

【0074】以上のようにして、マルチプロセッサシス
テムにおいて、データ配送部1702が送信データを配
送するので、他のプロセッサのタスク宛(又はキュー宛
の)の送信データであっても、送信先のタスクの受信デ
ータサイズと送信データサイズとが一致していなくて
も、データを送信することができる。さらに、何れのタ
スクも、送信先、送信元のタスクがどのプロセッサであ
るかを認識する必要がない。 <第5の実施形態>第5実施形態のタスク制御装置に関
するハードウェア構成は、第4実施形態の図16と同じ
マルチプロセッサシステムである。
As described above, in the multiprocessor system, since the data delivery unit 1702 delivers the transmission data, even if the transmission data is destined for the task (or queue) of another processor, the task of the transmission destination may be transmitted. Even if the received data size and the transmitted data size do not match, data can be transmitted. Further, neither task needs to recognize which processor is the task of the transmission destination and the task of the transmission source. <Fifth Embodiment> The hardware configuration of the task control device of the fifth embodiment is the same multiprocessor system as that of the fourth embodiment shown in FIG.

【0075】図22は、第5の実施形態におけるタスク
制御装置500の構成を示すブロック図である。同図の
タスク制御装置500は、図4のタスク制御装置101
に比べて、受信要求受付部106の代わりに受信要求受
付部2203を、送信データサイズ管理部102の代わ
りに送信データサイズ管理部1712を、受信データサ
イズ管理部105の代わりに受信データサイズ管理部1
705を設け、新たにプロセッサ管理部2201、デー
タ配送部2202を追加している点のみが異なってい
る。以下同じ点は説明を省略して、異なる点を中心に説
明する。
FIG. 22 is a block diagram showing a configuration of a task control device 500 according to the fifth embodiment. The task control device 500 shown in FIG.
, A reception request reception unit 2203 instead of the reception request reception unit 106, a transmission data size management unit 1712 instead of the transmission data size management unit 102, and a reception data size management unit instead of the reception data size management unit 105. 1
705 is provided, and only a processor management unit 2201 and a data delivery unit 2202 are newly added. Hereinafter, the same points will not be described, and different points will be mainly described.

【0076】図22において、プロセッサ管理部220
1は、第4実施形態のプロセッサ管理部1701と同様
である。受信要求受付部2203は、受信要求受付部1
06の機能に加えて、受信要求を受けたとき、その受信
要求に指定されているキュー(又はタスク)が他のプロ
セッサのものであれば、データ配送部2202に受信デ
ータの配送を指示する。
In FIG. 22, the processor management unit 220
1 is the same as the processor management unit 1701 of the fourth embodiment. The reception request receiving unit 2203 is the reception request receiving unit 1
In addition to the function 06, when a reception request is received, if the queue (or task) specified in the reception request belongs to another processor, the data distribution unit 2202 is instructed to distribute received data.

【0077】データ配送部2202は、受信要求受付部
2203に受信データの配送を指示されたとき、受信要
求が示すデータ送信元のタスクを実行するプロセッサの
データ格納部104から受信データサイズ分のデータを
読み出して、自身のプロセッサのデータ格納部104に
格納する。データ格納部104に格納されたデータは、
第1実施形態と同様にして受信タスクに転送される。
When the reception request receiving unit 2203 instructs the reception request receiving unit 2203 to distribute the reception data, the data distribution unit 2202 reads the data of the reception data size from the data storage unit 104 of the processor that executes the task of the data transmission source indicated by the reception request. Is read and stored in the data storage unit 104 of its own processor. The data stored in the data storage unit 104 is
The data is transferred to the receiving task in the same manner as in the first embodiment.

【0078】受信データサイズ管理部1705、送信デ
ータサイズ管理部1712は、それぞれ第4実施例で説
明したものと同じである。 <受信要求受付処理>図23は、タスク制御装置500
における受信要求受付処理を示すフローチャートであ
る。同図の処理内容は、図9の受信要求受付処理に対し
て、新たにステップ231〜233とが追加されている
点が異なっている。以下同じ点は説明を省略し、異なる
点のみ説明する。
The reception data size management section 1705 and transmission data size management section 1712 are the same as those described in the fourth embodiment. <Reception Request Accepting Process> FIG.
9 is a flowchart showing a reception request reception process in FIG. 9 differs from the reception request reception processing of FIG. 9 in that steps 231 to 233 are newly added. Hereinafter, description of the same points will be omitted, and only different points will be described.

【0079】同図において、受信要求受付部2203
は、タスクから受信要求を受けて受信データサイズを確
認したとき(ステップ91、92)、その受信要求が示
すデータ送信元のタスクが他のプロセッサで実行してい
るタスクであるか否かを判定する(ステップ231)。
他のプロセッサで実行しているタスクであると判定され
た場合、データ配送部2202に対して配送要求を指示
する(ステップ232)。データ配送部2202は、受
信要求受付部2203に受信データの配送を指示された
とき、受信要求が示すデータ送信元のタスクを実行する
他のプロセッサのデータ格納部104から受信データサ
イズ分のデータを読み出して、自身のプロセッサのデー
タ格納部104に転送する。データ格納部104に格納
されたデータは、第1実施形態と同様にして受信タスク
に転送される。このとき、他のプロセッサのデータ格納
部104に受信データサイズ分のデータがない場合に
は、データ配送部2202は、自身のプロセッサのデー
タ格納部104に受信要求を登録しておく。
In the figure, a reception request receiving unit 2203
When a reception request is received from a task and the reception data size is confirmed (steps 91 and 92), it is determined whether the data transmission source task indicated by the reception request is a task being executed by another processor. (Step 231).
When it is determined that the task is being executed by another processor, a delivery request is instructed to the data delivery unit 2202 (step 232). When instructed by the reception request receiving unit 2203 to deliver received data, the data delivery unit 2202 transfers data of the reception data size from the data storage unit 104 of another processor that executes the task of the data transmission source indicated by the reception request. The data is read and transferred to the data storage unit 104 of its own processor. The data stored in the data storage unit 104 is transferred to the receiving task as in the first embodiment. At this time, if there is no data of the reception data size in the data storage unit 104 of another processor, the data delivery unit 2202 registers the reception request in the data storage unit 104 of its own processor.

【0080】以上のようにして、マルチプロセッサシス
テムにおいて、データ配送部2202が受信データを配
送するので、他のプロセッサのタスク宛(又はキュー宛
の)の送信データであっても、送信先のタスクの受信デ
ータサイズと送信データサイズとが一致していなくて
も、データを送信することができる。 <第6の実施形態>第6実施形態のタスク制御装置に関
するハードウェア構成は、第4実施形態の図16と同じ
マルチプロセッサシステムである。
As described above, in the multiprocessor system, since the data delivery section 2202 delivers received data, even if the data is a task (or queue) transmission data of another processor, the transmission destination task Even if the received data size and the transmitted data size do not match, data can be transmitted. Sixth Embodiment The hardware configuration of the task control device of the sixth embodiment is the same multiprocessor system as that of the fourth embodiment shown in FIG.

【0081】図24は、本実施形態におけるタスク制御
装置600の構成を示すブロック図である。同図のタス
ク制御装置600は、図4のタスク制御装置101に比
べて、送信要求受付部103の代わりに送信要求受付部
2403を設け、新たにプロセッサ管理部1701と、
代行タスク起動部2402と、代行タスク2401とを
追加している点のみが異なっている。以下同じ点は説明
を省略して、異なる点を中心に説明する。
FIG. 24 is a block diagram showing the configuration of the task control device 600 according to this embodiment. 4 is different from the task control device 101 in FIG. 4 in that a transmission request reception unit 2403 is provided instead of the transmission request reception unit 103, and a processor management unit 1701 is newly added.
The only difference is that a substitute task starting unit 2402 and a substitute task 2401 are added. Hereinafter, the same points will not be described, and different points will be mainly described.

【0082】代行タスク2401は、他のプロセッサの
タスクから自身のプロセッサ(プロセッサX)のタスク
にデータ送信要求があった場合に、一旦送信データを代
行タスク内の送信データエリア内に取り込んでしまい、
送信要求元のタスクに代行して送信データをプロセッサ
Xのデータ格納部104に格納する処理を行う。代行タ
スクは、他のプロセッサのタスクからデータ送信を受け
るプロセッサ毎に1個設けられる。
When the task of another processor issues a data transmission request to the task of its own processor (processor X), the proxy task 2401 once fetches the transmission data into the transmission data area in the proxy task.
A process of storing the transmission data in the data storage unit 104 of the processor X on behalf of the task of the transmission request source is performed. One substitute task is provided for each processor that receives data transmission from a task of another processor.

【0083】送信要求受付部2403は、送信要求受付
部103の機能に加えて、送信要求を受け付けたとき、
プロセッサ管理部1701を参照してその送信要求が他
のプロセッサのタスクへの送信要求であるかどうかを判
定し、他のプロセッサのタスクへの送信要求であると
き、その旨を代行タスク起動部2402に通知する。代
行タスク起動部2402は、送信要求受付部2403か
ら上記通知を受けたとき当該他のプロセッサの代行タス
クを起動する。
The transmission request receiving unit 2403 receives a transmission request in addition to the function of the transmission request receiving unit 103.
It is determined whether or not the transmission request is a transmission request to a task of another processor by referring to the processor management unit 1701. If the transmission request is a transmission request to a task of another processor, this fact is indicated as a substitute task activation unit 2402 Notify. Upon receiving the above notification from the transmission request receiving unit 2403, the substitute task activating unit 2402 activates the substitute task of the other processor.

【0084】プロセッサ管理部1701は、第4実施形
態におけるプロセッサ管理部と同じである。 <送信要求受付処理>図25は、タスク制御装置600
における送信要求受付処理を示すフローチャートであ
る。同図の処理内容は、図8の送信要求受付処理に対し
て、新たにステップ251〜253が追加されている点
のみ異なっている。同じ点は説明を省略し、異なる点の
み説明する。
The processor management section 1701 is the same as the processor management section in the fourth embodiment. <Transmission Request Accepting Process> FIG.
5 is a flowchart showing a transmission request receiving process in the embodiment. 8 differs from the transmission request reception processing of FIG. 8 only in that steps 251 to 253 are newly added. The description of the same points will be omitted, and only different points will be described.

【0085】同図において、送信要求受付部2403
は、タスクから送信要求を受けて送信データサイズを確
認したとき(ステップ80、81)、プロセッサ管理部
1701を参照して送信要求が他のプロセッサのタスク
宛であるか否かを判定し(ステップ251)、他のプロ
セッサあれば共有メモリに送信データを格納し(ステッ
プ252)、他のプロセッサのタスク宛の送信要求であ
る旨を代行タスク起動部2402へ通知する。この通知
を受けた代行タスク起動部2402は、そのプロセッサ
の代行タスクを起動する(ステップ253)。 <代行タスクの処理内容>図26は、代行タスク240
1の処理内容を示すフローチャートである。
In the figure, a transmission request receiving unit 2403
When a transmission request is received from a task and the transmission data size is confirmed (steps 80 and 81), the processor refers to the processor management unit 1701 to determine whether the transmission request is addressed to a task of another processor (step 80). 251) If there is another processor, the transmission data is stored in the shared memory (step 252), and the proxy task activation unit 2402 is notified that the request is a transmission request addressed to a task of another processor. Upon receiving this notification, the substitute task activation unit 2402 activates the substitute task of the processor (step 253). <Processing Content of Proxy Task> FIG.
6 is a flowchart showing the processing contents of No. 1.

【0086】起動された代行タスク2401は、まず、
共有メモリに格納された代行すべき送信データを、代行
タスク用のメモリ領域内の送信データエリアに転送し
(ステップ261)、送信データサイズ管理部102か
ら代行すべきタスクの送信データサイズを読み出して
(ステップ262)、その送信データサイズ分のデータ
を、自身の送信データエリアからデータ格納部104に
転送する(ステップ263)。
The activated substitute task 2401 first
The transmission data to be substituted stored in the shared memory is transferred to the transmission data area in the memory area for the substitution task (step 261), and the transmission data size of the substitution task is read from the transmission data size management unit 102. (Step 262), the data of the transmission data size is transferred from its own transmission data area to the data storage unit 104 (Step 263).

【0087】これにより、データ格納部104には、送
信要求元の他のプロセッサのタスクの送信データが、そ
のタスク自身から送られてきたかのように格納されるこ
とになる。データ格納部104の送信データは、第1実
施形態と同様に、受信要求を発行したタスクに転送され
る。
As a result, the data storage unit 104 stores the transmission data of the task of the other processor which has requested transmission, as if it had been sent from the task itself. The transmission data in the data storage unit 104 is transferred to the task that issued the reception request, as in the first embodiment.

【0088】以上のように本実施形態では、他のプロセ
ッサのタスクからデータ送信を受けるプロセッサ毎に1
個ずつ代行タスクを設けることにより、プロセッサ間の
タスクのデータ通信を、送受信データサイズがタスク毎
に異なっていても、単一プロセッサでのデータ通信と同
様に行うことができる。
As described above, in the present embodiment, one processor is provided for each processor that receives data transmission from a task of another processor.
By providing the substitute tasks one by one, data communication of tasks between processors can be performed in the same manner as data communication with a single processor, even if the size of transmitted / received data differs for each task.

【0089】[0089]

【発明の効果】本発明のタスク制御装置は、複数のタス
ク間のデータ通信を制御するタスク制御装置であって、
タスクの送信すべきデータを一時的に記憶するための領
域を有するデータ記憶手段と、第1のタスクからデータ
送信要求を受け、第1のタスクの送信すべきデータをデ
ータ記憶手段に転送する送信要求処理手段と、データ記
憶手段に格納されている各データのサイズを管理する管
理手段と、第2のタスクからデータ受信要求を受け、管
理手段を参照して第2のタスクが必要とする受信データ
サイズに等しいサイズのデータがデータ記憶手段に記憶
されている場合に、その受信データサイズに等しいサイ
ズのデータをデータ記憶手段から第2のタスクに転送す
る受信要求処理手段とを備えている。
The task control device of the present invention is a task control device for controlling data communication between a plurality of tasks,
A data storage unit having an area for temporarily storing data to be transmitted by the task, and a transmission for receiving a data transmission request from the first task and transferring the data to be transmitted of the first task to the data storage unit Request processing means, management means for managing the size of each data stored in the data storage means, reception of a data reception request from the second task, reception referring to the management means and required by the second task And receiving request processing means for transferring, when the data having the size equal to the data size is stored in the data storage means, the data having the size equal to the received data size from the data storage means to the second task.

【0090】この構成によれば、タスクからの送信デー
タは、データ記憶手段に一旦記憶され、そのデータサイ
ズが管理手段により管理されるので、送信データサイズ
と受信データサイズとが異なったタスク間でも、そのサ
イズ差を吸収することができる。すなわち、データ受信
要求元のタスクは自身の受信データサイズ分のデータを
1回のデータ転送で得ることができる。したがって、各
タスクは、受信データサイズ分のデータを複数回に分け
て受信することがなくなり、データ受信待ち処理の複雑
さが解消されるので負荷が低減し、タスク全体の処理効
率の向上とタスクプログラムサイズを低減することがで
きるという効果がある。
According to this configuration, the transmission data from the task is temporarily stored in the data storage means, and the data size is managed by the management means. , The size difference can be absorbed. That is, the task of the data reception request source can obtain data of its own reception data size by one data transfer. Therefore, each task does not receive the data of the received data size in a plurality of times, and the complexity of the data reception waiting process is reduced, so that the load is reduced, the processing efficiency of the entire task is improved, and the task is improved. There is an effect that the program size can be reduced.

【0091】また、前記受信要求処理手段は、タスク毎
に必要とされる受信データサイズを保持する受信サイズ
テーブルと、第2のタスクからデータ受信要求を受けた
とき、受信サイズテーブルから受信データサイズを、管
理手段から各データのサイズを読み出し、第2のタスク
の受信データサイズ以上のデータがデータ記憶手段に記
憶されているか否かを判定するサイズ判定手段と、第2
のタスクの受信データサイズ以上のデータが記憶されて
いると判定された場合、その受信データサイズに等しい
サイズのデータをデータ記憶手段から受信要求元のタス
クに転送する第2転送手段とを備える構成としてもよ
い。
Further, the reception request processing means includes a reception size table for holding a reception data size required for each task, and a reception data size when receiving a data reception request from the second task. Size determination means for reading out the size of each data from the management means and determining whether or not data larger than the reception data size of the second task is stored in the data storage means;
And a second transfer unit for transferring data having a size equal to the received data size from the data storage unit to the reception request source task when it is determined that data larger than the received data size of the task is stored. It may be.

【0092】この構成によれば、上記効果に加えて、サ
イズ判定手段は受信サイズテーブルと管理手段とを参照
することにより第2のタスクの受信データサイズ以上の
データがデータ記憶手段に記憶されているか否かを容易
に判定することができる。さらに、前記送信要求処理手
段は、タスク毎に必要とされる送信データサイズを保持
する送信サイズテーブルと、第1のタスクからデータ送
信要求を受けたとき、送信サイズテーブルから当該タス
クの送信データサイズを読み出し、それ以上の空きがデ
ータ記憶手段にあるかどうかを判定する空き判定手段
と、空きがある場合に、第1のタスクの送信すべきデー
タをデータ記憶手段に転送する第1転送手段とを備える
構成としてもよい。
According to this configuration, in addition to the above effects, the size determination means refers to the reception size table and the management means so that data larger than the reception data size of the second task is stored in the data storage means. Can be easily determined. Further, the transmission request processing means includes: a transmission size table for holding a transmission data size required for each task; and when receiving a data transmission request from the first task, a transmission data size of the task from the transmission size table. And a first transfer unit for transferring data to be transmitted by the first task to the data storage unit when there is a free space, and determining whether there is more free space in the data storage unit. May be provided.

【0093】この構成によれば、上記効果に加えて、空
き判定手段は送信サイズテーブルと管理手段とを参照す
ることにより送信データサイズ以上の空きがデータ記憶
手段にあるかどうかを容易に判定することができる。ま
た、前記データ記憶手段は、先入れ先出し式にデータを
記憶する複数のキューバッファを有し、前記管理手段
は、各キューバッファ毎に、格納されているデータのサ
イズと空き領域のデータサイズとを管理し、前記データ
送信要求は送信データ格納先のキューバッファの指定を
含み、前記データ受信要求は受信データ要求先のキュー
バッファの指定を含み、前記空き判定手段は、データ送
信要求にて指定されたキューバッファに、送信サイズテ
ーブルから読み出された送信データサイズ以上の空きが
あるかどうかを判定し、前記サイズ判定手段は、データ
受信要求にて指定されたキューバッファに、受信サイズ
テーブルから読み出された受信データサイズ以上のデー
タがあるか否かを判定するように構成してもよい。
According to this configuration, in addition to the above-described effects, the vacancy determining unit easily determines whether or not there is a vacancy equal to or larger than the transmission data size in the data storage unit by referring to the transmission size table and the management unit. be able to. Further, the data storage means has a plurality of queue buffers for storing data in a first-in first-out manner, and the management means manages the size of stored data and the data size of free space for each queue buffer. The data transmission request includes a specification of a queue buffer of a transmission data storage destination, the data reception request includes a specification of a queue buffer of a reception data request destination, and the empty determination unit is specified by the data transmission request. The queue buffer determines whether or not there is free space in the queue buffer equal to or larger than the transmission data size read from the transmission size table. The size determination unit reads the queue buffer specified by the data reception request from the reception size table. It may be configured to determine whether or not there is data that is equal to or larger than the received data size.

【0094】この構成によれば、上記効果に加えて、管
理手段は複数のキューバッファ有しているのでキューバ
ッファ毎に格納されているデータのサイズと空き領域の
データサイズとを容易に管理することができ、また、各
タスクは、データ送受信の宛て先としてキューバッファ
のみを認識していればよく、送受信相手のタスクを認識
する必要がないという効果がある。
According to this configuration, in addition to the above effects, since the management means has a plurality of queue buffers, the management means easily manages the size of the data stored in each queue buffer and the data size of the free space. Each task only needs to recognize the queue buffer as the destination of data transmission and reception, and there is an effect that it is not necessary to recognize the task of the transmission and reception partner.

【0095】また、前記データ記憶手段は、タスク毎に
設けられた先入れ先出し式にデータを記憶する複数のキ
ューバッファを有し、前記管理手段は、各キューバッフ
ァ毎に、格納されているデータサイズと空きデータサイ
ズとを管理し、前記データ送信要求はデータ送信先のタ
スクの指定を含み、前記データ受信要求はデータ受信元
のタスクの指定を含み、前記空き判定手段は、データ送
信要求にて指定されたタスクに対応するキューバッファ
に前記空きがあるかどうかを判定し、前記サイズ判定手
段は、データ受信要求元のタスクに対応するキューバッ
ファに、前記受信データサイズ以上のデータがあるか否
か判定するように構成してもよい。
The data storage means has a plurality of queue buffers provided for each task and which stores data in a first-in first-out manner, and the management means determines the stored data size and size for each queue buffer. Managing the free data size, the data transmission request includes a specification of a task of a data transmission destination, the data reception request includes a specification of a task of a data reception source, and the vacancy determining unit specifies the task of the data transmission request. Determining whether or not there is free space in the queue buffer corresponding to the performed task, and determining whether the queue buffer corresponding to the task of the data reception request source has data larger than the reception data size. The determination may be made.

【0096】この構成によれば、上記効果に加えて、各
タスクは、データ送受信の宛て先として相手タスクのみ
を認識していればよく、キューバッファの存在を認識す
る必要がないという効果がある。ここで、前記管理手段
は、キューバッファに対応して設けられ、サイズ判定手
段により受信データサイズ以上のデータが記憶されてい
ないと判定されたデータ受信要求を一時的に保持する複
数の受信要求バッファを有し、前記送信要求処理手段
は、さらに、第1のタスクから送信要求を受けたとき、
その送信要求に合致する受信要求が受信要求バッファに
格納されている場合、第1転送手段の転送を禁止して、
第1のタスクから第2のタスクへデータを直接転送する
直接転送手段を有する構成としてもよい。
According to this configuration, in addition to the above effect, each task only needs to recognize the partner task as the destination of data transmission / reception, and does not need to recognize the existence of the queue buffer. . Here, the management means is provided in correspondence with the queue buffer, and includes a plurality of reception request buffers for temporarily storing data reception requests for which it is determined by the size determination means that data larger than the reception data size is not stored. Wherein the transmission request processing means further receives a transmission request from the first task,
If a reception request that matches the transmission request is stored in the reception request buffer, the transfer by the first transfer unit is prohibited,
It may be configured to include a direct transfer unit that directly transfers data from the first task to the second task.

【0097】この構成によれば、送信要求の発生時点で
それに対応する受信要求が既に受信要求バッファに保持
されている場合に、データ記憶手段を介在することなく
送信タスクから受信タスクに直接データを転送するの
で、タスク制御装置ひいては全体の処理効率が向上する
という効果がある。ここで、前記送信要求処理手段は、
さらに、第1のタスクからのデータ送信要求が所定の条
件を満たすか否かを判断する判断手段を備え、前記管理
手段は、さらに、キューバッファに対応して設けられ、
判断手段により所定の条件を満たすと判断されたとき、
当該データ送信要求の送信データについての第1転送手
段の転送を禁止して、当該データ送信要求を一時的に保
持する複数の送信要求バッファを備え、前記受信要求処
理手段は、さらに、受信要求を受けたとき、それに合致
する送信要求が送信要求バッファ保持されている場合、
第1のタスクから第2のタスクへデータを直接転送する
直接転送手段を備える構成としてもよい。
According to this configuration, when a reception request corresponding to a transmission request is already held in the reception request buffer, data is directly transmitted from the transmission task to the reception task without interposing data storage means. Since the transfer is performed, there is an effect that the task control device and thus the overall processing efficiency are improved. Here, the transmission request processing means includes:
Further, a determination unit for determining whether a data transmission request from the first task satisfies a predetermined condition is provided, and the management unit is further provided corresponding to a queue buffer,
When the determining means determines that the predetermined condition is satisfied,
A plurality of transmission request buffers for temporarily prohibiting the transfer of the transmission data of the data transmission request by the first transfer unit and temporarily holding the data transmission request; and the reception request processing unit further includes: When receiving, if a transmission request that matches it is held in the transmission request buffer,
It may be configured to include a direct transfer unit that directly transfers data from the first task to the second task.

【0098】この構成によれば、受信要求の発生時点
で、それに対応する送信要求が送信要求バッファに保持
されている場合に、データ記憶手段を介在することなく
送信タスクから受信タスクに直接データを転送するの
で、タスク制御装置ひいては全体の処理効率が向上する
という効果がある。また、本発明のタスク制御装置は、
複数のプロセッサを有するシステムで用いられ、プロセ
ッサに対応する同数のタスク制御部からなり、プロセッ
サのタスク間のデータ通信を制御するタスク制御装置で
あって、各タスク制御部は、タスクの送信すべきデータ
を一時的に記憶する領域を有するデータ記憶手段と、自
身のプロセッサの第1のタスクからデータ送信要求を受
けて、他のプロセッサのタスクへの送信か、自身のプロ
セッサの他のタスクへの送信かを判別するプロセッサ判
別手段と、他のプロセッサのタスクへの送信と判別され
た場合に、第1のタスクの送信すべきデータをデータ記
憶手段に転送する送信要求処理手段と、他のプロセッサ
のタスクへの送信と判別された場合に、第1の送信すべ
きデータを当該他のプロセッサのデータ記憶手段に送信
データを配送するデータ配送手段と、データ記憶手段に
格納されている各データのサイズを管理する管理手段
と、自身のプロセッサの第2のタスクからデータ受信要
求を受けて、管理手段を参照して第2のタスクが必要と
する受信データサイズに等しいサイズのデータがデータ
記憶手段に記憶されている場合に、その受信データサイ
ズに等しいサイズのデータをデータ記憶手段から第2の
タスクに転送する受信要求処理手段とを備えている。
According to this configuration, when a reception request is generated and a corresponding transmission request is held in the transmission request buffer, data is directly transmitted from the transmission task to the reception task without interposing data storage means. Since the transfer is performed, there is an effect that the task control device and thus the overall processing efficiency are improved. Further, the task control device of the present invention,
A task control device used in a system having a plurality of processors, comprising the same number of task control units corresponding to the processors, and controlling data communication between tasks of the processors, wherein each task control unit should transmit a task. A data storage unit having an area for temporarily storing data, and receiving a data transmission request from a first task of its own processor and transmitting it to a task of another processor or transmitting a request to another task of its own processor. Processor determination means for determining whether the data is to be transmitted, transmission request processing means for transferring data to be transmitted of the first task to the data storage means when it is determined that the data is to be transmitted to the task of another processor; If it is determined that the data is to be transmitted to the task, the first data to be transmitted is transmitted to the data storage means of the other processor. Data delivery means, management means for managing the size of each data stored in the data storage means, and receiving a data reception request from a second task of its own processor, and referring to the management means for the second processing. Receiving request processing means for transferring data having a size equal to the received data size from the data storing means to the second task when data having a size equal to the received data size required by the task is stored in the data storage means; And

【0099】この構成によれば、複数のプロセッサを有
するシステムにおいて、送信データサイズと受信データ
サイズが異なっていても、各タスクは、そのサイズ差を
認識する必要がなく、しかも配送手段を有することによ
り送受信相手のタスクがどのプロセッサのタスクである
かも全く認識する必要がないので、タスク自身のデータ
送受信処理の負荷が軽く、したがってそのプログラムサ
イズも低減できるという効果がある。
According to this configuration, in a system having a plurality of processors, even if the transmission data size and the reception data size are different, each task does not need to recognize the size difference and has a delivery means. Thus, there is no need to know at all which processor is the task of the transmission / reception partner, so that there is an effect that the load of the data transmission / reception processing of the task itself is light and the program size can be reduced.

【0100】また、本発明野タスク制御装置は、複数の
プロセッサを有するシステムで用いられ、プロセッサに
対応する同数のタスク制御部からなり、プロセッサのタ
スク間のデータ通信を制御するタスク制御装置であっ
て、各タスク制御部は、タスク間の送信データを一時的
に記憶する領域を有するデータ記憶手段と、自身のプロ
セッサの第1のタスクからデータ送信要求を受けて、第
1のタスクからデータ記憶手段に送信データを転送する
送信要求処理手段と、データ記憶手段に格納されている
データのサイズを管理する管理手段と、自身のプロセッ
サのタスクからデータ受信要求を受けて、他のプロセッ
サのタスクからの受信か、自身のプロセッサのタスクか
らの受信かを判別するプロセッサ判別手段と、自身のプ
ロセッサの第2のタスクからの受信と判別されたとき、
管理手段を参照して当該タスクが必要とする受信データ
サイズに等しいサイズンのデータがデータ記憶手段に記
憶されている場合に、その受信データサイズに等しいサ
イズのデータをデータ記憶手段から第2のタスクに転送
する受信要求処理手段と、他のプロセッサのタスクから
の受信と判別されたとき、当該他のプロセッサのデータ
記憶手段から受信すべきデータを取得するデータ取得手
段とを備えている。
The task control device according to the present invention is used in a system having a plurality of processors, is composed of the same number of task control units corresponding to the processors, and controls data communication between tasks of the processors. Each of the task controllers receives a data transmission request from a first task of its own processor, and stores data from the first task in response to a data transmission request having an area for temporarily storing transmission data between tasks. Transmission request processing means for transferring transmission data to the means, management means for managing the size of data stored in the data storage means, and receiving a data reception request from a task of its own processor, and receiving a data reception request from a task of another processor. Processor determination means for determining whether the received data is received from the own processor or a task of the own processor; When it is determined that the reception from the click,
When the data having the size equal to the reception data size required by the task is stored in the data storage unit with reference to the management unit, the data having the size equal to the reception data size is stored in the second task from the data storage unit. And a data acquisition means for acquiring data to be received from the data storage means of the other processor when it is determined that the data is to be received from a task of another processor.

【0101】この構成によれば、データ取得手段を有す
ることにより、送受信相手のタスクがどのプロセッサの
タスクであるかも全く認識する必要がないので、タスク
自身のデータ送受信処理の負荷が軽く、したがってその
プログラムサイズも低減できるという効果がある。ま
た、本発明のタスク制御装置は、複数のプロセッサを有
するシステムで用いられ、プロセッサに対応する同数の
タスク制御部からなり、プロセッサのタスク間のデータ
通信を制御するタスク制御装置であって、各タスク制御
部は、タスク間の送信データを一時的に記憶する領域を
有するデータ記憶手段と、自身のプロセッサのタスクか
らデータ送信要求を受けて、他のプロセッサのタスクへ
の送信か、自身のプロセッサのタスクへの送信かを判別
するプロセッサ判別手段と、自身のプロセッサのタスク
への送信と判別された場合に、送信要求元のタスクから
データ記憶手段に送信データを転送する送信要求処理手
段と、他のプロセッサのタスクへの送信と判別された場
合に、当該他のプロセッサの特定のタスクを実行するこ
とにより、送信要求元のタスクから当該他のプロセッサ
のデータ記憶手段に送信データを転送する特定タスク実
行手段と、データ記憶手段に格納されているデータのサ
イズを管理する管理手段と、自身のプロセッサのタスク
からデータ受信要求を受けて、管理手段を参照して当該
タスクが必要とする受信データサイズに等しいサイズの
データがデータ記憶手段に記憶されている場合に、その
受信データサイズに等しいサイズのデータをデータ記憶
手段から当該タスクに転送する受信要求処理手段とを備
えている。
According to this configuration, since the data acquisition means is provided, there is no need to recognize at all which processor is the task of the transmission / reception partner. Therefore, the load of the data transmission / reception processing of the task itself is light, and therefore, There is an effect that the program size can be reduced. Further, the task control device of the present invention is used in a system having a plurality of processors, the task control device includes the same number of task control units corresponding to the processors, and controls data communication between tasks of the processors. The task control unit includes: a data storage unit having an area for temporarily storing transmission data between tasks; and a data transmission request from a task of its own processor, and transmission to another processor's task, or its own processor. Processor determination means for determining whether the transmission is to the task, and transmission request processing means for transferring the transmission data from the task of the transmission request source to the data storage means when transmission to the task of the processor is determined. If it is determined that the transmission is to a task of another processor, the transmission is performed by executing a specific task of the other processor. A specific task execution unit that transfers transmission data from the requesting task to the data storage unit of the other processor; a management unit that manages the size of data stored in the data storage unit; Receiving a reception request, referring to the management means, when data having a size equal to the reception data size required by the task is stored in the data storage means, storing data having a size equal to the reception data size. Receiving request processing means for transferring from the means to the task.

【0102】この構成によれば、特定タスク実行手段を
有することにより、送受信相手のタスクがどのプロセッ
サのタスクであるかも全く認識する必要がないので、タ
スク自身のデータ送受信処理の負荷が軽く、したがって
そのプログラムサイズも低減できるという効果がある。
また、本発明のタスク制御プログラムを記憶する記憶媒
体は、タスク間のデータ通信を制御するタスク制御プロ
グラムを記憶するコンピュータ読み取り可能な記憶媒体
であって、前記タスク制御プログラムは、タスクからデ
ータ送信要求を受け、当該タスクの送信データをバッフ
ァメモリに格納する送信要求処理手段と、バッファメモ
リに格納されているデータのサイズを管理する管理手段
と、タスクからデータ受信要求を受け、管理手段を参照
して当該タスクが必要とする受信データサイズに等しい
サイズのデータがバッファメモリに記憶されている場合
に、その受信データサイズに等しいサイズのデータをバ
ッファメモリから当該タスクに転送する受信要求処理手
段とをコンピュータに実行されることにより発揮するこ
とを特徴とする記憶媒体である。
According to this configuration, since the specific task execution means is provided, it is not necessary to know at all which processor is the task of the transmission / reception partner. Therefore, the load of the data transmission / reception processing of the task itself is light. There is an effect that the program size can be reduced.
Further, the storage medium storing the task control program of the present invention is a computer-readable storage medium storing a task control program for controlling data communication between tasks, wherein the task control program transmits a data transmission request from the task. Receiving request, a transmission request processing unit for storing transmission data of the task in the buffer memory, a management unit for managing the size of data stored in the buffer memory, and a data reception request from the task, and referring to the management unit. And receiving request processing means for transferring data having a size equal to the received data size from the buffer memory to the task when data having a size equal to the received data size required by the task is stored in the buffer memory. A feature characterized by being executed by a computer It is a medium.

【0103】この構成によれば、タスクからの送信デー
タは、データ記憶手段に一旦記憶され、そのデータサイ
ズが管理手段により管理されるので、送信データサイズ
と受信データサイズとが異なったタスク間でも、そのサ
イズ差を吸収することができる。すなわち、データ受信
要求元のタスクは自身の受信データサイズ分のデータを
1回のデータ転送で得ることができる。したがって、各
タスクは、受信データサイズ分のデータを複数回に分け
て受信することがなくなり、データ受信待ち処理の複雑
さが解消されるので負荷が低減し、タスク全体の処理効
率の向上とタスクプログラムサイズを低減することがで
きるという効果がある。
According to this configuration, the transmission data from the task is temporarily stored in the data storage means, and its data size is managed by the management means. , The size difference can be absorbed. That is, the task of the data reception request source can obtain data of its own reception data size by one data transfer. Therefore, each task does not receive the data of the received data size in a plurality of times, and the complexity of the data reception waiting process is reduced, so that the load is reduced, the processing efficiency of the entire task is improved, and the task is improved. There is an effect that the program size can be reduced.

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

【図1】本発明の第1実施形態におけるタスク制御装置
101の概要を示す説明図である。
FIG. 1 is an explanatory diagram showing an outline of a task control device 101 according to a first embodiment of the present invention.

【図2】タスク制御装置101をテレビジョン受像機に
実装した場合のハードウェア構成例を示す図である。
FIG. 2 is a diagram illustrating an example of a hardware configuration when the task control device 101 is mounted on a television receiver.

【図3】タスク制御装置101をセットトップボックス
(衛星放送チューナ)に実装した場合のハードウェア構
成例を示す図である。
FIG. 3 is a diagram illustrating an example of a hardware configuration when the task control device 101 is mounted on a set-top box (satellite broadcast tuner).

【図4】タスク制御装置101の構成を示すブロック図
である。
FIG. 4 is a block diagram illustrating a configuration of a task control device 101.

【図5】(a)送信データサイズ管理部102の記憶内
容の一例を示す。 (b)受信データサイズ管理部105の記憶内容の一例
を示す。
FIG. 5A shows an example of the storage contents of a transmission data size management unit 102. (B) An example of the storage contents of the reception data size management unit 105 is shown.

【図6】データ格納部104のデータ格納方式の一例を
示す説明図である。
FIG. 6 is an explanatory diagram illustrating an example of a data storage method of a data storage unit 104.

【図7】キュー21a、キュー管理テーブル21bのよ
り詳細な構成を示す説明図である。
FIG. 7 is an explanatory diagram showing a more detailed configuration of a queue 21a and a queue management table 21b.

【図8】タスク制御装置101における送信要求受付処
理を示すフローチャートである。
FIG. 8 is a flowchart showing a transmission request acceptance process in the task control device 101.

【図9】タスク制御装置101における受信要求受付処
理を示すフローチャートである。
FIG. 9 is a flowchart showing a reception request reception process in the task control device 101.

【図10】キュー21a、キュー管理テーブル21bの
状態変化を示す説明図である。
FIG. 10 is an explanatory diagram showing a state change of a queue 21a and a queue management table 21b.

【図11】第2の実施形態におけるタスク制御装置20
0の構成を示すブロック図である。
FIG. 11 is a task control device 20 according to the second embodiment.
FIG. 3 is a block diagram showing a configuration of a 0.

【図12】タスク制御装置200における送信要求受付
処理を示すフローチャートである。
FIG. 12 is a flowchart showing a transmission request acceptance process in the task control device 200.

【図13】第3の実施形態におけるタスク制御装置30
0の構成を示すブロック図である。
FIG. 13 illustrates a task control device 30 according to the third embodiment.
FIG. 3 is a block diagram showing a configuration of a 0.

【図14】タスク制御装置300における送信要求受付
処理を示すフローチャートである。
FIG. 14 is a flowchart showing a transmission request acceptance process in the task control device 300.

【図15】タスク制御装置300における受信要求受付
処理を示すフローチャートである。
FIG. 15 is a flowchart showing a reception request receiving process in the task control device 300.

【図16】第4実施形態におけるタスク制御装置400
のハードウェア例を示す図である。
FIG. 16 illustrates a task control device 400 according to a fourth embodiment.
FIG. 3 is a diagram illustrating an example of hardware.

【図17】プロセッサXにおけるタスク制御装置400
の構成を示すブロック図である。
FIG. 17 is a task control device 400 in the processor X.
FIG. 3 is a block diagram showing the configuration of FIG.

【図18】プロセッサ管理部1701の記憶例を示す。18 shows a storage example of a processor management unit 1701. FIG.

【図19】タスクA、B、Cの送信データサイズの例を
示す。
FIG. 19 shows an example of the transmission data size of tasks A, B, and C.

【図20】タスクA、B、Cの受信データサイズの例を
示す。
FIG. 20 shows an example of the received data size of tasks A, B, and C.

【図21】タスク制御装置400における送信要求受付
処理を示すフローチャートである。
FIG. 21 is a flowchart showing a transmission request acceptance process in the task control device 400.

【図22】第5の実施形態におけるタスク制御装置50
0の構成を示すブロック図である。
FIG. 22 shows a task control device 50 according to the fifth embodiment.
FIG. 3 is a block diagram showing a configuration of a 0.

【図23】タスク制御装置500における受信要求受付
処理を示すフローチャートである。
FIG. 23 is a flowchart showing a reception request receiving process in the task control device 500.

【図24】第6実施形態におけるタスク制御装置600
の構成を示すブロック図である。
FIG. 24 is a task control device 600 according to the sixth embodiment.
FIG. 3 is a block diagram showing the configuration of FIG.

【図25】タスク制御装置600における送信要求受付
処理を示すフローチャートである。
FIG. 25 is a flowchart showing a transmission request acceptance process in the task control device 600.

【図26】代行タスク2401の処理内容を示すフロー
チャートである。
FIG. 26 is a flowchart showing processing contents of a proxy task 2401.

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

1 CPU 2 メモリ 3 I/O部 4〜7 I/O部 10 データ格納部 11 制御部 11a CPU 11c バスI/F部 11d 主記憶 13 リモコン受信部 14 リモコン 15 受信部 16 MPEGデコーダ 17 ビデオ信号処理部 21a〜23a キュー 21b〜23b キュー管理テーブル 101 タスク制御装置 102 送信データサイズ管理部 103 送信要求受付部 104 データ格納部 105 受信データサイズ管理部 106 受信要求受付部 108 データ抽出部 109 データ転送部 DESCRIPTION OF SYMBOLS 1 CPU 2 Memory 3 I / O part 4-7 I / O part 10 Data storage part 11 Control part 11a CPU 11c Bus I / F part 11d Main memory 13 Remote control receiving part 14 Remote control 15 Receiving part 16 MPEG decoder 17 Video signal processing Units 21a to 23a queues 21b to 23b queue management table 101 task control device 102 transmission data size management unit 103 transmission request reception unit 104 data storage unit 105 reception data size management unit 106 reception request reception unit 108 data extraction unit 109 data transfer unit

フロントページの続き (72)発明者 ▲よし▼井 健人 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 山田 泰隆 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 田中 博文 大阪府門真市大字門真1006番地 松下電器 産業株式会社内Continued on the front page (72) Inventor ▲ Yoshi ▼ Kento Ii 1006 Kadoma Kadoma, Osaka Prefecture Inside Matsushita Electric Industrial Co., Ltd. (72) Inventor Hirofumi Tanaka 1006 Kazuma Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd.

Claims (25)

【特許請求の範囲】[Claims] 【請求項1】 複数のタスク間のデータ通信を制御する
タスク制御装置であって、 タスクの送信すべきデータを一時的に記憶するための領
域を有するデータ記憶手段と、 第1のタスクからデータ送信要求を受け、第1のタスク
の送信すべきデータをデータ記憶手段に転送する送信要
求処理手段と、 データ記憶手段に格納されている各データのサイズを管
理する管理手段と、 第2のタスクからデータ受信要求を受け、管理手段を参
照して第2のタスクが必要とする受信データサイズに等
しいサイズのデータがデータ記憶手段に記憶されている
場合に、その受信データサイズに等しいサイズのデータ
をデータ記憶手段から第2のタスクに転送する受信要求
処理手段とを備えることを特徴とするタスク制御装置。
1. A task control device for controlling data communication between a plurality of tasks, comprising: a data storage unit having an area for temporarily storing data to be transmitted by a task; Transmission request processing means for receiving a transmission request and transferring data to be transmitted in the first task to the data storage means; management means for managing the size of each data stored in the data storage means; Receiving a data reception request from the storage device and referring to the management unit, if data having a size equal to the reception data size required by the second task is stored in the data storage unit, the data having the size equal to the reception data size And a reception request processing means for transferring the request from the data storage means to the second task.
【請求項2】 請求項1記載の受信要求処理手段は、 タスク毎に必要とされる受信データサイズを保持する受
信サイズテーブルと、 第2のタスクからデータ受信要求を受けたとき、受信サ
イズテーブルから受信データサイズを、管理手段から各
データのサイズを読み出し、第2のタスクの受信データ
サイズ以上のデータがデータ記憶手段に記憶されている
か否かを判定するサイズ判定手段と、 第2のタスクの受信データサイズ以上のデータが記憶さ
れていると判定された場合、その受信データサイズに等
しいサイズのデータをデータ記憶手段から受信要求元の
タスクに転送する第2転送手段と を備えることを特徴とするタスク制御装置。
2. The reception request processing means according to claim 1, wherein: a reception size table for holding a reception data size required for each task; and a reception size table when a data reception request is received from a second task. A size determination unit that reads the received data size from the storage unit and a size of each data from the management unit, and determines whether or not data larger than the reception data size of the second task is stored in the data storage unit; And a second transfer unit for transferring data of a size equal to the received data size from the data storage unit to the task that has requested the reception when it is determined that data larger than the received data size is stored. Task control device.
【請求項3】 請求項2記載の送信要求処理手段は、 タスク毎に必要とされる送信データサイズを保持する送
信サイズテーブルと、 第1のタスクからデータ送信要求を受けたとき、送信サ
イズテーブルから当該タスクの送信データサイズを読み
出し、それ以上の空きがデータ記憶手段にあるかどうか
を判定する空き判定手段と、 空きがある場合に、第1のタスクの送信すべきデータを
データ記憶手段に転送する第1転送手段とを備えること
を特徴とするタスク制御装置。
3. The transmission request processing means according to claim 2, wherein: a transmission size table for holding a transmission data size required for each task; and a transmission size table when a data transmission request is received from the first task. Read the transmission data size of the task from the data storage means, and determine whether or not there is more free space in the data storage means. If there is a free space, the data to be transmitted by the first task is stored in the data storage means. A task control device, comprising: a first transfer unit that transfers the data.
【請求項4】 請求項3記載のタスク制御装置であっ
て、 前記データ記憶手段は、先入れ先出し式にデータを記憶
する複数のキューバッファを有し、 前記管理手段は、各キューバッファ毎に、格納されてい
るデータのサイズと空き領域のデータサイズとを管理
し、 前記データ送信要求は送信データ格納先のキューバッフ
ァの指定を含み、前記データ受信要求は受信データ要求
先のキューバッファの指定を含み、 前記空き判定手段は、データ送信要求にて指定されたキ
ューバッファに、送信サイズテーブルから読み出された
送信データサイズ以上の空きがあるかどうかを判定し、 前記サイズ判定手段は、データ受信要求にて指定された
キューバッファに、受信サイズテーブルから読み出され
た受信データサイズ以上のデータがあるか否かを判定す
ることを特徴とするタスク制御装置。
4. The task control device according to claim 3, wherein the data storage means has a plurality of queue buffers for storing data in a first-in first-out manner, and the management means stores the data for each queue buffer. The data transmission request includes a designation of a queue buffer of a transmission data storage destination, and the data reception request includes a designation of a queue buffer of a reception data request destination. The vacancy determining means determines whether or not the queue buffer specified by the data transmission request has a vacancy equal to or larger than the transmission data size read from the transmission size table; It is determined whether or not the queue buffer specified in が あ る contains data larger than the reception data size read from the reception size table. Task control unit, characterized by.
【請求項5】 請求項4記載のタスク制御装置であっ
て、 前記管理手段は、キューバッファに対応して設けられ、
サイズ判定手段により受信データサイズ以上のデータが
記憶されていないと判定されたデータ受信要求を一時的
に保持する複数の受信要求バッファを有し、 前記送信要求処理手段は、さらに、第1のタスクから送
信要求を受けたとき、その送信要求に合致する受信要求
が受信要求バッファに格納されている場合、第1転送手
段の転送を禁止して、第1のタスクから第2のタスクへ
データを直接転送する直接転送手段を有することを特徴
とするタスク制御装置。
5. The task control device according to claim 4, wherein the management unit is provided corresponding to a queue buffer,
A plurality of reception request buffers for temporarily storing data reception requests for which data larger than the reception data size has not been stored by the size determination unit, wherein the transmission request processing unit further includes a first task When a transmission request is received from the server and a reception request matching the transmission request is stored in the reception request buffer, the transfer by the first transfer unit is prohibited, and data is transferred from the first task to the second task. A task control device comprising direct transfer means for performing direct transfer.
【請求項6】 請求項4記載のタスク制御装置であっ
て、 前記送信要求処理手段は、さらに、第1のタスクからの
データ送信要求が所定の条件を満たすか否かを判断する
判断手段を備え、 前記管理手段は、さらに、キューバッファに対応して設
けられ、判断手段により所定の条件を満たすと判断され
たとき、当該データ送信要求の送信データについての第
1転送手段の転送を禁止して、当該データ送信要求を一
時的に保持する複数の送信要求バッファを備え、 前記受信要求処理手段は、さらに、受信要求を受けたと
き、それに合致する送信要求が送信要求バッファ保持さ
れている場合、第1のタスクから第2のタスクへデータ
を直接転送する直接転送手段を備えることを特徴とする
タスク制御装置。
6. The task control device according to claim 4, wherein the transmission request processing unit further includes a determination unit that determines whether a data transmission request from the first task satisfies a predetermined condition. The management means is further provided corresponding to the queue buffer, and prohibits the transfer of the transmission data of the data transmission request by the first transfer means when the determination means determines that the predetermined condition is satisfied. A plurality of transmission request buffers that temporarily hold the data transmission request, the reception request processing means further comprising: when a reception request is received, a transmission request matching the reception request is stored in the transmission request buffer. And a direct transfer unit for directly transferring data from the first task to the second task.
【請求項7】 請求項3記載のタスク制御装置であっ
て、 前記データ記憶手段は、タスク毎に設けられた先入れ先
出し式にデータを記憶する複数のキューバッファを有
し、 前記管理手段は、各キューバッファ毎に、格納されてい
るデータサイズと空きデータサイズとを管理し、 前記データ送信要求はデータ送信先のタスクの指定を含
み、前記データ受信要求はデータ受信元のタスクの指定
を含み、 前記空き判定手段は、データ送信要求にて指定されたタ
スクに対応するキューバッファに前記空きがあるかどう
かを判定し、 前記サイズ判定手段は、データ受信要求元のタスクに対
応するキューバッファに、前記受信データサイズ以上の
データがあるか否か判定することを特徴とするタスク制
御装置。
7. The task control device according to claim 3, wherein the data storage unit includes a plurality of queue buffers provided for each task and storing data in a first-in first-out manner. For each queue buffer, manage the stored data size and free data size, the data transmission request includes designation of a data transmission destination task, and the data reception request includes a data reception source task designation, The vacancy determining means determines whether or not there is the vacancy in the queue buffer corresponding to the task specified in the data transmission request, the size determining means, in the queue buffer corresponding to the task of the data reception request source, A task control device for determining whether there is data having a size equal to or larger than the received data size.
【請求項8】 請求項7記載のタスク制御装置であっ
て、 前記管理手段は、キューバッファに対応して設けられ、
サイズ判定手段により受信データサイズ以上のデータが
記憶されていないと判定されたデータ受信要求を一時的
に保持する複数の受信要求バッファを有し、 前記送信要求処理手段は、さらに、第1のタスクから送
信要求を受けたとき、その送信要求に合致する受信要求
が受信要求バッファに格納されている場合、第1転送手
段の転送を禁止して、第1のタスクから第2のタスクへ
データを直接転送する直接転送手段を有することを特徴
とするタスク制御装置。
8. The task control device according to claim 7, wherein the management unit is provided corresponding to a queue buffer,
A plurality of reception request buffers for temporarily storing data reception requests for which data larger than the reception data size has not been stored by the size determination unit, wherein the transmission request processing unit further includes a first task When a transmission request is received from the server and a reception request matching the transmission request is stored in the reception request buffer, the transfer by the first transfer unit is prohibited, and data is transferred from the first task to the second task. A task control device comprising direct transfer means for performing direct transfer.
【請求項9】 請求項7記載のタスク制御装置であっ
て、 前記送信要求処理手段は、さらに、第1のタスクからの
データ送信要求が所定の条件を満たすか否かを判断する
判断手段を備え、 前記管理手段は、さらに、キューバッファに対応して設
けられ、判断手段により所定の条件を満たすと判断され
たとき、当該データ送信要求の送信データについての第
1転送手段の転送を禁止して、当該データ送信要求を一
時的に保持する複数の送信要求バッファを備え、 前記受信要求処理手段は、さらに、受信要求を受けたと
き、それに合致する送信要求が送信要求バッファ保持さ
れている場合、第1のタスクから第2のタスクへデータ
を直接転送する直接転送手段を備えることを特徴とする
タスク制御装置。
9. The task control device according to claim 7, wherein the transmission request processing unit further includes a determination unit that determines whether a data transmission request from the first task satisfies a predetermined condition. The management means is further provided corresponding to the queue buffer, and prohibits the transfer of the transmission data of the data transmission request by the first transfer means when the determination means determines that the predetermined condition is satisfied. A plurality of transmission request buffers that temporarily hold the data transmission request, the reception request processing means further comprising: when a reception request is received, a transmission request matching the reception request is stored in the transmission request buffer. And a direct transfer unit for directly transferring data from the first task to the second task.
【請求項10】 複数のプロセッサを有するシステムで
用いられ、プロセッサに対応する同数のタスク制御部か
らなり、プロセッサのタスク間のデータ通信 を制御するタスク制御装置であって、各タスク制御部
は、 タスクの送信すべきデータを一時的に記憶する領域を有
するデータ記憶手段と、 自身のプロセッサの第1のタスクからデータ送信要求を
受けて、他のプロセッサのタスクへの送信か、自身のプ
ロセッサの他のタスクへの送信かを判別するプロセッサ
判別手段と、 他のプロセッサのタスクへの送信と判別された場合に、
第1のタスクの送信すべきデータをデータ記憶手段に転
送する送信要求処理手段と、 他のプロセッサのタスクへの送信と判別された場合に、
第1の送信すべきデータを当該他のプロセッサのデータ
記憶手段に送信データを配送するデータ配送手段と、 データ記憶手段に格納されている各データのサイズを管
理する管理手段と、 自身のプロセッサの第2のタスクからデータ受信要求を
受けて、管理手段を参照して第2のタスクが必要とする
受信データサイズに等しいサイズのデータがデータ記憶
手段に記憶されている場合に、その受信データサイズに
等しいサイズのデータをデータ記憶手段から第2のタス
クに転送する受信要求処理手段とことを特徴とするタス
ク制御装置。
10. A task control device used in a system having a plurality of processors, comprising a same number of task control units corresponding to the processors, and controlling data communication between tasks of the processors. A data storage unit having an area for temporarily storing data to be transmitted by a task; receiving a data transmission request from a first task of its own processor, and transmitting the data to a task of another processor; A processor determining means for determining whether the data is transmitted to another task; and
Transmission request processing means for transferring the data to be transmitted of the first task to the data storage means, and when it is determined that the data is to be transmitted to the task of another processor,
A data delivery means for delivering the transmission data to the data storage means of the other processor; a management means for managing the size of each data stored in the data storage means; Upon receiving a data reception request from the second task and referring to the management means, if data having a size equal to the reception data size required by the second task is stored in the data storage means, the reception data size And a reception request processing unit for transferring data having a size equal to the data size from the data storage unit to the second task.
【請求項11】 請求項10のタスク制御装置であっ
て、 前記受信要求処理手段は、 自身のプロセッサのタスク毎の受信データサイズを保持
する受信サイズテーブルと、 自身のプロセッサの第2のタスクからデータ受信要求を
受けたとき、受信サイズテーブルと管理手段とを参照す
ることにより、その受信データサイズに等しいサイズの
データがデータ記憶手段に記憶されているか否かを判定
するサイズ判定手段と、 受信データサイズに等しいサイズのデータが記憶されて
いると判定された場合、その受信データサイズに等しい
サイズのデータをデータ記憶手段から第2のタスクに転
送する第2転送手段とを備えることを特徴とするタスク
制御装置。
11. The task control device according to claim 10, wherein the reception request processing means includes: a reception size table holding a reception data size for each task of the own processor; and a second task of the own processor. When a data reception request is received, a size determination unit that determines whether or not data having a size equal to the reception data size is stored in the data storage unit by referring to the reception size table and the management unit; When it is determined that data of a size equal to the data size is stored, a second transfer unit for transferring data of a size equal to the received data size from the data storage unit to the second task is provided. Task control device.
【請求項12】 請求項11のタスク制御装置であっ
て、 前記送信要求処理手段は、 自身のプロセッサのタスク毎の送信データサイズを保持
する送信サイズテーブルと、 プロセッサ判別手段により自身のプロセッサのタスクへ
の送信と判別されたとき、送信サイズテーブルから当該
タスクの送信データサイズを読み出し、それだけの空き
がデータ記憶手段にあるかどうかを判定する空き判定手
段と、 空きがある場合に、当該タスクの送信データをデータ記
憶手段に転送する第1転送手段とを備えることを特徴と
するタスク制御装置。
12. The task control device according to claim 11, wherein the transmission request processing means includes: a transmission size table for storing a transmission data size for each task of the own processor; When it is determined that the data is to be transmitted to the task, the transmission data size of the task is read from the transmission size table, and a vacancy determination unit that determines whether the data storage unit has the vacant data size. A first transfer unit for transferring transmission data to a data storage unit.
【請求項13】 請求項12のタスク制御装置であっ
て、 前記データ記憶手段は、先入れ先出し式にデータを記憶
する複数のキューバッファを有し、 前記管理手段は、各キューバッファ毎に、格納されてい
るデータのサイズと空き領域のデータサイズとを管理
し、 前記データ送信要求は送信データ格納先のキューバッフ
ァの指定を含み、前記データ受信要求は受信データ要求
先のキューバッファの指定を含み、 前記空き判定手段は、データ送信要求にて指定されたキ
ューバッファに前記空きがあるかどうかを判定し、 前記サイズ判定手段は、データ受信要求にて指定された
キューバッファに、前記受信データサイズに等しいサイ
ズのデータがあるか否か判定することを特徴とするタス
ク制御装置。
13. The task control device according to claim 12, wherein said data storage means has a plurality of queue buffers for storing data in a first-in first-out manner, and said management means is stored for each queue buffer. Managing the size of the data and the data size of the free space, the data transmission request includes a designation of a queue buffer of a transmission data storage destination, the data reception request includes a designation of a queue buffer of a reception data request destination, The vacancy determining means determines whether or not there is the vacancy in the queue buffer specified by the data transmission request, and the size determining means determines whether the received data size is in the queue buffer specified by the data reception request. A task control device for determining whether there is data of the same size.
【請求項14】 複数のプロセッサを有するシステムで
用いられ、プロセッサに対応する同数のタスク制御部か
らなり、プロセッサのタスク間のデータ通信を制御する
タスク制御装置であって、 各タスク制御部は、 タスク間の送信データを一時的に記憶する領域を有する
データ記憶手段と、 自身のプロセッサの第1のタスクからデータ送信要求を
受けて、第1のタスクからデータ記憶手段に送信データ
を転送する送信要求処理手段と、 データ記憶手段に格納されているデータのサイズを管理
する管理手段と、 自身のプロセッサのタスクからデータ受信要求を受け
て、他のプロセッサのタスクからの受信か、自身のプロ
セッサのタスクからの受信かを判別するプロセッサ判別
手段と、 自身のプロセッサの第2のタスクからの受信と判別され
たとき、管理手段を参照して当該タスクが必要とする受
信データサイズに等しいサイズンのデータがデータ記憶
手段に記憶されている場合に、その受信データサイズに
等しいサイズのデータをデータ記憶手段から第2のタス
クに転送する受信要求処理手段と、 他のプロセッサのタスクからの受信と判別されたとき、
当該他のプロセッサのデータ記憶手段から受信すべきデ
ータを取得するデータ取得手段とを備えることを特徴と
するタスク制御装置。
14. A task control device used in a system having a plurality of processors, comprising a same number of task control units corresponding to the processors, and controlling data communication between tasks of the processors, wherein each task control unit comprises: A data storage unit having an area for temporarily storing transmission data between tasks; and a transmission for receiving a data transmission request from a first task of its own processor and transferring the transmission data from the first task to the data storage unit. Request processing means; managing means for managing the size of data stored in the data storage means; receiving a data reception request from a task of its own processor; receiving data from a task of another processor; A processor determining means for determining whether the data is received from the task; and a determination that the data is received from the second task of the own processor. When the data having the size equal to the reception data size required by the task is stored in the data storage unit with reference to the management unit, the data having the size equal to the reception data size is stored in the data storage unit. Receiving request processing means for transferring to a task of the other processor;
A data acquisition unit for acquiring data to be received from the data storage unit of the other processor.
【請求項15】 請求項14記載のタスク制御装置であ
って、 前記受信要求処理手段は、 自身のプロセッサのタスク毎の受信データサイズを保持
する受信サイズテーブルと、 プロセッサ判別手段により自身のプロセッサの第2のタ
スクからの受信と判別されたとき、受信サイズテーブル
と管理手段とを参照することにより、第2のタスクの受
信データサイズに等しいサイズのデータがデータ記憶手
段に記憶されているか否かを判定するサイズ判定手段
と、 受信データサイズに等しいサイズのデータが記憶されて
いると判定された場合、その受信データサイズに等しい
サイズのデータをデータ記憶手段から第2のタスクに転
送する第2転送手段とを備えることを特徴とするタスク
制御装置。
15. The task control device according to claim 14, wherein the reception request processing unit includes: a reception size table that holds a reception data size for each task of the own processor; When it is determined that the data is received from the second task, whether or not data having a size equal to the received data size of the second task is stored in the data storage means by referring to the reception size table and the management means. And a second determining means for transferring data of a size equal to the received data size from the data storage means to the second task when it is determined that data of a size equal to the received data size is stored. A task control device comprising: a transfer unit.
【請求項16】 請求項15記載のタスク制御装置であ
って、 前記送信要求処理手段は、 自身のプロセッサのタスク毎の送信データサイズを保持
する送信サイズテーブルと、 自身のプロセッサのタスクからデータ送信要求を受けた
とき、送信サイズテーブルから当該タスクの送信データ
サイズを読み出し、それだけの空きがデータ記憶手段に
あるかどうかを判定する空き判定手段と、 空きがある場合に、当該タスクの送信データをデータ記
憶手段に転送する第1転送手段とを備えることを特徴と
するタスク制御装置。
16. The task control device according to claim 15, wherein the transmission request processing means includes: a transmission size table holding a transmission data size for each task of its own processor; and data transmission from a task of its own processor. Upon receiving the request, read out the transmission data size of the task from the transmission size table and determine whether there is enough free space in the data storage means. A first transfer unit for transferring the data to a data storage unit.
【請求項17】 請求項16記載のタスク制御装置であ
って、 前記データ記憶手段は、先入れ先出し式にデータを記憶
する複数のキューバッファを有し、 前記管理手段は、各キューバッファ毎に、格納されてい
るデータのサイズと空き領域のデータサイズとを管理
し、 前記データ送信要求は送信データ格納先のキューバッフ
ァの指定を含み、前記データ受信要求は受信データ要求
先のキューバッファの指定を含み、 前記空き判定手段は、データ送信要求にて指定されたキ
ューバッファに、送信サイズテーブルから読み出された
送信データサイズ以上の空きがあるかどうかを判定し、 前記サイズ判定手段は、データ受信要求にて指定された
キューバッファに、受信データサイズテーブルから読み
出された受信データサイズ以上のデータがあるかを否か
判定することを特徴とするタスク制御装置。
17. The task control device according to claim 16, wherein said data storage means has a plurality of queue buffers for storing data in a first-in first-out manner, and said management means stores the data for each queue buffer. The data transmission request includes a designation of a queue buffer of a transmission data storage destination, and the data reception request includes a designation of a queue buffer of a reception data request destination. The vacancy determining means determines whether or not the queue buffer specified by the data transmission request has a vacancy equal to or larger than the transmission data size read from the transmission size table; In the queue buffer specified in, there is data larger than the reception data size read from the reception data size table Task control unit and judging whether the.
【請求項18】 複数のプロセッサを有するシステムで
用いられ、プロセッサに対応する同数のタスク制御部か
らなり、プロセッサのタスク間のデータ通信を制御する
タスク制御装置であって、 各タスク制御部は、 タスク間の送信データを一時的に記憶する領域を有する
データ記憶手段と、 自身のプロセッサのタスクからデータ送信要求を受け
て、他のプロセッサのタスクへの送信か、自身のプロセ
ッサのタスクへの送信かを判別するプロセッサ判別手段
と、 自身のプロセッサのタスクへの送信と判別された場合
に、送信要求元のタスクからデータ記憶手段に送信デー
タを転送する送信要求処理手段と、 他のプロセッサのタスクへの送信と判別された場合に、
当該他のプロセッサの特定のタスクを実行することによ
り、送信要求元のタスクから当該他のプロセッサのデー
タ記憶手段に送信データを転送する特定タスク実行手段
と、 データ記憶手段に格納されているデータのサイズを管理
する管理手段と、 自身のプロセッサのタスクからデータ受信要求を受け
て、管理手段を参照して当該タスクが必要とする受信デ
ータサイズに等しいサイズのデータがデータ記憶手段に
記憶されている場合に、その受信データサイズに等しい
サイズのデータをデータ記憶手段から当該タスクに転送
する受信要求処理手段とを備えることを特徴とするタス
ク制御装置。
18. A task control device used in a system having a plurality of processors, comprising a same number of task control units corresponding to the processors, and controlling data communication between tasks of the processors, wherein each task control unit comprises: Data storage means having an area for temporarily storing transmission data between tasks; receiving a data transmission request from a task of its own processor and transmitting it to a task of another processor or transmitting it to a task of its own processor Processor determination means for determining whether the transmission is to the task of its own processor, transmission request processing means for transferring transmission data from the task of the transmission request source to the data storage means, and a task of another processor. If it is determined to be sent to
A specific task execution unit for transferring the transmission data from the transmission requesting task to the data storage unit of the other processor by executing the specific task of the other processor; Receiving a data reception request from a task of its own processor and managing the size, and referring to the management means, data having a size equal to the reception data size required by the task is stored in the data storage means. And a reception request processing unit for transferring data having a size equal to the reception data size from the data storage unit to the task.
【請求項19】 請求項18のタスク制御装置であっ
て、 前記受信要求処理手段は、 自身のプロセッサのタスク毎の受信データサイズを保持
する受信サイズテーブルと、 自身のプロセッサの第2のタスクからデータ受信要求を
受けたとき、受信サイズテーブルと管理手段とを参照す
ることにより、その受信データサイズに等しいサイズの
データがデータ記憶手段に記憶されているか否かを判定
するサイズ判定手段と、 受信データサイズに等しいサイズのデータが記憶されて
いると判定された場合、その受信データサイズに等しい
サイズのデータをデータ記憶手段から第2のタスクに転
送する第2転送手段とを備えることを特徴とするタスク
制御装置。
19. The task control device according to claim 18, wherein said reception request processing means includes: a reception size table for holding a reception data size for each task of its own processor; and a second task of its own processor. When a data reception request is received, a size determination unit that determines whether or not data having a size equal to the reception data size is stored in the data storage unit by referring to the reception size table and the management unit; When it is determined that data of a size equal to the data size is stored, a second transfer unit for transferring data of a size equal to the received data size from the data storage unit to the second task is provided. Task control device.
【請求項20】 請求項19のタスク制御装置であっ
て、 前記送信要求処理手段は、 自身のプロセッサのタスク毎の送信データサイズを保持
する送信サイズテーブルと、 プロセッサ判別手段により自身のプロセッサのタスクへ
の送信と判別されたとき、送信サイズテーブルから当該
タスクの送信データサイズを読み出し、それだけの空き
がデータ記憶手段にあるかどうかを判定する空き判定手
段と、 空きがある場合に、当該タスクの送信データをデータ記
憶手段に転送する第1転送手段とを備えることを特徴と
するタスク制御装置。
20. The task control device according to claim 19, wherein the transmission request processing unit includes: a transmission size table for storing a transmission data size for each task of the own processor; When it is determined that the data is to be transmitted to the task, the transmission data size of the task is read from the transmission size table, and a vacancy determination unit that determines whether the data storage unit has the vacant data size. A first transfer unit for transferring transmission data to a data storage unit.
【請求項21】 請求項20記載のタスク制御装置であ
って、 前記データ記憶手段は、先入れ先出し式にデータを記憶
する複数のキューバッファを有し、 前記管理手段は、各キューバッファ毎に、格納されてい
るデータのサイズと空き領域のデータサイズとを管理
し、 前記データ送信要求は送信データ格納先のキューバッフ
ァの指定を含み、前記データ受信要求は受信データ要求
先のキューバッファの指定を含み、 前記空き判定手段は、データ送信要求にて指定されたキ
ューバッファに、送信サイズテーブルから読み出された
送信データサイズ以上の空きがあるかどうかを判定し、 前記サイズ判定手段は、データ受信要求にて指定された
キューバッファに、受信サイズテーブルから読み出され
た受信データサイズ以上のデータがあるか否かを判定す
ることを特徴とするタスク制御装置。
21. The task control device according to claim 20, wherein the data storage unit has a plurality of queue buffers for storing data in a first-in first-out manner, and the management unit stores the data for each queue buffer. The data transmission request includes a designation of a queue buffer of a transmission data storage destination, and the data reception request includes a designation of a queue buffer of a reception data request destination. The vacancy determining means determines whether or not the queue buffer specified by the data transmission request has a vacancy equal to or larger than the transmission data size read from the transmission size table; Whether there is data in the queue buffer specified in, which is larger than the received data size read from the received size table Task control unit and judging.
【請求項22】 タスク間のデータ通信を制御するタス
ク制御プログラムを記憶するコンピュータ読み取り可能
な記憶媒体であって、 前記タスク制御プログラムは、 タスクからデータ送信要求を受け、当該タスクの送信デ
ータをバッファメモリに格納する送信要求処理手段と、 バッファメモリに格納されているデータのサイズを管理
する管理手段と、 タスクからデータ受信要求を受け、管理手段を参照して
当該タスクが必要とする受信データサイズに等しいサイ
ズのデータがバッファメモリに記憶されている場合に、
その受信データサイズに等しいサイズのデータをバッフ
ァメモリから当該タスクに転送する受信要求処理手段と
をコンピュータに実行されることにより発揮することを
特徴とする記憶媒体。
22. A computer-readable storage medium storing a task control program for controlling data communication between tasks, the task control program receiving a data transmission request from a task, and buffering transmission data of the task. Transmission request processing means stored in the memory, management means for managing the size of data stored in the buffer memory, received data request from the task, received data size required by the task by referring to the management means If data of a size equal to is stored in the buffer memory,
A storage medium, which is realized by executing, by a computer, reception request processing means for transferring data having a size equal to the received data size from a buffer memory to the task.
【請求項23】 複数のプロセッサを有するコンピュー
タシステムで用いられ、プロセッサにと同数のタスク制
御プログラムからなり、プロセッサのタスク間のデータ
通信を制御するプログラムを記憶する記憶媒体であっ
て、 各タスク制御プログラムは、 自身のプロセッサのタスクからデータ送信要求を受け
て、他のプロセッサのタスクへの送信か、自身のプロセ
ッサのタスクへの送信かを判別するプロセッサ判別手段
と、 自身のプロセッサのタスクへの送信と判別された場合
に、送信要求元のタスクからバッファメモリに送信デー
タを転送する送信要求処理手段と、 他のプロセッサのタスクへの送信と判別された場合に、
送信要求元のタスクから当該他のプロセッサのバッファ
メモリに送信データを配送するデータ配送手段と、 バッファメモリに格納されているデータのサイズを管理
する管理手段と、 自身のプロセッサのタスクからデータ受信要求を受け
て、管理手段を参照して当該タスクが必要とする受信デ
ータサイズに等しいサイズのデータがバッファメモリに
記憶されている場合に、その受信データサイズに等しサ
イズのデータをバッファメモリから当該タスクに転送す
る受信要求処理手段とをコンピュータに実行されること
により発揮することを特徴とする記憶媒体。
23. A storage medium for use in a computer system having a plurality of processors, comprising a same number of task control programs as processors and storing a program for controlling data communication between tasks of the processors. The program receives a data transmission request from a task of its own processor, and determines whether the program is to be transmitted to a task of another processor or to a task of its own processor. Transmission request processing means for transferring transmission data from the task of the transmission requester to the buffer memory when transmission is determined; and transmission determination for transmission to a task of another processor,
Data delivery means for delivering transmission data from the task of the transmission request to the buffer memory of the other processor; management means for managing the size of the data stored in the buffer memory; and a data reception request from the task of its own processor. Then, if data having a size equal to the reception data size required by the task is stored in the buffer memory with reference to the management means, the data having the size equal to the reception data size is read from the buffer memory. A storage medium, which is realized by executing, by a computer, a reception request processing unit that transfers the request to a task.
【請求項24】 複数のプロセッサを有するコンピュー
タシステムで用いられ、プロセッサにと同数のタスク制
御プログラムからなり、プロセッサのタスク間のデータ
通信を制御するプログラムを記憶する記憶媒体であっ
て、 各タスク制御プログラムは、 自身のプロセッサのタスクからデータ送信要求を受け
て、タスクからバッファメモリに送信データを転送する
送信要求処理手段と、 バッファメモリに格納されているデータのサイズを管理
する管理手段と、 自身のプロセッサのタスクからデータ受信要求を受け
て、他のプロセッサのタスクからの受信か、自身のプロ
セッサのタスクからの受信かを判別するプロセッサ判別
手段と、 自身のプロセッサのタスクからの受信と判別されたと
き、管理手段を参照して当該タスクが必要とする受信デ
ータサイズに等しいサイズのデータがバッファメモリに
記憶されている場合に、その受信データサイズに等しい
サイズのデータをバッファメモリから当該タスクに転送
する受信要求処理手段と、 他のプロセッサのタスクからの受信と判別されたとき、
当該他のプロセッサのバッファメモリから受信すべきデ
ータを取得するデータ取得手段とをコンピュータに実行
されることにより発揮することを特徴とする記憶媒体。
24. A storage medium for use in a computer system having a plurality of processors, comprising a same number of task control programs as the processors and storing a program for controlling data communication between tasks of the processors. The program receives a data transmission request from a task of its own processor, and transmits transmission request processing data to the buffer memory from the task; a management means for managing the size of data stored in the buffer memory; A processor determination unit that receives a data reception request from a task of the processor of the processor and determines whether the data is received from a task of another processor or a task of the processor itself, and is determined to be reception from a task of the processor itself. Received by the task, refer to the management When data of a size equal to the data size is stored in the buffer memory, reception request processing means for transferring data of a size equal to the received data size from the buffer memory to the task, and reception of data from a task of another processor. When determined,
A storage medium characterized by being executed by a computer executing data acquisition means for acquiring data to be received from a buffer memory of another processor.
【請求項25】 複数のプロセッサを有するコンピュー
タシステムで用いられ、プロセッサにと同数のタスク制
御プログラムからなり、プロセッサのタスク間のデータ
通信を制御するプログラムを記憶する記憶媒体であっ
て、 各タスク制御プログラムは、 自身のプロセッサのタスクからデータ送信要求を受け
て、他のプロセッサのタスクへの送信か、自身のプロセ
ッサのタスクへの送信かを判別するプロセッサ判別手段
と、 自身のプロセッサのタスクへの送信と判別された場合
に、送信要求元のタスクからバッファメモリに送信デー
タを転送する送信要求処理手段と、 他のプロセッサのタスクへの送信と判別された場合に、
当該他のプロセッサの特定のタスクを実行することによ
り、送信要求元のタスクから当該他のプロセッサのバッ
ファメモリに送信データを転送する特定タスク実行手段
と、 バッファメモリに格納されているデータのサイズを管理
する管理手段と、 自身のプロセッサのタスクからデータ受信要求を受け
て、管理手段を参照して当該タスクが必要とする受信デ
ータサイズに等しいサイズのデータがバッファメモリに
記憶されている場合に、その受信データサイズに等しい
サイズのデータをバッファメモリから当該タスクに転送
する受信要求処理手段とをコンピュータに実行されるこ
とにより発揮することを特徴とする記憶媒体。
25. A storage medium for use in a computer system having a plurality of processors, comprising a same number of task control programs as the processors and storing a program for controlling data communication between tasks of the processors. The program receives a data transmission request from a task of its own processor, and determines whether the program is to be transmitted to a task of another processor or to a task of its own processor. Transmission request processing means for transferring transmission data from the task of the transmission requester to the buffer memory when transmission is determined; and transmission determination for transmission to a task of another processor,
By executing a specific task of the other processor, a specific task executing means for transferring the transmission data from the task requesting the transmission to the buffer memory of the other processor, and increasing the size of the data stored in the buffer memory. When a data receiving request is received from a task of its own processor and a data receiving request from the task of its own processor is referred to, and data of a size equal to the received data size required by the task is stored in the buffer memory, A storage medium, which is realized by executing, by a computer, reception request processing means for transferring data having a size equal to the received data size from a buffer memory to the task.
JP30148398A 1997-10-22 1998-10-22 Task controller and storage medium storing task control program Pending JPH11203150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30148398A JPH11203150A (en) 1997-10-22 1998-10-22 Task controller and storage medium storing task control program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP9-289731 1997-10-22
JP28973197 1997-10-22
JP30148398A JPH11203150A (en) 1997-10-22 1998-10-22 Task controller and storage medium storing task control program

Publications (1)

Publication Number Publication Date
JPH11203150A true JPH11203150A (en) 1999-07-30

Family

ID=26557717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30148398A Pending JPH11203150A (en) 1997-10-22 1998-10-22 Task controller and storage medium storing task control program

Country Status (1)

Country Link
JP (1) JPH11203150A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7461380B2 (en) 2003-02-18 2008-12-02 Denso Corporation Inter-task communications method, program, recording medium, and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7461380B2 (en) 2003-02-18 2008-12-02 Denso Corporation Inter-task communications method, program, recording medium, and electronic device

Similar Documents

Publication Publication Date Title
US6016520A (en) Method of viewing at a client viewing station a multiple media title stored at a server and containing a plurality of topics utilizing anticipatory caching
JP3730686B2 (en) Method for transmitting data, data communication system, data communication network
US8719456B2 (en) Shared memory message switch and cache
EP0543512B1 (en) Multiprocessor system
JP3120963B2 (en) Method for transferring messages and system for transferring messages
US5894579A (en) Power management system and method
KR920005852B1 (en) Apparatus and method for providing a composit descriptor in a data processing system
US5673394A (en) Method of sharing memory between an operating system and an application program
US20090319909A1 (en) Data Transfer Systems, Switches, and Method of Providing the Same
US20040083317A1 (en) System and method for explict communication of messages between processes running on different nodes in a clustered multiprocessor system
US20050223131A1 (en) Context-based direct memory access engine for use with a memory system shared by devices associated with multiple input and output ports
US8059670B2 (en) Hardware queue management with distributed linking information
US5715474A (en) Simultaneous control of radio frequency modem in a multi-tasking system using a single session manager program with separate command queue for each application program
EP0249116B1 (en) Method for controlling data transfer buffer
JPH06187299A (en) Parallel processing system
US5448708A (en) System for asynchronously delivering enqueue and dequeue information in a pipe interface having distributed, shared memory
US5446844A (en) Peripheral memory interface controller as a cache for a large data processing system
WO2005036313A2 (en) Queue register configuration structure
JPH11149443A (en) Interconnection system between personal computer and computer work station
JPH11203150A (en) Task controller and storage medium storing task control program
US20060242258A1 (en) File sharing system, file sharing program, management server and client terminal
US20050265336A1 (en) Data processing apparatus and data transfer control method
US6675239B1 (en) Method and apparatus for providing commands to a command memory
JP2000090042A (en) System and method managing buffer by using empty pointer fifo including pointer indicating empty buffer
EP1139228A2 (en) An intelligent bus interconnect unit