JPS63180146A - Multiplex buffering control system for work file - Google Patents

Multiplex buffering control system for work file

Info

Publication number
JPS63180146A
JPS63180146A JP62011944A JP1194487A JPS63180146A JP S63180146 A JPS63180146 A JP S63180146A JP 62011944 A JP62011944 A JP 62011944A JP 1194487 A JP1194487 A JP 1194487A JP S63180146 A JPS63180146 A JP S63180146A
Authority
JP
Japan
Prior art keywords
buffer area
buffer
work file
file
work
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
JP62011944A
Other languages
Japanese (ja)
Inventor
Koji Fukuda
福田 光司
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62011944A priority Critical patent/JPS63180146A/en
Publication of JPS63180146A publication Critical patent/JPS63180146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To improve the availability of a buffer area when the wiring/reading jobs are applied to plural work files by releasing the buffer undergone the multiplex buffering during the input processing. CONSTITUTION:A work file control means 1 produces a buffer segmenting request to a buffer area control means 2 for the output request of a user via a reception terminal for requests given from users according to the state of a free area of a buffer area. If a buffer area is sacred, an output record is written into this buffer area. When the buffer area is not secured, an output record writing request is given to an input/output means 3 of a physical file 5. Then the record set on the work area is controlled. At the same time, it is confirmed whether a record exists in the buffer area or on the file 5 with respect to an input request. Then the record is taken out and returned to the user. The information on a work file control table is changed to the work file open and close requests given from the users.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はワークファイルの管理方式に関し、特に多重バ
ッファリング制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a work file management system, and more particularly to a multiple buffering control system.

(従来の技術) 従来、この種のバッファリング制御ではワークファイル
の出力オープン時に不要になったバッファを解放してい
たため、不要な情報がバッファ領域のなかに存在し、バ
ッファ領域の利用効率を低下させていた。
(Conventional technology) Conventionally, in this type of buffering control, a buffer that is no longer needed is released when a work file is opened for output, so unnecessary information exists in the buffer area, reducing the efficiency of buffer area usage. I was letting it happen.

(発明が解決しようとする問題点) 上述し九従来の多重バッファリング制御方式は、出力の
オープンとクローズ、ならび圧入力のオープンとクロー
ズより成るワークファイルのライフサイクルにおいて、
出力のオープン時にバッファ領域を解放するため、ライ
フサイクルの終了後も不要なバッファがバッファ領域に
残る。したがって、上記においてはバッファ領域の利用
効率が低いという欠点がある。
(Problems to be Solved by the Invention) The nine conventional multiple buffering control methods described above have problems in the life cycle of a work file consisting of opening and closing of output and opening and closing of press input.
Since the buffer area is released when the output is opened, unnecessary buffers remain in the buffer area even after the life cycle ends. Therefore, the above method has the disadvantage that the efficiency of buffer area utilization is low.

本発明の目的は、多重バッファリングされたバッファを
入力処理中に解放することによって上記欠点を除去し、
バッファ領域の利用効率の低下することがないように構
成したワークファイルの多重バッファリング制御方式を
提供することにある。
It is an object of the present invention to eliminate the above-mentioned drawbacks by freeing multi-buffered buffers during input processing,
It is an object of the present invention to provide a multiple buffering control method for work files configured so that the efficiency of buffer area utilization does not decrease.

(問題点を解決するための手段) 本発明によるワークファイルの多重バッファリング制御
方式は有限の大きさを有するバッファ領域と、バッファ
領域の管理手段と、物理ファイルの入出力手段と、ワー
クファイルの管理手段とを具備して構成したものである
(Means for Solving the Problems) The work file multiple buffering control method according to the present invention includes a buffer area having a finite size, a buffer area management means, a physical file input/output means, and a work file multiple buffering control method. The system is configured to include a management means.

バッファ領域の1!理手段は、バッファ領域から必要な
バッファの切出し、および不要なバッファの解放を交互
に実行するためのものである。
Buffer area 1! The management means is for alternately extracting necessary buffers from the buffer area and releasing unnecessary buffers.

物理ファイルの入出力手段は、物理ワークファイルとし
て機能する物理ファイルに対する入出力処理を実行する
ためのものである。
The physical file input/output means is for executing input/output processing for a physical file functioning as a physical work file.

ワークファイルの管理手段は、バッファ領域の内容が残
っているときには、物理ファイルを使用せずにバッファ
上でデータの入出力処理を実行するためのものである。
The work file management means is for executing data input/output processing on the buffer without using the physical file when the contents of the buffer area remain.

(実施例) 次に、本発明について図面を参照して詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例はワークファイ
ルの管理手段1と、バッファ領域の管理手段2と、物理
ファイルの管理手段3と、バッファ領域4と、物理ファ
イル5とから構成されている。ここで、21はバッファ
の切出し手段、22はバッファの返却手段である。
Referring to FIG. 1, one embodiment of the present invention comprises a work file management means 1, a buffer area management means 2, a physical file management means 3, a buffer area 4, and a physical file 5. ing. Here, 21 is a buffer extraction means, and 22 is a buffer return means.

ワークファイルの管理手段1は利用者からの要求の受領
゛・端末であり、バッファ領域のフリーエリアの状態に
よって利用者の出力要求に対してバッファ領域の管理手
段2ヘバツフアの切出し要求を発行し、バッファ領域が
確保できればこのバッファ領域へ出力レコードを書出す
。バッファ領域が確保できなければ、物理ファイル5の
入出力手段3へ出力レコードの書出し要求を発行し、ワ
ークファイル上のレコードを管理する。また、入力要求
に対してレコードがバッファ領域上に存在するか、ある
いは物理ファイルS上に存在するかを確認し、レコード
の取出しを行って利用者に返却する。利用者からのワー
クファイルのオープン要求およびクローズ要求に対して
は、ワークファイルの管理テーブル上の情報を変更する
The work file management means 1 is a terminal for receiving requests from users, and issues a buffer cutting request to the buffer area management means 2 in response to a user's output request depending on the state of the free area of the buffer area. If a buffer area can be secured, output records are written to this buffer area. If the buffer area cannot be secured, an output record write request is issued to the input/output means 3 of the physical file 5, and records on the work file are managed. It also checks whether a record exists in the buffer area or in the physical file S in response to an input request, extracts the record, and returns it to the user. In response to a work file open request and close request from a user, information on the work file management table is changed.

第2図はワークファイルの管理手段の詳細を示す説明図
でちや、第8図はワークファイルの管理テーブルの内容
を示す説明図である。
FIG. 2 is an explanatory diagram showing details of the work file management means, and FIG. 8 is an explanatory diagram showing the contents of the work file management table.

第2図において、11はワークファイルのオープン手段
、12はワークファイルのクローズ手段、13はワーク
ファイルからの入力手段、14はワークファイルへの出
力手段、6はワークファイル管理テーブルである。fR
2図において、ワークファイルの管理手段1はワークフ
ァイルのオープン手段11と、ワークファイルのクロー
ズ手段12と、ワークファイルからの入力手段13とワ
ークファイルへの出力手段14とを備え、それらの手段
は共通のワークファイル管理テーブル6を用いてワーク
ファイルのバッファ領域およびバッファ領域の内部のレ
コードを′g理する。
In FIG. 2, 11 is a work file opening means, 12 is a work file closing means, 13 is an input means from the work file, 14 is an output means to the work file, and 6 is a work file management table. fR
2, the work file management means 1 includes a work file opening means 11, a work file closing means 12, an input means 13 from the work file, and an output means 14 to the work file, and these means are A common work file management table 6 is used to manage the buffer area of the work file and the records inside the buffer area.

第8図において、オープンモードではOは出力、1はオ
ープンすることが可能な入力、2はオープンすることが
不可能な入力である。
In FIG. 8, in the open mode, O is an output, 1 is an input that can be opened, and 2 is an input that cannot be opened.

m8図(Cおいて、6−I  F’IR8T−BUFF
−ER−PTRはワークファイルのもつ複数のバッファ
のうち、最初のバッファを指すためのポインタであり、
2個目以降のバッファはポインタチェーンによってリス
ト構造となっている。6−2CURRENT−BUFF
ER−PTRは、出力時に現在、レコードを蓄えている
バッファを指すポインタか、または入力時にレコードを
取出しているバッファを指すポインタである。6−3O
6−3OPEN は、現在のワークファイルの利用状態
?示すスイッチであり、ワークファイルのオープン手段
11が利用者より与えられた状態を設定する。
m8 diagram (in C, 6-I F'IR8T-BUFF
-ER-PTR is a pointer to the first buffer among the multiple buffers of the work file,
The second and subsequent buffers have a list structure using a pointer chain. 6-2 CURRENT-BUFF
ER-PTR is a pointer that points to the buffer that currently stores records at the time of output, or a pointer that points to the buffer from which records are retrieved at the time of input. 6-3O
6-3 OPEN is the current usage status of the work file? This switch is used to set the state given by the user to the work file open means 11.

6−4  DISPLACEMENTは、バッファ内に
複数取まっているレコードのうち、現在のレコードのバ
ッファの先頭からの位置(偏位)を表わす。
6-4 DISPLACEMENT represents the position (deviation) of the current record from the beginning of the buffer among a plurality of records held in the buffer.

第4図〜第6図は、それぞれワークファイルのオープン
手段、ワークファイルのクローズ手段、ワークファイル
からの入力手段13の処理を示すフローチャートである
4 to 6 are flowcharts showing the processing of the work file opening means, the work file closing means, and the input means 13 from the work file, respectively.

第6図において、ステップ634は本発明の主要な部分
であり、入力バッファですべてのレコードを読みおわっ
たものをバッファ領域の管理手段2に解放要求を発行す
ることKより、次の確保要求に対して同一の領域を再利
用できる。
In FIG. 6, step 634 is the main part of the present invention, and after all records have been read in the input buffer, a release request is issued to the buffer area management means 2. The same area can be reused.

第7図は、ワークファイルへの出力手段14の処理を示
すフローチャートである。
FIG. 7 is a flowchart showing the processing of the output means 14 to a work file.

ワークファイルのオープン手段により最初のバッファが
確保されたときに、6−I  FIR8T−BUFFE
R−PTRと6−2  CURRENT−BUFFER
−PTRとは同時に初期状態に設定される。6−IFI
R8T−BUFFER−PTRは複数のバッファの始端
を指す。6−2  CURRENT−BUFFER−P
TRはワークファイルの入力手段13およびワークファ
イルの出力手段14が現在、利用中のバッファを指す。
6-I FIR8T-BUFFE when the first buffer is secured by the work file open means.
R-PTR and 6-2 CURRENT-BUFFER
-PTR is set to the initial state at the same time. 6-IFI
R8T-BUFFER-PTR points to the start end of multiple buffers. 6-2 CURRENT-BUFFER-P
TR indicates the buffer currently being used by the work file input means 13 and the work file output means 14.

ワークファイルの入力手段13では一つのバッファ中の
全レコードを返したときくバッファの内容が更新され、
ワークファイルの出力手段14ではバッファにレコード
を満たしたときにバッファの内容が更新される。このよ
うにバッファの内容が更新されたとき、入力手段13お
よび出力手段14によって6−2CURRENT−BU
FFER−PTRは再設定される。
In the work file input means 13, when all records in one buffer are returned, the contents of the buffer are updated,
In the work file output means 14, the contents of the buffer are updated when the buffer is filled with records. When the contents of the buffer are updated in this way, the input means 13 and the output means 14 output 6-2 CURRENT-BU.
FFER-PTR is reset.

6−3 0PEN MODE  は、ワークファイルの
オーブン手段61により利用者からの要求オープンモー
ドを設定する。6−4 0PEN  MODEが1のと
き、ワークファイルからのデータを入力するための入力
手段63は、読み終ったバッファを解放する。6−4 
 DISPLACEMENTは、バッファからレコード
分出力するとき、またはバッファへレコードを入力する
ときのレコードのバッファ内相対値である。
6-3 0PEN MODE sets the open mode requested by the user by the work file opening means 61. 6-4 0PEN When MODE is 1, the input means 63 for inputting data from the work file releases the buffer after reading. 6-4
DISPLACEMENT is the relative value within the buffer of a record when outputting a record from the buffer or inputting a record to the buffer.

第8図は本発明による第1図のワークファイル管理手段
1の利用例を示す説明図であシ、第9図(a)、(b)
はそれぞれ第1図のバッファ領域4の遷移の前後におけ
る状態を示す説明図である。
FIG. 8 is an explanatory diagram showing an example of the use of the work file management means 1 shown in FIG. 1 according to the present invention, and FIGS. 9(a) and (b)
are explanatory diagrams showing the states of the buffer area 4 before and after the transition in FIG. 1, respectively.

第8図および第9図(a)において、ワークファイルの
オーブン手段11の呼出しステップ81、B2を通り、
第1および第2の論理ワークファイルのワークファイル
管理デープル6の各要素が初期設定される。ワークファ
イルの入力手段13の呼出しステップ83によってレコ
ード9111〜9113読込む。この時点でバッファ9
11は解放され、バッファ領域の管理手段によってフリ
ー領域として返却される。さらに、ワークファイルへの
出力手段14の呼出しステップ85により、ワークファ
イルへの出力手段14によってバッファ領域の管理手段
2ヘパツフアの確保要求が発行され、直前に解放された
バッファ911が再び第2の論理ファイルのバッファと
して利用される。
In FIG. 8 and FIG. 9(a), the work file is passed through the calling step 81 of the oven means 11, B2;
Each element of the work file management table 6 of the first and second logical work files is initialized. Records 9111 to 9113 are read by the calling step 83 of the work file input means 13. At this point buffer 9
11 is released and returned as a free area by the buffer area management means. Further, in the calling step 85 of the output means 14 to the work file, the output means 14 to the work file issues a request to secure the buffer area to the buffer area management means 2, and the buffer 911 released just before is again transferred to the second logic. Used as a file buffer.

第8図においてステップ84を実行した後のバッファ領
域の状態は、第9図(b)に示すようになる。この状態
例入った後、ワークファイルのクローズ手段12により
ステップ85.86が実行されて第8図の処理は終了す
る。
The state of the buffer area after executing step 84 in FIG. 8 is as shown in FIG. 9(b). After entering this example state, steps 85 and 86 are executed by the work file closing means 12, and the process of FIG. 8 ends.

(発明の効果) 以上説明したように本発明は、多重バッファリングされ
たバッファを入力処理中に解放することにより、コンパ
イラのように複数のワークファイルに書込み/読出しを
行う場合にはバッファ領域の利用効率を向上させること
ができるという効果がある。
(Effects of the Invention) As explained above, the present invention frees up buffer area when writing/reading multiple work files like a compiler by releasing multi-buffered buffers during input processing. This has the effect of improving usage efficiency.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明によるワークファイルの多重バッファ
リング制御方式を実現する一実施例を示すブロック図で
ある。 第2図は、第1図のワークファイルの管理手段の詳細?
示す説明図である。 第8図は、第1図のワークファイルの管理テーブルの内
容を示す説明図である。 第4図ご第7図は、それぞれワークファイルのオーブン
手段、クローズ手段、入力手段、および出力手段の処理
を示すフローチャートである。 第8図は、第1図に示すワークファイルの管理手段の利
用状態を示す説明図である。 第9図i”)、(b)は、それぞれ第1図に示すバッフ
ァ領域の遷移【おける前後の状態を示す説明図である。 1・・・ワークファイルの管理手段 2・・・バッファ領域の管理手段 3・・・物理ファイルの入出力手段 4・・・バッファ領域 S・・Φ物理ファイル 11・・・オーブン手段 12・・・クローズ手段 13・・・入力手段 14・・・出力手段 21・・・バッファの切出し手段 22・・・バッファの返却手段 90・・・バッファ領域 91.92−・・バッファ
FIG. 1 is a block diagram showing an embodiment of a work file multiple buffering control method according to the present invention. Figure 2 shows the details of the work file management method shown in Figure 1.
FIG. FIG. 8 is an explanatory diagram showing the contents of the work file management table shown in FIG. 1. FIG. 4 and FIG. 7 are flowcharts showing the processing of the work file oven means, closing means, input means, and output means, respectively. FIG. 8 is an explanatory diagram showing the usage status of the work file management means shown in FIG. 1. FIGS. 9(i) and 9(b) are explanatory diagrams showing the states before and after the transition of the buffer area shown in FIG. 1. 1. Work file management means 2. Management means 3... Physical file input/output means 4... Buffer area S... Φ Physical file 11... Oven means 12... Closing means 13... Input means 14... Output means 21. ... Buffer extraction means 22 ... Buffer return means 90 ... Buffer area 91, 92 - ... Buffer

Claims (1)

【特許請求の範囲】[Claims] 有限の大きさを有するバツフア領域と、前記バツフア領
域から必要なバツフアの切出し、および不要なバツフア
の解放を交互に実行するためのバツフア領域の管理手段
と、物理ワークフアイルとして機能する前記物理フアイ
ルに対する入出力処理を実行するための物理フアイルの
入出力手段と、前記バツフア領域の内容が残つていると
きには前記物理フアイルを使用せずに前記バツフア上で
データの入出力処理を実行するためのワークフアイルの
管理手段とを具備して構成したことを特徴とするワーク
フアイルの多重バツフアリング制御方式。
A buffer area having a finite size, a buffer area management means for alternately extracting necessary buffers from the buffer area and releasing unnecessary buffers, and a buffer area for the physical file functioning as a physical work file. A physical file input/output means for executing input/output processing, and a work file for executing data input/output processing on the buffer without using the physical file when the contents of the buffer area remain. 1. A work file multiple buffering control method, characterized in that it is configured to include a management means.
JP62011944A 1987-01-21 1987-01-21 Multiplex buffering control system for work file Pending JPS63180146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62011944A JPS63180146A (en) 1987-01-21 1987-01-21 Multiplex buffering control system for work file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62011944A JPS63180146A (en) 1987-01-21 1987-01-21 Multiplex buffering control system for work file

Publications (1)

Publication Number Publication Date
JPS63180146A true JPS63180146A (en) 1988-07-25

Family

ID=11791757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62011944A Pending JPS63180146A (en) 1987-01-21 1987-01-21 Multiplex buffering control system for work file

Country Status (1)

Country Link
JP (1) JPS63180146A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892696A (en) * 1995-03-31 1999-04-06 Nec Corporation Pipeline controlled microprocessor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59220853A (en) * 1983-05-27 1984-12-12 Toshiba Corp Disc cache system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59220853A (en) * 1983-05-27 1984-12-12 Toshiba Corp Disc cache system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892696A (en) * 1995-03-31 1999-04-06 Nec Corporation Pipeline controlled microprocessor

Similar Documents

Publication Publication Date Title
JPS63180146A (en) Multiplex buffering control system for work file
US5706512A (en) Computer program product for queuing and retrieving data objects to and from a shared storage medium
US5978810A (en) Data management system and method for storing a long record in a set of shorter keyed records
JP2780601B2 (en) Message batch processing system
JPH0540721A (en) Computer system
JPS6259819B2 (en)
JPH0720149B2 (en) Multimedia information communication controller
JPS63233437A (en) Method and apparatus for reducing data packet length
JPH0789338B2 (en) File processing method on external storage device
JP2605476B2 (en) Dump collection processing method
JPH03218524A (en) Instruction processor
JP2000047917A (en) File managing method and filing system
JPH035858A (en) Batch transmitting system
JPH04292091A (en) Data management system for electronic exchange
KR950025540A (en) File Information Log Input / Output Method of Computer System
JPH04174051A (en) Drawing data management system
JPS6364152A (en) Message queue control system
JPH04352052A (en) Data processor
JPH01161452A (en) System for managing block sharing type file block
JPH01106146A (en) File managing method
JPS59117652A (en) File storage system
JPH0468431A (en) Magnetic disk controller
JPH05113914A (en) Data managing system
JPH01163848A (en) Double updating preventing system for disk file
JPH02253447A (en) File recalling system