JPH0521248B2 - - Google Patents
Info
- Publication number
- JPH0521248B2 JPH0521248B2 JP61194627A JP19462786A JPH0521248B2 JP H0521248 B2 JPH0521248 B2 JP H0521248B2 JP 61194627 A JP61194627 A JP 61194627A JP 19462786 A JP19462786 A JP 19462786A JP H0521248 B2 JPH0521248 B2 JP H0521248B2
- Authority
- JP
- Japan
- Prior art keywords
- definition
- program
- format
- definition program
- management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Description
【発明の詳細な説明】
〔概要〕
プログラム実行時、ランダムに使用するフオー
マツト定義体を一つのプログラム中の複数の装置
に使用する場合、定義体ローデイング領域を一つ
にし、一括管理することにより定義体ローデイン
グ領域の縮小と定義体ローデイング回数の減少を
計る。[Detailed Description of the Invention] [Summary] When a format definition file that is used randomly during program execution is used for multiple devices in one program, the definition file can be defined by consolidating the definition file loading area into one and managing it collectively. Measures to reduce the body loading area and the number of defined body loadings.
本発明は動的なフオーマツトデータのローデイ
ングに伴うバツフアの管理方式の改良に関するも
のである。
The present invention relates to an improvement in a buffer management method associated with dynamic format data loading.
データ処理装置に於いて、情報を印刷装置等に
出力するプログラムを実行する時、フオーマツト
定義体を使用することが多い。
A data processing device often uses a format definition when executing a program that outputs information to a printing device or the like.
此のフオーマツト定義体(以下定義体と云う)
は画面又は帳票のフオーマツトの定義情報であ
り、普通磁気デイスク装置上に設けられた定義体
フアイルに格納され、よく使用される複数の定義
体を主記憶装置内の定義体ローデイング領域(バ
ツフア)に移した上で利用する。 This format definition body (hereinafter referred to as the definition body)
is the definition information of the screen or form format, and is usually stored in a definition file provided on a magnetic disk drive, and multiple frequently used definitions are stored in the definition program loading area (buffer) in the main memory. Use it after moving it.
此の様に希望の定義体を定義体フアイルからバ
ツフアに一旦収容して利用するのは、磁気デイス
ク装置と主記憶装置間のデータ授受回数を減らし
て処理速度を上げる為に採られた処置である。 Storing the desired definition program from the definition program file into a buffer and using it in this way is a measure taken to reduce the number of times data is exchanged between the magnetic disk device and the main storage device and increase processing speed. be.
第4図は従来のフオーマツトデータの管理方式
を説明する図である。 FIG. 4 is a diagram illustrating a conventional format data management system.
図中、1は応用プログラム、2は応用プログラ
ム1の処理部、3は応用プログラム1のデータ
部、4は定義体管理プログラム、51〜5oは夫々
制御部、61〜6oは夫々出力装置、9は定義体フ
アイル装置、101〜10oは夫々定義体管理部、
111〜11oは夫々メモリ管理テーブル、121
〜12oは夫々定義体ローデイング領域である。
尚以下全図を通じ同一記号は同一対象物を表す。 In the figure, 1 is an application program, 2 is a processing unit of the application program 1, 3 is a data unit of the application program 1, 4 is a definition management program, 5 1 to 5 o are control units, and 6 1 to 6 o are each An output device, 9 a definition file device, 10 1 to 10 o each a definition management unit,
11 1 to 11 o are memory management tables, 12 1
.about.12o are definition field loading areas, respectively.
The same symbols represent the same objects throughout all the figures below.
此処で出力装置61〜6oは例えば印刷装置等で
あり、従来方式に依ると各出力装置61〜6o毎に
下記のものを用意する。 Here, the output devices 6 1 to 6 o are, for example, printing devices, and according to the conventional method, the following are prepared for each output device 6 1 to 6 o .
即ち、定義体ローデイング領域12oは定義体
フアイル装置9から移された出力装置6o用の定
義体を格納する領域、メモリ管理テーブル11o
は定義体ローデイング領域12o内に格納されて
いる定義体の名称とアドレスを示すテーブル、定
義体管理部10oは使用中の定義体の動作状態、
及びアドレスを示す管理部、制御部5oは出力装
置6oを制御するプログラムである。 That is, the definition program loading area 12o is an area for storing definition programs for the output device 6o transferred from the definition program file device 9, and the memory management table 11o.
is a table showing the names and addresses of the definition programs stored in the definition program loading area 12o , the definition program management section 10o is the operating status of the definition program in use,
A management unit and a control unit 5 o that indicate the addresses and addresses are programs that control the output device 6 o .
尚応用プログラム1、定義体管理プログラム
4、制御部51〜5o、定義体管理部101〜10
o、メモリ管理テーブル111〜11o、及び定義
体ローデイング領域121〜12o等は全て主記憶
装置(図示されていない)上に設定される。 It should be noted that the application program 1, the definition program management program 4, the control section 51 to 5o , and the definition program management section 101 to 10
o , memory management tables 11 1 to 11 o , definition program loading areas 12 1 to 12 o , etc. are all set on the main storage device (not shown).
今応用プログラム1の処理部2から応用プログ
ラム1のデータ部3のレコードを、出力装置6o
に対し、或る定義体を使用して出力する場合、定
義体管理プログラム4は出力装置6o用のメモリ
管理テーブル11oを参照する。 Now, the record of the data section 3 of the application program 1 is sent from the processing section 2 of the application program 1 to the output device 6 o
On the other hand, when outputting using a certain definition program, the definition program management program 4 refers to the memory management table 11 o for the output device 6 o .
若しメモリ管理テーブル11oに該当定義体が
あれば此れを使用して出力装置6oに対して出力
し、若しメモリ管理テーブル11oに該当定義体
がなければ定義体格納フアイル9から該当定義体
を定義体ローデイング領域12oにロードしてメ
モリ管理テーブル11oに記入し、其の情報を定
義体管理部10oに設定した上で出力装置6oに対
して出力する。 If there is a corresponding definition program in the memory management table 11o , it will be used to output to the output device 6o , and if there is no corresponding definition program in the memory management table 11o , it will be output from the definition program storage file 9. The relevant definition program is loaded into the definition program loading area 12 o and entered in the memory management table 11 o , and the information is set in the definition program management section 10 o and output to the output device 6 o .
此の様に従来は各出力装置61〜6o毎に、定義
体ローデイング領域121〜12o、メモリ管理テ
ーブル111〜11o、及び定義体管理部101〜
10oを設けている。 As described above, conventionally, each output device 6 1 to 6 o has a definition program loading area 12 1 to 12 o , a memory management table 11 1 to 11 o , and a definition program management section 10 1 to
10 o .
上記説明から判る様に従来の管理方式では、複
数の各出力装置毎に定義体ローデイング領域を設
け、夫々別個に此れを管理する方法を採つている
ので、夫々の定義体ローデイング領域に重複して
同一の定義体をローデイングすることがある。
As can be seen from the above explanation, in the conventional management system, a definition program loading area is provided for each of a plurality of output devices, and each of these is managed separately. The same definition body may be loaded.
従つて全体から見て定義体ローデイング領域の
無駄を生じ、又定義体格納フアイルから定義体ロ
ーデイング領域に対するローデイング回数が多く
なると云う欠点があつた。 Therefore, overall, there is a disadvantage that the definition program loading area is wasted and the number of times of loading from the definition program storage file to the definition program loading area increases.
上記問題点は第1図の原理図に示す様に定義体
フアイル9に格納されているフオーマツト定義体
を使用して任意のプログラム1のデータ部3を複
数の出力装置61〜6oに出力するデータ処理装置
に於いて、出力装置61〜6oに対し共通に使用す
るフオーマツト定義体を一時格納する定義体ロー
デイング領域23と、定義体ローデイング領域2
3に格納されているフオーマツト定義体のアドレ
スを示すメモリ管理テーブル22を設け、各出力
装置61〜6o毎に、使用中のフオーマツト定義体
の使用状態を示す定義体管理部211〜21oを設
けることにより解決される。
The above problem is solved by outputting the data portion 3 of any program 1 to multiple output devices 6 1 to 6 o using the format definition stored in the definition file 9 as shown in the principle diagram of FIG. In a data processing device that performs a format definition program, a definition program loading area 23 temporarily stores a format definition program commonly used for the output devices 61 to 6o , and a definition program loading area 2.
A memory management table 22 is provided that indicates the addresses of format definition programs stored in the format definition program 3, and a definition program management section 21 1 to 21 that indicates the usage status of the format definition program currently in use is provided for each output device 6 1 to 6o . This problem can be solved by providing o .
本発明に依るとデータ部3を定義体管理プログ
ラム4により出力装置61〜6oに対し或るフオー
マツト定義体を使用して出力する場合、定義体管
理プログラム4はメモリ管理テーブル22を参照
し、若しメモリ管理テーブル22に該当フオーマ
ツト定義体がなければ定義体フアイル9から定義
体ローデイング領域23にローデイングして其の
情報を該出力装置61〜6o用の定義体管理部21
1〜21oに設定し、若し有る時でも其の情報が該
定義体管理部211〜21oの内容と一致しなけれ
ば設定し直すことにより定義体ローデイング領域
の無駄を無くし、定義体格納フアイルからのロー
デイング回数を減らすことが可能となる。
According to the present invention, when the definition program management program 4 outputs the data section 3 to the output devices 61 to 6o using a certain format definition program, the definition program management program 4 refers to the memory management table 22. , if the corresponding format definition is not found in the memory management table 22, the definition is loaded from the definition file 9 to the definition loading area 23 and the information is sent to the definition management unit 21 for the output devices 61 to 6o .
1 to 21 o , and if the information does not match the contents of the definition program management section 21 1 to 21 o , it is set again to eliminate waste of the definition program loading area, It becomes possible to reduce the number of times of loading from the storage file.
第2図は本発明に依る共有フオーマツトデータ
の管理方式の一実施例を示す図である。
FIG. 2 is a diagram showing an embodiment of a shared format data management method according to the present invention.
図中、211〜21oは夫々定義体管理部、22
はメモリ管理テーブル、23は定義体ローデイン
グ領域、50は主記憶装置、51は主制御装置で
ある。 In the figure, 21 1 to 21 o are respectively the definition management section and 22
2 is a memory management table, 23 is a definition program loading area, 50 is a main storage device, and 51 is a main control device.
定義体管理部211は出力装置61用の定義体管
理部、定義体管理部21oは出力装置6o用の定義
体管理部、メモリ管理テーブル22は共用のメモ
リ管理テーブル、定義体ローデイング領域23は
共用の定義体ローデイング領域であり、共に主記
憶装置50上に配置され、又応用プログラム1も
主記憶装置50上に配置され、主制御装置51が
主記憶装置50から応用プログラム1、定義体管
理プログラム4等を読出して出力動作を行う。 The definition program management unit 21 1 is a definition program management unit for the output device 6 1 , the definition program management unit 21 o is a definition program management unit for the output device 6 o , and the memory management table 22 is a shared memory management table for definition program loading. The area 23 is a shared definition program loading area, both of which are located on the main storage device 50. The application program 1 is also located on the main storage device 50, and the main controller 51 loads the application program 1, the application program 1, The definition program management program 4 and the like are read and output operations are performed.
今応用プログラム1の処理部2から応用プログ
ラム1のデータ部3のレコードを、出力装置6o
に対し或る定義体を使用して出力する場合、定義
体管理プログラム4は定義体ローデイング領域2
3のメモリ管理テーブル22を参照する。 Now, the record of the data section 3 of the application program 1 is sent from the processing section 2 of the application program 1 to the output device 6 o
When outputting using a certain definition program, the definition program management program 4 outputs the definition program in the definition program loading area 2.
Refer to the memory management table 22 of No. 3.
若しメモリ管理テーブル22に該当定義体がな
ければ定義体フアイル9から定義体ローデイング
領域23にローデイングしてメモリ管理テーブル
22に該当定義体を記入し、此の情報を出力装置
6o用の定義体管理部21oに設定する。 If the corresponding definition program is not found in the memory management table 22, the definition program is loaded from the definition program file 9 to the definition program loading area 23, the corresponding definition program is entered in the memory management table 22, and this information is sent to the definition for the output device 6o . body management section 21 o .
若しメモリ管理テーブル22に該当定義体が有
る時でも此の情報が定義体管理部21oの内容と
一致しない時には定義体管理部21oの内容を設
定し直す。 If this information does not match the contents of the definition program management section 21o even if the corresponding definition program exists in the memory management table 22, the contents of the definition program management section 21o are reset.
尚メモリ管理テーブル22に該当定義体が有る
時でも此の情報が定義体管理部21oの内容と一
致しない場合とは、例えば定義体管理部21oが
定義体Pを使用した後、定義体ローデイング領域
23が一杯になつたので、其の定義体Pを一旦廃
棄し、其の後、再び必要があつて定義体Pを定義
体フアイル9から定義体ローデイング領域23に
ローデイングした時は同じ定義体Pであつても其
の格納アドレスは前の格納アドレスとは一致しな
い。 Note that even when the corresponding definition program exists in the memory management table 22, the case where this information does not match the contents of the definition program management section 21o means that, for example, after the definition program management section 21o uses the definition program P, the definition program When the loading area 23 becomes full, the definition program P is temporarily discarded, and then when it is needed again and the definition program P is loaded from the definition program file 9 to the definition program loading area 23, the same definition is used. Even if it is a field P, its storage address does not match the previous storage address.
此の時、定義体管理部211が定義体Pを使用
しようとした時、定義体管理部211には前のア
ドレスが格納されているので新しいアドレスとは
一致しないことが起こる。此の様な場合には定義
体管理部211は新しいアドレスに設定し直す。 At this time, when the definition program management section 21 1 attempts to use the definition program P, the previous address is stored in the definition program management section 21 1 , so it may not match the new address. In such a case, the definition body management unit 211 resets the address to a new address.
又ローデイングを行う際に若し定義体ローデイ
ング領域23の領域が不足した場合は、LRUに
より追い出し管理を行う。 Furthermore, if the definition program loading area 23 runs out of space during loading, the LRU is used for expulsion management.
一般にモジユール化したプログラムの情報を必
要に応じてデイスク装置等の外部記憶装置から主
記憶装置の所定領域にローデイングする際の方式
としてLRU方式(least recently used)が良く
使われる。 In general, the LRU (least recently used) method is often used to load modularized program information from an external storage device such as a disk device to a predetermined area of the main storage device as needed.
第3図はLRU方式の説明図である。 FIG. 3 is an explanatory diagram of the LRU method.
図中、A,B,C、及びDは夫々情報モジユー
ル、X,Yは夫々領域である。 In the figure, A, B, C, and D are information modules, and X and Y are areas.
LRU方式は最後に使用した時刻の最も新しい
ものを取り出すように管理する方式であり、第3
図に示す様に、例えば4個の情報モジユールA,
B,C,及びDを2個の領域X,Yにローデイン
グする場合を例にとつて説明する。 The LRU method is a method that manages to retrieve the latest one with the last used time.
As shown in the figure, for example, four information modules A,
The case where B, C, and D are loaded into two areas X and Y will be explained as an example.
先づ情報モジユールAを使用する場合、此の情
報モジユールAを未使用状態の領域Xにローデイ
ングする。 First, when using information module A, this information module A is loaded into area X that is in an unused state.
次に情報モジユールBを使用する場合、此の情
報モジユールBを別の未使用状態の領域Yにロー
デイングする。 When information module B is to be used next time, this information module B is loaded into another unused area Y.
此の様に両領域X,Yに情報モジユールがロー
デイングされている状態に於いて情報モジユール
Cを使用する場合、既にローデイングされている
情報モジユールA,Bの内、使用した時期が最も
古い情報モジユールが存在する領域、即ち、領域
Xに情報モジユールCをローデイングする。 When using information module C in a state where information modules are loaded in both areas The information module C is loaded into the area where the information module C exists, that is, the area X.
以後同様に新たな情報モジユールをローデイン
グする時は、既にローデイングされている情報モ
ジユールの内、使用した時期が最も古い情報モジ
ユールが存在する領域を新たにローデイングする
領域と決定する方式である。 Thereafter, when loading a new information module in the same manner, the area in which the oldest used information module exists among the information modules that have already been loaded is determined as the new loading area.
以上詳細に説明した様に本発明によれば、複数
の装置が定義体を共用する場合にローデイングす
る回数の減少、即ち、I/Oアクセス回数の減少
と、使用メモリ領域の削減が実現出来ると云う大
きい効果がある。
As explained in detail above, according to the present invention, it is possible to reduce the number of times of loading when multiple devices share a definition program, that is, reduce the number of I/O accesses and reduce the memory area used. There is a big effect.
第1図は本発明の原理図である。第2図は本発
明に依る共有フオーマツトデータの管理方式の一
実施例を示す図である。第3図はLRU方式の説
明図である。第4図は従来のフオーマツトデータ
の管理方式を説明する図である。
図中、1は応用プログラム、2は応用プログラ
ム1の処理部、3は応用プログラム1のデータ
部、4は定義体管理プログラム、51〜5oは夫々
制御部、61〜6oは夫々出力装置、9は定義体フ
アイル装置、101〜10oは夫々定義体管理部、
111〜11oは夫々メモリ管理テーブル、121
〜12oは夫々定義体ローデイング領域、211〜
21oは夫々定義体管理部、22はメモリ管理テ
ーブル、23は定義体ローデイング領域、50は
主記憶装置、51は主制御装置、A,B,C、及
びDは夫々情報モジユール、X,Yは夫々領域で
ある。
FIG. 1 is a diagram showing the principle of the present invention. FIG. 2 is a diagram showing an embodiment of a shared format data management method according to the present invention. FIG. 3 is an explanatory diagram of the LRU method. FIG. 4 is a diagram illustrating a conventional format data management system. In the figure, 1 is an application program, 2 is a processing unit of the application program 1, 3 is a data unit of the application program 1, 4 is a definition management program, 5 1 to 5 o are control units, and 6 1 to 6 o are each An output device, 9 a definition file device, 10 1 to 10 o each a definition management unit,
11 1 to 11 o are memory management tables, 12 1
~12 o are respectively definition field loading areas, 21 1 ~
21 o is a definition program management unit, 22 is a memory management table, 23 is a definition program loading area, 50 is a main storage device, 51 is a main control device, A, B, C, and D are information modules, respectively, X, Y are each a domain.
Claims (1)
ツト定義体を使用して任意のプログラム1のデー
タ部3を複数の出力装置61〜6oに出力するデー
タ処理装置に於いて、 複数の該出力装置61〜6oに対して共通に使用
する該フオーマツト定義体を一時格納する定義体
ローデイング領域23と、 該定義体ローデイング領域23に格納されてい
る該フオーマツト定義体のアドレスを示すメモリ
管理テーブル22を設け、 該出力装置61〜6o毎に、使用中の該フオーマ
ツト定義体の使用状態を示す定義体管理部211
〜21oを設け、 該データ部3を定義体管理プログラム4により
出力装置61〜6oに対して或る該フオーマツト定
義体を使用して出力する場合、 定義体管理プログラム4は該メモリ管理テーブ
ル22を参照し、 若し該メモリ管理テーブル22に該当フオーマ
ツト定義体がなければ該定義体フアイル9から該
定義体ローデイング領域23にローデイングして
其の情報を該出力装置61〜6o用の該定義体管理
部211〜21oに設定し、 若し有る時でも其の情報が該定義体管理部21
1〜21oの内容と一致しなければ設定し直すこと
を特徴とする共有フオーマツトデータの管理装
置。[Claims] 1. In a data processing device that outputs the data part 3 of an arbitrary program 1 to a plurality of output devices 6 1 to 6 o using a format definition stored in a definition file 9. , a definition program loading area 23 for temporarily storing the format definition program commonly used for the plurality of output devices 61 to 6o , and an address of the format definition program stored in the definition program loading area 23. A definition management unit 21 1 is provided for each of the output devices 6 1 to 6 o to indicate the usage status of the format definition program in use.
~ 21o is provided, and when the definition program management program 4 outputs the data section 3 to the output devices 61 to 6o using a certain format definition program, the definition program management program 4 manages the memory. Referring to the table 22, if the corresponding format definition is not found in the memory management table 22, the definition is loaded from the definition file 9 to the definition loading area 23 and the information is sent to the output devices 61 to 6o . The information is set in the definition body management unit 21 1 to 21 o of the definition body management unit 21 1 to 21 o.
1 to 21 o A shared format data management device characterized in that the settings are reset if they do not match the contents of o.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61194627A JPS6349969A (en) | 1986-08-20 | 1986-08-20 | Managing system for common format data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61194627A JPS6349969A (en) | 1986-08-20 | 1986-08-20 | Managing system for common format data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6349969A JPS6349969A (en) | 1988-03-02 |
| JPH0521248B2 true JPH0521248B2 (en) | 1993-03-23 |
Family
ID=16327658
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61194627A Granted JPS6349969A (en) | 1986-08-20 | 1986-08-20 | Managing system for common format data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6349969A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6086623A (en) * | 1983-10-19 | 1985-05-16 | Hitachi Ltd | Centralized control device of output data |
-
1986
- 1986-08-20 JP JP61194627A patent/JPS6349969A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6349969A (en) | 1988-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2774862B2 (en) | DMA control device and information processing device | |
| JPH0521248B2 (en) | ||
| JPH04288638A (en) | Computer system | |
| JP2003248620A (en) | Dynamic memory management method and dynamic memory management information processing apparatus | |
| JPH0237443A (en) | Main storage management system for electronic computer system | |
| JPH03194641A (en) | Application program sharing system | |
| JPS6327936A (en) | File management method | |
| JP2605476B2 (en) | Dump collection processing method | |
| JPH02302831A (en) | Data transfer control system | |
| JP2613931B2 (en) | Buffer control method | |
| JPS58165164A (en) | Information source management method | |
| JPS63177234A (en) | File save loading method | |
| JPH06110773A (en) | Memory controller | |
| JPS62108346A (en) | Inter-process communication system | |
| JPS61290548A (en) | Area managing system for memory device | |
| JPH01177126A (en) | Virtual stack control system | |
| JPH07152642A (en) | Data area expansion method | |
| JPS5817587A (en) | Blank area controller for main memory | |
| JPS58118081A (en) | Virtual space sharing controlling system | |
| JPH03246741A (en) | synchronous control device | |
| JPS62164134A (en) | Hardware stack control system | |
| JPH01309118A (en) | File/device control system | |
| JPS6358555A (en) | Control system for file space | |
| JPH05257717A (en) | Task controller | |
| JPS6162152A (en) | Storage device free space management method |