JPH06214845A - System for simultaneously processing plural blocks - Google Patents
System for simultaneously processing plural blocksInfo
- Publication number
- JPH06214845A JPH06214845A JP5007374A JP737493A JPH06214845A JP H06214845 A JPH06214845 A JP H06214845A JP 5007374 A JP5007374 A JP 5007374A JP 737493 A JP737493 A JP 737493A JP H06214845 A JPH06214845 A JP H06214845A
- Authority
- JP
- Japan
- Prior art keywords
- block
- input
- application program
- magnetic disk
- data
- 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
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、ストリームデータの
みを取り扱うファイルシステムにおけるアプリケーショ
ンプログラムと磁気ディスク上に記憶されたデータの受
け渡しに関する方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method relating to the transfer of an application program in a file system that handles only stream data and the data stored on a magnetic disk.
【0002】[0002]
【従来の技術】図4は、従来の磁気ディスク上に格納さ
れたブロックの入力方法を説明するための図である。第
4図で、41はアプリケーションプログラムを示し、4
2はブロック入力プログラム、43はこれらのプログラ
ムを実行する電子計算機を示す。44はデータを格納す
る磁気ディスクであり、45a,45b,45c,45
dは、磁気ディスク上に記憶されているn個のデータブ
ロックを示す。2. Description of the Related Art FIG. 4 is a diagram for explaining a method of inputting a block stored on a conventional magnetic disk. In FIG. 4, 41 indicates an application program, 4
Reference numeral 2 is a block input program, and 43 is an electronic computer that executes these programs. Reference numeral 44 is a magnetic disk that stores data, and includes 45a, 45b, 45c, 45
d indicates n data blocks stored on the magnetic disk.
【0003】次に動作について説明する。アプリケーシ
ョンプログラム41よりブロック0からブロック2の入
力要求をブロック入力プログラム42に行なうと、ブロ
ック入力プログラム42は、磁気ディスクより、ブロッ
ク0(45a),ブロック1(45b),ブロック2
(45c)の順序で1ブロックづつ3回I/Oを行な
い、その入力結果をアプリケーションプログラムに渡
す。Next, the operation will be described. When an input request from block 0 to block 2 is made from the application program 41 to the block input program 42, the block input program 42 causes the block 0 (45a), block 1 (45b), block 2 to be transmitted from the magnetic disk.
I / O is performed three times for each block in the order of (45c), and the input result is passed to the application program.
【0004】[0004]
【発明が解決しようとする課題】従来の方式をストリー
ムデータのみしか取り扱えないシステムに適用すること
は不可能であり、アプリケーションプログラムの変更/
改造が必要であった。However, it is impossible to apply the conventional method to a system that can handle only stream data.
Remodeling was necessary.
【0005】本発明の目的は、アプリケーションプログ
ラムインタフェースを変更しないで、且つ入力性能を向
上し、データストリームのみを取り扱うシステムに適用
することにある。It is an object of the present invention to apply to a system that handles only a data stream while improving the input performance without changing the application program interface.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、ストリームデータを仮想的に同一長さのブロックに
分割管理し、そのブロック長のn倍を1入力単位として
磁気ディスクから入力することにより、従来のアプリケ
ーションプログラムインタフェースを保証し、且つ入力
回数の削減を図り性能向上を図る物である。In order to achieve the above object, stream data is virtually divided into blocks of the same length and managed, and n times the block length is input as one input unit from a magnetic disk. With this, the conventional application program interface is guaranteed, the number of inputs is reduced, and the performance is improved.
【0007】[0007]
【作用】ストリームデータしか取り扱えないシステムに
おいて、従来のアプリケーションプログラムの再コンパ
イルを行なう程度でそのまま流用することができる。ま
た、従来の実行に比べ磁気ディスクの入力要求回数が削
減され、性能の向上を図ることができる。In a system that can handle only stream data, the conventional application program can be used as it is by recompiling it. Further, the number of input requests of the magnetic disk is reduced as compared with the conventional execution, and the performance can be improved.
【0008】[0008]
【実施例】本発明の実施例を図面を参照して説明する。Embodiments of the present invention will be described with reference to the drawings.
【0009】図1は、本発明によるシステムの構成例で
ある。電子計算機13で動作するアプリケーションプロ
グラム11からブロック入力のためブロック入力プログ
ラム12を呼び出す。この時、ブロック入力プログラム
12に対してブロック0(15a)から3ブロック入力
することを指示するパラメタ16を渡す。ブロック入力
プログラム12はパラメタ16の解析を行ない、磁気デ
ィスク14よりデータを入力する。磁気ディスク14上
のデータはバイトストリームデータ(18)であり、ブ
ロック入力プログラム12が仮想的にブロック分割され
ているものと仮定して、ブロック0(15a)、ブロッ
ク1(15b)、ブロック2(15c)の長さ分のデー
タを1回のI/O(17)で入力する。そして、パラメ
タ6で指示された入力領域にデータを転送してアプリケ
ーションプログラム1の呼出し点に戻る。FIG. 1 shows an example of the configuration of a system according to the present invention. The block input program 12 is called for block input from the application program 11 operating on the electronic computer 13. At this time, the parameter 16 instructing the block input program 12 to input three blocks from block 0 (15a) is passed. The block input program 12 analyzes the parameter 16 and inputs data from the magnetic disk 14. The data on the magnetic disk 14 is byte stream data (18), and assuming that the block input program 12 is virtually divided into blocks, block 0 (15a), block 1 (15b), block 2 ( The data for the length of 15c) is input by one I / O (17). Then, the data is transferred to the input area designated by the parameter 6 and the process returns to the calling point of the application program 1.
【0010】図2は、アプリケーションプログラム11
からブロック入力プログラム12に渡すパラメタ16の
形式を示す図である。21は入力するブロックの番号
(22a)と入力するブロックの数(22b)を連続し
た領域で指定する。23は、21で指定したブロックの
番号(22a)とブロックの数(22b)の組み合わせ
の数を指定する。24、25は、それぞれ、入力領域
長、入力領域アドレスを指定する。FIG. 2 shows an application program 11
6 is a diagram showing a format of a parameter 16 passed from the block input program 12 to the block input program 12. Reference numeral 21 designates an input block number (22a) and an input block number (22b) in a continuous area. 23 designates the number of combinations of the block number (22a) and the block number (22b) designated in 21. 24 and 25 specify the input area length and the input area address, respectively.
【0011】図3は、ブロック入力プログラム12の処
理の流れ図である。アプリケーションプログラム11か
らパラメタ16と共に制御がブロック入力プログラムに
渡ると、23で指定されたn個のブロック番号(22
a)より最小値と最大値+ブロック数を求め入力するブ
ロック範囲を決定する。(31) 求めたブロック範囲
×ブロック長の計算を行ない入力データ長(32)と求
めた最小値×ブロック長の計算を行ない磁気ディスク
(14)上のデータ入力位置を決定する。(33)入力
データ長とデータ入力位置により、磁気ディスク(1
4)からデータを入力する。(34) 入力したデータ
をパラメタ16の指定に従い指定された入力領域アドレ
ス25の領域に転送する。(35) 本実施例によると、従来のCKD(カウント・キー・デ
ータ)形式の磁気ディスクと同一インタフェースでスト
リームデータを取り扱う事ができる。また、nブロック
を1回のI/Oで実行することから処理性能を向上させ
る効果がある。FIG. 3 is a flow chart of processing of the block input program 12. When control is passed from the application program 11 together with the parameter 16 to the block input program, n block numbers (22
The minimum value and the maximum value + the number of blocks are obtained from a) and the block range to be input is determined. (31) The calculated block range × block length is calculated to calculate the input data length (32) and the calculated minimum value × block length is calculated to determine the data input position on the magnetic disk (14). (33) Depending on the input data length and the data input position, the magnetic disk (1
Input the data from 4). (34) The input data is transferred to the area of the input area address 25 designated according to the designation of the parameter 16. (35) According to this embodiment, stream data can be handled by the same interface as a conventional CKD (count key data) type magnetic disk. Moreover, since n blocks are executed by one I / O, there is an effect of improving processing performance.
【0012】[0012]
【発明の効果】本発明によれば、アプリケーションプロ
グラムにおいて、インタフェースを変更することなく、
ストリームデータのみを取り扱うシステムに移植するこ
とができ、プログラムの実行時の処理性能がよくなる効
果がある。According to the present invention, an application program can be used without changing the interface.
It can be ported to a system that handles only stream data, and has the effect of improving the processing performance during program execution.
【図1】本発明によるシステムの構成例を示す図であ
る。FIG. 1 is a diagram showing a configuration example of a system according to the present invention.
【図2】実施例におけるインタフェースを説明するため
の図である。FIG. 2 is a diagram for explaining an interface in the embodiment.
【図3】実施例におけるブロック入力プログラムを説明
するための図である。FIG. 3 is a diagram for explaining a block input program in the embodiment.
【図4】従来のシステムの構成例を示す図である。FIG. 4 is a diagram showing a configuration example of a conventional system.
11…アプリケーションプログラム、 12…ブロック入力プログラム、 13…電子計算機、 14…データを格納する磁気ディスク。 11 ... Application program, 12 ... Block input program, 13 ... Electronic computer, 14 ... Magnetic disk for storing data.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 梨本 邦夫 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 (72)発明者 板井 健雄 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 (72)発明者 鈴木 厚史 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Kunio Nashimoto Inventor, 6-81, Onoe-machi, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. (72) Inventor Takeo Itai, 6-81, Onoue, Naka-ku, Yokohama, Kanagawa Address Hitachi Software Engineering Co., Ltd. In-house (72) Inventor Atsushi Suzuki 6-81, Onoue-cho, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. In-house
Claims (1)
システムにおいて、ストリームデータを一定の長さのブ
ロックとして分割管理しアプリケーションプログラムか
らの直接アクセスを可能とした疑似直接編成ファイルを
実現するシステムにおいて、アプリケーションプログラ
ムとのパラメタインタフェースにより一度に複数のブロ
ックを一つの入出力単位としてアプリケーションプログ
ラムに受け渡すことを特徴とする複数ブロック一括処理
方式。1. In a file system that handles only stream data, in a system that realizes a pseudo direct organization file in which stream data is divided and managed as a block of a fixed length and directly accessible from the application program, A multi-block batch processing method that uses a parameter interface to pass multiple blocks to the application program at one time as one input / output unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5007374A JPH06214845A (en) | 1993-01-20 | 1993-01-20 | System for simultaneously processing plural blocks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5007374A JPH06214845A (en) | 1993-01-20 | 1993-01-20 | System for simultaneously processing plural blocks |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06214845A true JPH06214845A (en) | 1994-08-05 |
Family
ID=11664196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5007374A Pending JPH06214845A (en) | 1993-01-20 | 1993-01-20 | System for simultaneously processing plural blocks |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06214845A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006178932A (en) * | 2004-12-20 | 2006-07-06 | Microsoft Corp | System and method for synchronization of items without snapshot |
-
1993
- 1993-01-20 JP JP5007374A patent/JPH06214845A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006178932A (en) * | 2004-12-20 | 2006-07-06 | Microsoft Corp | System and method for synchronization of items without snapshot |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3541669B2 (en) | Arithmetic processing unit | |
JPH03286332A (en) | Digital data processor | |
JPH06214845A (en) | System for simultaneously processing plural blocks | |
US4914581A (en) | Method and apparatus for explicitly evaluating conditions in a data processor | |
JPH025104A (en) | Arithmetic processing unit | |
JPH0381827A (en) | Reentrant program system | |
JPH02204832A (en) | Instruction control system | |
JPH0652334A (en) | Data flow processor processing changing device | |
JP3708560B2 (en) | Data flow type information processor | |
JPH0417031A (en) | System for optimizing propagation of constant value | |
JPH0887411A (en) | Method and device for pipeline operation | |
JPH076035A (en) | Data processor | |
JP2526665B2 (en) | Interrupt control method | |
JPH04312118A (en) | Arithmetic circuit | |
JPH04235633A (en) | Parallel optimization system | |
JPH0512007A (en) | Data processing system | |
JPH04276827A (en) | Pipe line processor | |
JPS63187332A (en) | Arithmetic processing unit | |
JPS63311535A (en) | Program copying system | |
JPH0766325B2 (en) | Pipeline control equipment | |
JPH05298093A (en) | Processor | |
JPH0348365A (en) | Exception processing system | |
JPH04286050A (en) | Computer system | |
JP2001188676A (en) | Data-driven type computer, and data-driven type computer system | |
JPH04116726A (en) | Information processor |