JPH05303524A - Buffer control system - Google Patents

Buffer control system

Info

Publication number
JPH05303524A
JPH05303524A JP8435092A JP8435092A JPH05303524A JP H05303524 A JPH05303524 A JP H05303524A JP 8435092 A JP8435092 A JP 8435092A JP 8435092 A JP8435092 A JP 8435092A JP H05303524 A JPH05303524 A JP H05303524A
Authority
JP
Japan
Prior art keywords
buffer
program
buffers
waiting
allocation
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.)
Withdrawn
Application number
JP8435092A
Other languages
Japanese (ja)
Inventor
Shigeo Idemura
重夫 井出村
Nobuyoshi Nagarei
信義 長禮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Kyushu 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 NEC Corp, NEC Software Kyushu Ltd filed Critical NEC Corp
Priority to JP8435092A priority Critical patent/JPH05303524A/en
Publication of JPH05303524A publication Critical patent/JPH05303524A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To enable a buffer allocating process with plural sizes corresponding to the purposes of utilization. CONSTITUTION:This buffer control system has a buffer control program 2 which performs the allocating, releasing, and buffer vacancy waiting processes of the buffer in response to request instruction from a message processing program 1, a buffer control table 3 which is stored with buffer control information by the buffer control program 2, a buffer group 4 which is used by the sizes repeatedly by the allocation and releasing, and corresponding buffer vacancy wait semaphores 5 and 6 by the sizes which put the message processing program 1, requesting buffer acquisition, temporarily in a queue when the free buffer is deficient.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ処理装置に於け
るサイズ別バッファの管理に関するもので特にバッファ
取得の要求サイズ別に複数種類のバッファ割付けのため
のバッファ管理方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the management of buffers of different sizes in a data processing apparatus, and more particularly to a buffer management system for allocating a plurality of types of buffers according to the requested size of buffer acquisition.

【0002】[0002]

【従来の技術】従来のこの種のバッファ管理は、バッフ
ァ管理テーブルのみを設け、バッファ要求情報をこのテ
ーブルに登録、参照することでバッファの空き持ち管理
と割当て管理を実行していた。
2. Description of the Related Art In the conventional buffer management of this kind, only a buffer management table is provided, and buffer availability information and allocation management are executed by registering and referring to the buffer request information.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のバッフ
ァ管理方式では、バッファ割当て管理情報が増え、バッ
ファ管理テーブルが大きくなったり、バッファ管理テー
ブルへのバッファ要求情報の登録,参照処理が困難で、
バッファ管理(割当て,開放,空き待ち制御)プログラ
ムが煩雑になるという問題点がある。
In the above-mentioned conventional buffer management system, the buffer allocation management information increases, the buffer management table becomes large, and it is difficult to register and reference the buffer request information in the buffer management table.
There is a problem that the buffer management (allocation, release, waiting control) program becomes complicated.

【0004】さらに、新たなサイズのバッファを追加し
ようとした場合、バッファ管理テーブルの追加やバッフ
ァ管理プログラムの修正が大きく、簡単に新規バッファ
を設けられないなどの欠点がある。
Further, when a buffer of a new size is to be added, there are drawbacks such as the addition of a buffer management table and the modification of the buffer management program being large, and the new buffer cannot be easily provided.

【0005】[0005]

【課題を解決するための手段】本発明の方式は、メッセ
ージの一時格納域として利用される複数種のバッファ
と、前記バッファの割当て,開放,空き待ち処理を実行
するバッファ管理プログラムと、前記バッファ管理プロ
グラムを呼び出し、バッファを介してメッセージの転送
を実行するメッセージ処理プログラムとで構成されるデ
ータ処理装置に於けるバッファ管理方式に於いて、バッ
ファの空き待ち管理手段としてバッファ管理テーブルと
バッファ種別のバッファ空き待ちセマフォとを設け、前
記メッセージ処理プログラムにより指定されるバッファ
種別に対応するバッファ空き待ちセマフォでのバッファ
空き待ち合せ及びバッファ空き待ち要求へのバッファ割
当てを実施し、バッファの利用目的に応じた複数種のバ
ッファ割当てを可能にすることを特徴とする。
According to the method of the present invention, a plurality of types of buffers are used as temporary storage areas for messages, a buffer management program for executing allocation, release, and waiting processing of the buffers, and the buffers. In a buffer management system in a data processing device, which comprises a message processing program that calls a management program and transfers a message via a buffer, a buffer management table and a buffer type A buffer empty waiting semaphore is provided, and buffer empty waiting is performed by the buffer empty waiting semaphore corresponding to the buffer type specified by the message processing program, and a buffer is allocated to the buffer empty waiting request, according to the purpose of using the buffer. Allows multiple types of buffer allocation Characterized in that it.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0007】本発明の一実施例を示す図1を参照する
と、本実施例は大小2レベルのサイズを持ったバッファ
割当て処理例を示す。本データ処理装置はバッファを介
して大小2つのサイズを持った、データの転送を実行す
るメッセージ処理プログラム1と、メッセージ処理プロ
グラム1からの要求指示でバッファの割当て、開放、空
き待ち処理を実行するバッファ管理プログラム2と、バ
ッファ管理プログラム2によりバッファ管理情報が格納
されるバッファ管理テーブル3と、割当て、開放で繰り
返し使用されるサイズ大と小の複数個のバッファから成
るバッファ群4と、空きバッファ不足時にバッファ取得
要求を行なうメッセージ処理プログラム1を一時的に待
ち合せるための大小2サイズ対応バッファ空き待ちセマ
フォ5,6とから構成されている。
Referring to FIG. 1 showing an embodiment of the present invention, this embodiment shows an example of a buffer allocation process having sizes of two levels, large and small. This data processing device executes a message processing program 1 having two sizes, a large size and a small size, via a buffer to execute data transfer, and a buffer allocation, release, and waiting processing for a buffer in response to a request instruction from the message processing program 1. A buffer management program 2, a buffer management table 3 in which buffer management information is stored by the buffer management program 2, a buffer group 4 composed of a plurality of buffers of a large size and a small size repeatedly used for allocation and release, and an empty buffer It is composed of buffer semaphores 5 and 6 for waiting for buffers of large and small sizes 2 for temporarily waiting for the message processing program 1 which makes a buffer acquisition request when there is a shortage.

【0008】尚、図2はバッファ管理プログラム2のバ
ッファ割当て,開放,空き待ち処理フローチャート,図
3はバッファ管理テーブル3の形式及び格納情報で、各
々の詳細な処理内容,制御情報を示したものである。以
下に図2のバッファ管理プログラム処理フロー順に、大
小2レベルのサイズを持たせたバッファ割当て管理方式
についてその動作原理を説明する。
FIG. 2 is a flow chart of buffer allocation, release and waiting processing of the buffer management program 2, and FIG. 3 is a format and storage information of the buffer management table 3, showing detailed processing contents and control information of each. Is. The principle of operation of the buffer allocation management system having sizes of two levels will be described below in the order of the buffer management program processing flow of FIG.

【0009】バッファ間プログラム2には、メッセージ
処理プログラム1から指定されるバッファ要求数(n
ケ)及び要求サイズ(大,小)に従い、nケのバッファ
を割当て、また割当て失敗時にnケのバッファを待ち合
せ、またnケのバッファを返却する各機能が実装されて
いる。
In the inter-buffer program 2, the number of buffer requests (n
Functions for allocating n buffers, waiting for n buffers when allocation fails, and returning n buffers in accordance with the request size (large and small).

【0010】バッファnケの割当て処理は、要求された
nケの空きバッファがすでに存在すれば直ちにそのバッ
ファを要求元に渡し、バッファ管理テーブル3の空きバ
ッファ数をnケカウントダウンする。
In the process of allocating n buffers, if the requested n free buffers already exist, the buffers are immediately passed to the request source and the number of free buffers in the buffer management table 3 is counted down by n.

【0011】また、要求されたnケの空きバッファが使
用中で割当て不可能な場合、指定されたサイズ(大,
小)別に空き待ちバッファ最小数及びバッファ空き待ち
プログラム数(カウント1アップ)をバッファ管理テー
ブル3に記憶し、サイズ別の空き待ちセマフォ5又は6
にP操作を実行する。空き待ちバッファ最小数は、バッ
ファ空き待ちウエイトプログラム中で最も少い取得要求
バッファ数を記憶して、バッファが返却される度に、再
動作可能なプログラムが存在するか否かを判定し、効率
良く空き待ちウエイトプログラム1にバッファを渡すた
めの情報である。
When the requested n free buffers are in use and cannot be allocated, the specified size (large,
The minimum number of free waiting buffers and the number of free buffer waiting programs (count up 1) are stored in the buffer management table 3 for each small size, and free waiting semaphores 5 or 6 for each size are stored.
To perform P operation. The minimum number of free waiting buffers is the minimum number of acquisition request buffers in the buffer waiting wait program, and each time the buffer is returned, it is determined whether or not there is a re-executable program, This is information for passing the buffer to the wait-for-wait program 1 well.

【0012】P操作でバッファ要求プログラム1は、要
求数のバッファが返却されるまで、一時ウエイトする。
このウエイト状態は、バッファ解放処理からのV操作に
より解かれ、再度要求バッファ数(nケ)の割当て処理
に進む。ここで再び空きバッファが存在しなければ前述
の処理を同様に繰り返し、再びバッファ空き待ちウエイ
トとなる。
In the P operation, the buffer request program 1 temporarily waits until the requested number of buffers are returned.
This wait state is solved by the V operation from the buffer releasing process, and the process proceeds to the request buffer number (n number) allocation process again. If there is no empty buffer again, the above-mentioned processing is repeated in the same manner, and the waiting for waiting for a buffer becomes again.

【0013】一方、バッファ(nケ)の返却処理では、
返却要求のあったバッファを空きバッファにリンクし、
バッファ管理テーブル3の空きバッファ数をnケカウン
トアップする。次に、バッファ管理テーブル3のサイズ
別のバッファ空き待ち情報を参照し、バッファ空き待ち
のメッセージ処理プログラム1が存在しなければそのま
ま処理終了し、存在する場合は空きバッファ数と空き待
ちバッファ最小数を比較し、空き待ちバッファ最小数に
空きバッファ数が満たない場合、処理終了する。
On the other hand, in the process of returning the buffer (n),
Link the buffer requested to be returned to an empty buffer,
The number of empty buffers in the buffer management table 3 is incremented by n. Next, the buffer free wait information for each size in the buffer management table 3 is referred to. If the message free program 1 waiting for buffer free does not exist, the process ends as it is. If so, the number of free buffers and the minimum free wait buffer number When the number of free buffers does not reach the minimum number of free waiting buffers, the process ends.

【0014】空きバッファ数が空き待ちバッファ最小数
以上に達していればバッファウエイト中のメッセージ処
理プログラム1に再び動作可能なプログラムが有ると判
断し、バッファ管理テーブル3の空き待ちバッファ最小
数及び空き待ちプログラム数のそれぞれバッファ総数、
及びθで初期化後、サイブ別のバッファ空き待ちセマフ
ォに対し空き待ちプログラム数分の回数V操作を実行す
る。このV操作で、バッファ空き待ちのメッセージ処理
プログラム1が再起動され、再びバッファの割当て処理
に進む。
If the number of free buffers has reached the minimum number of free waiting buffers or more, it is determined that the message processing program 1 in buffer wait has a program that can operate again, and the minimum number of free waiting buffers and free space in the buffer management table 3 are determined. The total number of buffers for the number of waiting programs,
After the initialization by θ and θ, the V operation is executed to the buffer semaphore waiting semaphore for each sive the number of times corresponding to the number of programs waiting for vacancy. By this V operation, the message processing program 1 waiting for a buffer space is restarted, and the process proceeds to the buffer allocation process again.

【0015】この様に、本発明のバッファ管理方式は、
利用目的に応じた、複数のサイズを持つバッファ割当て
管理が可能となる。
Thus, the buffer management system of the present invention is
It is possible to manage the buffer allocation with multiple sizes according to the purpose of use.

【0016】[0016]

【発明の効果】本発明には以上説明した様に、バッファ
の管理手段としてバッファ管理テーブルとバッファサイ
ズ別のバッファ空き待ちセマフォとを持つことにより、
利用目的に応じて複数のサイズを持ってバッファ割当て
処理を可能にし、小さなバッファ管理テーブル,少ない
バッファ管理情報,簡便なバッファ管理プログラムで実
現出来、さらに新たなバッファサイズを持ったバッファ
割当て処理の追加も比較的簡単に出来るという効果があ
る。
As described above, according to the present invention, the buffer management table and the buffer empty wait semaphore for each buffer size are provided as the buffer management means.
Enables buffer allocation processing with multiple sizes according to the purpose of use, can be realized with a small buffer management table, little buffer management information, and a simple buffer management program. In addition, a buffer allocation processing with a new buffer size is added. Also has the effect of being relatively easy.

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

【図1】本発明の一実施例を示すデータ処理装置のブロ
ック図である。
FIG. 1 is a block diagram of a data processing device showing an embodiment of the present invention.

【図2】図1に示したバッファ管理プログラムの処理フ
ローチャートである。
FIG. 2 is a processing flowchart of a buffer management program shown in FIG.

【図3】図1に示したバッファ管理テーブル,大小のサ
イズ別バッファ,サイブ別のバッファ空き待ちセマフォ
の構造図である。
FIG. 3 is a structural diagram of a buffer management table shown in FIG. 1, buffers of different sizes, buffer semaphores waiting for buffers of sives.

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

1 メッセージ処理プログラム 2 バッファ管理テーブル 3 バッファ管理テーブル 4 バッファ群 5 セマフォ 6 セマフォ 1 Message Processing Program 2 Buffer Management Table 3 Buffer Management Table 4 Buffer Group 5 Semaphore 6 Semaphore

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 メッセージの一時格納域として利用され
る複数種のバッファと、前記バッファの割当て,開放,
空き待ち処理を実行するバッファ管理プログラムと、前
記バッファ管理プログラムを呼び出し、バッファを介し
てメッセージの転送を実行するメッセージ処理プログラ
ムとで構成されるデータ処理装置に於けるバッファ管理
方式に於いて、 バッファの空き待ち管理手段としてバッファ管理テーブ
ルとバッファ種別のバッファ空き待ちセマフォとを設
け、 前記メッセージ処理プログラムにより指定されるバッフ
ァ種別に対応するバッファ空き待ちセマフォでのバッフ
ァ空き待ち合せ及びバッファ空き待ち要求へのバッファ
割当てを実施し、バッファの利用目的に応じた複数種の
バッファ割当てを可能にすることを特徴とするバッファ
管理方式。
1. A plurality of types of buffers used as a temporary storage area for messages, and allocation, release, and
A buffer management method in a data processing device, which comprises a buffer management program for executing waiting processing and a message processing program for calling the buffer management program and transferring a message through the buffer, A buffer management table and a buffer free wait semaphore of the buffer type are provided as free wait management means of the buffer free wait semaphore corresponding to the buffer type specified by the message processing program. A buffer management method that implements buffer allocation and enables multiple types of buffer allocation according to the purpose of using the buffer.
JP8435092A 1992-04-07 1992-04-07 Buffer control system Withdrawn JPH05303524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8435092A JPH05303524A (en) 1992-04-07 1992-04-07 Buffer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8435092A JPH05303524A (en) 1992-04-07 1992-04-07 Buffer control system

Publications (1)

Publication Number Publication Date
JPH05303524A true JPH05303524A (en) 1993-11-16

Family

ID=13828073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8435092A Withdrawn JPH05303524A (en) 1992-04-07 1992-04-07 Buffer control system

Country Status (1)

Country Link
JP (1) JPH05303524A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0729106A1 (en) * 1995-02-14 1996-08-28 Nokia Mobile Phones Ltd. Data interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0729106A1 (en) * 1995-02-14 1996-08-28 Nokia Mobile Phones Ltd. Data interface

Similar Documents

Publication Publication Date Title
US5325492A (en) System for asynchronously delivering self-describing control elements with a pipe interface having distributed, shared memory
EP0093835B1 (en) Resource switching in a multi-tasking environment
KR100291301B1 (en) Communication system with signal data processing system and method and signal data processing system
JPH05303524A (en) Buffer control system
JPH0586574B2 (en)
JPS62126457A (en) Distributed data processing system
JPH0666061B2 (en) Multi CPU communication device
JP2910176B2 (en) Request reception processing device
JP2898985B2 (en) Image processing method
JPH0651999A (en) Information processing system with resource exclusive control function
JPH01191967A (en) Data communication processing system
JPS5958552A (en) Slowdown control system
JPH02120928A (en) Printer output control system
JP2000267960A (en) Method for communicating packet between plural processes and packet communication equipment
JPS63237156A (en) Picture input processing system
JPS63245754A (en) Input/output control system for information processing system
JPS62290958A (en) Task schedule system
JPH07168781A (en) Server/client system
JPH09167142A (en) Job dispatch device for parallel computer system
JPH02280264A (en) Message block control system
JPH0831018B2 (en) Print job management method
JPH0991231A (en) Application program execution method and device therefor in server-client computer system
JPS63316537A (en) System for sharing output device
JPH0478947A (en) High speed completion informing system
JPH03245256A (en) Method and device for dispatching control

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990608