JPH02170245A - Input/output control mechanism for plural files - Google Patents

Input/output control mechanism for plural files

Info

Publication number
JPH02170245A
JPH02170245A JP63324973A JP32497388A JPH02170245A JP H02170245 A JPH02170245 A JP H02170245A JP 63324973 A JP63324973 A JP 63324973A JP 32497388 A JP32497388 A JP 32497388A JP H02170245 A JPH02170245 A JP H02170245A
Authority
JP
Japan
Prior art keywords
file
files
control
collectively
program
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
JP63324973A
Other languages
Japanese (ja)
Inventor
Masako Tada
多田 昌子
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 JP63324973A priority Critical patent/JPH02170245A/en
Publication of JPH02170245A publication Critical patent/JPH02170245A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To occupy a series of files with no interruption of other programs by receiving collectively the I/O requests of plural files in a table form and also returning collectively the results. CONSTITUTION:An I/O control mechanism for plural files produces a file control table 4 based on the designations received from the programs 2a, 2b.... A control part 1 contains a file control part 12 which controls plural files and a file I/O control part 11 which performs the I/O to the files of the magnetic disk groups 3 (3a, 3b). Then the part 1 produces the table 4 in order to collectively control the I/Os of plural files based on the designations of the programs 2a, 2b.... Thus these I/Os are collectively controlled via the table 4 and at the same time the control results are also collectively returned. As a result, a series of files can be occupied with no interruption of other programs.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は複数ファイルI/O制御a!rAに関し、特に
磁気ディスク上のファイルのI/O管理における複数個
のファイルの一括I/O制御機横に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention provides multiple file I/O control a! Regarding rA, it is particularly related to a batch I/O controller for a plurality of files in I/O management of files on a magnetic disk.

(従来の技術) 従来、ファイルのI/O制御は、1ファイル単位にI/
Oを実行し、制御部より命令を発行したプログラムへ結
果を返すものであった。
(Prior art) Conventionally, file I/O control has been performed on a file-by-file basis.
The control unit executed the command O and returned the result to the program that issued the command.

(発明が解決しようとする課題) 上述した従来のファイルI/O制御機椙は、1ファイル
単位となっているので、あるプログラムで2つのファイ
ルのI/Oを連続して行っても、別のプログラムからの
I/O命令が間に割込み、1フアイルしか利用できない
場合があり、またファイル単位に結果を返すため時間が
かかるという欠点がある。
(Problem to be Solved by the Invention) The conventional file I/O control device described above operates in units of one file, so even if one program performs I/O on two files consecutively, the There are disadvantages in that I/O commands from other programs may interrupt and only one file can be used, and that it takes time to return results in file units.

(課題を解決するための手段) 本発明による複数ファイルI/O制御m構は、複数ファ
イルのI/O管理機構を有するマルチタスク起動の可能
な複数ファイルl/Oft+IJl1機横において、各
プログラムからの指定により複数ファイルのI/Oを一
括制御するためのファイル制御テーブルを作成し、前記
複数ファイルのI/O制御を前記ファイル制御テーブル
を用いて一括制御するとともに結果を一括返送する。
(Means for Solving the Problems) The multiple file I/O control m structure according to the present invention is capable of starting a multiple file I/Oft+IJl that has a multiple file I/O management mechanism and is capable of starting multitasks. A file control table for collectively controlling I/O of a plurality of files is created according to the specification, and the I/O control of the plurality of files is collectively controlled using the file control table, and the results are returned at once.

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

第1図は、本発明による複数ファイルI/O制御機構の
一実施例を示す構成図である。
FIG. 1 is a block diagram showing an embodiment of a multiple file I/O control mechanism according to the present invention.

この複数ファイルI/O制m機構は、各プログラム(2
a、2b、・・・)からの指定に基づき、ファイル制御
テーブル4を作成する。制御部1は複数ファイル制御を
行うファイル制御部12と、磁気ディスク群3 (3a
、3b)上のファイルノ\の1/Oを実行するファイル
I/O管理部11をOiNえて構成される。
This multiple file I/O control mechanism allows each program (2
A file control table 4 is created based on the specifications from a, 2b, . . . ). The control unit 1 includes a file control unit 12 that controls multiple files, and a magnetic disk group 3 (3a
, 3b) is configured by including a file I/O management unit 11 that executes 1/O of the above file.

第2図は、本システムの電源投入時の初期動作を示す流
れ図である。
FIG. 2 is a flowchart showing the initial operation of the system when the power is turned on.

まず、制御部1は、ファイル制御テーブル4に残された
ファイルをチエツクしくステップ21)、未クローズ指
定なしに残されているファイルをクローズした後(ステ
ップ21.22,23.24>、全テーブルをクリアす
る(ステップ25)。これは、電源断などにより複数フ
ァイルI/O実行中プログラムか中断された場合の自動
復旧のための処理である。
First, the control unit 1 checks the files left in the file control table 4 (Step 21), closes the files left without any unclosed designations (Steps 21.22, 23.24>), and then checks all the files in the file control table 4 (Step 21). (Step 25).This is a process for automatic recovery when a program in execution of multiple file I/O is interrupted due to a power outage or the like.

第3図は、プログラムからIloなどの命令の発行され
た場合の動作を示す流れ図である。制御部lはプログラ
ムからの指定(オープン、プロテクト、未クローズ、未
クローズ解除)をテーブルとして受は取り、ファイル制
御テーブル4をチエツクしくステップ31)、処理か必
要であれば登録、更新などの処理を行う(ステップ32
.33>。オープン指定の場合はファイルオープンを実
行し、その他の指定の場合はファイル制御テーブル4と
プログラム側のテーブルに結果を返ずくオープン完了、
プロテクト完了、未クローズ指定完了、未クローズ解除
解除済み、他プログラムで使用中)(ステップ34)。
FIG. 3 is a flowchart showing the operation when an instruction such as Ilo is issued from a program. The control unit l receives the specifications from the program (open, protect, unclosed, unclosed) as a table, checks the file control table 4 (step 31), and performs processing such as registration and updating if necessary. (step 32)
.. 33>. If open is specified, execute the file open, and if other specifications are specified, open completion returns the result to file control table 4 and the program side table.
(Protection completed, Unclosed designation completed, Unclosed unreleased, Used by another program) (Step 34).

終了命令が発行された場合は、そのプログラムから登録
されている、未クローズ指定解除外の全ファイルをクロ
ーズした後(ステップ35)、未りローズファイル分も
含む全情報をファイル制御テーブル4より削除する(ス
テップ36)、終了処理は、プログラム中から終了命令
が発行されなくても、プログラム終了と同時に実行され
る。
When a termination command is issued, after closing all files registered from that program that are not designated as unclosed (step 35), all information including unclosed files is deleted from the file control table 4. The end processing (step 36) is executed simultaneously with the end of the program even if no end command is issued from within the program.

第4図はプログラム上でのこの機構の利用例である。使
用する複数ファイルに対するテーブルを作り(ステップ
41)、I/O命令を発行しくステップ42)、−括オ
ープンし、ステータスをチエツクしくステップ43)、
−括処理不B(能であれば処理を止める。全指定ファイ
ルを確保できた場合は、各ファイルの処理の直前直後に
未クローズ指定発行(ステップ44)、1フアイル処理
(ステップ45)を経て未クローズ指定解除を行ない、
処理中障害の発生したファイルのみ終了後も未クローズ
となるようにする(ステップ46゜47)、正常終了後
は、終了命令により一括クローズする(ステップ48)
FIG. 4 is an example of how this mechanism is used in a program. Create a table for multiple files to be used (step 41), issue an I/O command (step 42), open the entire file and check the status (step 43),
- If batch processing is not possible, stop processing. If all specified files can be secured, issue unclosed specification immediately before and after processing each file (step 44), and process one file (step 45). Unclose designation is canceled,
Only the files in which a failure occurred during processing remain unclosed even after completion (steps 46 and 47), and after normal completion, they are closed all at once by a termination command (step 48).
.

第5図(A>と(B)は、プログラム側および制御機構
側のファイル制御テーブルレイアウトである。第5図(
A>が各プログラム上のテーブルで、第5[jJ(B)
は制御機構上のテーブルを示し、制御機構側のテーブル
は実行中のプログラム単位とする。プログラムYでファ
イルAをオープンしようとして、既にプログラムXが占
有している場合、プログラムY上のデープルには使用中
のステータスを返すが、制御機構側のテーブルには登録
しない。
Figures 5 (A> and (B) are file control table layouts on the program side and the control mechanism side.
A> is a table on each program, and the fifth [jJ(B)
indicates a table on the control mechanism, and the table on the control mechanism side is a unit of the program being executed. If program Y attempts to open file A, but program X already occupies it, the in-use status is returned to the file on program Y, but it is not registered in the table on the control mechanism side.

(発明の効果) 以上説明したように本発明は、テーブル形式で複数ファ
イルのI、/O要求をまとめて受は収り、結果もまとめ
て返すことにより、途中曲のプログラムに割込まれずに
一連のファイルを占有できるという効果がある。
(Effects of the Invention) As explained above, the present invention receives I/O requests for multiple files in a table format and returns the results all at once, without interrupting the program of a song in the middle. It has the effect of being able to occupy a series of files.

また、連続的に短時間でファイルを処理しない場合、1
フアイルごとにIloに時間をとられることなく処理で
き、障害を起こしても指定した全ファイルを未クローズ
にしてしまわずにン斉むという効果かある。
Also, if you do not process files continuously in a short time, 1
It is possible to process each file without having to take time to load Ilo, and even if a failure occurs, all specified files can be processed at the same time without being left unclosed.

【図面の簡単な説明】 第1図は本発明による複数ファイルI/O制σす装置の
一実施例を示す構成ブロック図、第2図は本実施例にお
ける初期起動待動作流れ図、第3図は本実施例における
プログラムからの命令発行時の動作流れ図、第4図は本
実施例におけるプログラムでの本発明の利用例を示す流
れ図、第5図(A>、(B)は本実施例におけるファイ
ル制御テーブル例を示す図である。 1・・・制御部、2・・・プログラム群、2a、2b。 〜・・・プログラム、3・・・磁気ディスク群、3a。 3b、〜・・・磁気ディスク、4・・・ファイル制御テ
ーブル、11・・・ファイルI/O管理部、12・・・
ファイル制御部。
[Brief Description of the Drawings] Fig. 1 is a configuration block diagram showing an embodiment of a device for controlling multiple file I/O according to the present invention, Fig. 2 is a flowchart of the initial startup waiting operation in this embodiment, and Fig. 3 is an operation flowchart when issuing an instruction from a program in this embodiment, FIG. 4 is a flowchart showing an example of the use of the present invention in a program in this embodiment, and FIGS. It is a diagram showing an example of a file control table. 1... Control unit, 2... Program group, 2a, 2b. ~... Program, 3... Magnetic disk group, 3a. 3b, ~... magnetic disk, 4... file control table, 11... file I/O management section, 12...
File control section.

Claims (1)

【特許請求の範囲】[Claims] 複数ファイルのI/O管理機構を有するマルチタスク起
動の可能な複数ファイルI/O制御機構において、各プ
ログラムからの指定により複数ファイルのI/Oを一括
制御するためのファイル制御テーブルを作成し、前記複
数ファイルのI/O制御を前記ファイル制御テーブルを
用いて一括制御するとともに結果を一括返送することを
特徴とする複数ファイルI/O制御機構。
In a multi-file I/O control mechanism that has a multi-file I/O management mechanism and is capable of starting multitasks, a file control table is created for collectively controlling I/O of multiple files according to specifications from each program, A multiple file I/O control mechanism, characterized in that the I/O control of the multiple files is collectively controlled using the file control table, and the results are collectively returned.
JP63324973A 1988-12-23 1988-12-23 Input/output control mechanism for plural files Pending JPH02170245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63324973A JPH02170245A (en) 1988-12-23 1988-12-23 Input/output control mechanism for plural files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63324973A JPH02170245A (en) 1988-12-23 1988-12-23 Input/output control mechanism for plural files

Publications (1)

Publication Number Publication Date
JPH02170245A true JPH02170245A (en) 1990-07-02

Family

ID=18171697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63324973A Pending JPH02170245A (en) 1988-12-23 1988-12-23 Input/output control mechanism for plural files

Country Status (1)

Country Link
JP (1) JPH02170245A (en)

Similar Documents

Publication Publication Date Title
JPH02170245A (en) Input/output control mechanism for plural files
JPH03265027A (en) Initializing device for computer system
KR100270582B1 (en) Method of boot a operating system for spax
JPS63636A (en) Task control system
JPH0769847B2 (en) Job control method during rerun
JPS6266357A (en) File controller
JPS6394339A (en) Virtual calculation system
JPS6346861B2 (en)
JPH04177504A (en) Backup device of programmable controller
JPH04148427A (en) Program patch system
JPH03237529A (en) Memory maintenance system dependent upon online of information processor
JPH0332143A (en) Processor extension method for multiple decentralization control exchange system
JPH0235536A (en) Update processing system for on-line file index part
JPH0355640A (en) Collection system for fault analysis information on peripheral controller
JPH01185733A (en) Input/output emulation system
JPH0394348A (en) System resource controlling system
JPS61235925A (en) Operating system for electronic computer system
JPS63241641A (en) Input/output control system in virtual computer system
JPS6220013A (en) Disconnecting device for power supply of microcomputer applied equipment
JPS63273146A (en) File output processing system
JPS62196739A (en) Control system for microprogram execution locus stack in communication control equipment
JPS62184535A (en) System for making operating system nonresident
JPS6359633A (en) Virtual computer system
JPH0281239A (en) File shared control system for virtual machine system
JPH03127128A (en) Interruption control system