JPH0293951A - File allocation control system - Google Patents

File allocation control system

Info

Publication number
JPH0293951A
JPH0293951A JP63247208A JP24720888A JPH0293951A JP H0293951 A JPH0293951 A JP H0293951A JP 63247208 A JP63247208 A JP 63247208A JP 24720888 A JP24720888 A JP 24720888A JP H0293951 A JPH0293951 A JP H0293951A
Authority
JP
Japan
Prior art keywords
file
allocation
allocation information
file allocation
terminal
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
JP63247208A
Other languages
Japanese (ja)
Inventor
Yuuko Suzaki
數崎 有子
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 JP63247208A priority Critical patent/JPH0293951A/en
Publication of JPH0293951A publication Critical patent/JPH0293951A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily schedule a job by retrieving file allocating information in an allocating information table when an inquiry is generated from a console by a user other than a user process executing allocating processing and displaying the retrieved result to an output device. CONSTITUTION:When a user process outputs a file allocation request for files in a storage device to a file allocation processing part, an allocation information processing part registers file allocating information consisting of the file name of a file, the job name of a user program outputting a file allocation request and the terminal identifier of a terminal if the file allocation request is outputted from the terminal in an allocation information table. The allocating information processing part retrieves the allocating information table and outputs the file allocating information to an optional output device. Thus, job scheduling can be easily executed by referring the file allocating information in the allocating information table.

Description

【発明の詳細な説明】 (産業上の利用分野) 複数のユーザプロセスのジョブが記憶装置上に記憶きれ
た複数のファイルの割当てをする計算機システムにおけ
るファイル割当て管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a file allocation management method in a computer system in which jobs of a plurality of user processes allocate a plurality of files completely stored on a storage device.

(従来の技術) 従来、ファイルの割当て処理におけるファイル割当て管
理方式では、読込み割当て処理であるか書出し割当て処
理であるかを識別する識別子と、ファイルを割当ててい
るプロセス数とについてのみ管理するようにしていた。
(Prior Art) Conventionally, in file allocation management methods for file allocation processing, only the identifier for identifying whether it is read allocation processing or write allocation processing and the number of processes that are allocating files are managed. was.

(発明が解決しようとする課題) 上述した従来のファイル割当て管理方式では、割当て処
理を行なったユーザプロセス以外のユーザのユーザプロ
セスが割当て処理済みの特定のファイルを割当てようと
した場合、当該特定のファイルがすでに割当てされてい
るので、特定ファイルを割当てようとしたユーザは資源
待ち状態になっていた。この時、従来のファイル割当て
方式ではファイル資源とジョブ名との関係を明確にして
いないから資源待ち状態になったユーザのオペレータが
、ファイル割当てを行なっているジョブの終了時間の予
測や前記オペレータの利用するユーザプロセスを強制終
了させる等の判断ができず、ジョブのスケジューリング
を容易に行なえないという欠点があった。
(Problem to be Solved by the Invention) In the conventional file allocation management method described above, when a user process of a user other than the user process that performed the allocation process attempts to allocate a specific file that has already been allocated, Since the file was already allocated, a user attempting to allocate a particular file was placed in a resource waiting state. At this time, in the conventional file allocation method, the relationship between file resources and job names is not made clear. It has the disadvantage that it is not possible to make decisions such as forcibly terminating the user processes being used, and it is not easy to schedule jobs.

本発明は、上記欠点を解決することを課題とするもので
、ファイル資源とジョブ名等のファイル割当て情報を参
照してジョブスケジューリングを容易に行ないうるファ
イル割当て管理方式を提供することを目的とする。
The present invention aims to solve the above-mentioned drawbacks, and aims to provide a file allocation management method that can easily perform job scheduling by referring to file resources and file allocation information such as job names. .

(課題を解決するための手段) 上記課題は、第1図に示すように、複数のユーザプロセ
スのジョブが、記憶装置上に記憶された複数のファイル
の割当てをする計箕機システムにおいて、前記ユーザプ
ロセスの特定のジョブが前記記憶装置上の特定のファイ
ルをアクセスするときに該特定のファイルに対してファ
イル割当て処理及びファイル割当て解除処理を行なう一
方、前記特定のファイルのファイル名とファイル割当て
要求を出しているジョブ名と端末からのファイル割当て
要求時にその端末を識別するための端末識別子とからな
るファイル割当て情報を送信するファイル割当て部と、
前記ファイル割当て情報を記憶する割当て情報テーブル
と、前記ファイル割当て処理時に前記割当て情報テーブ
ルに前記ファイル割当て情報を登録し、かつ前記ファイ
ル割当て解除処理時に前記情報テーブルの前記ファイル
割当て情報の削除を行なう一方、割当て処理をしたニー
 サフt7セス以外のユーザからコンソールにより問い
合わせがあった時に前記割当て情報テーブルの前記ファ
イル割当て情報を検索してその結果を出力装置に表示す
る割当て情報処理部とを備えることで解決することがで
きる。
(Means for Solving the Problem) The above problem is solved, as shown in FIG. When a specific job of a user process accesses a specific file on the storage device, file allocation processing and file allocation processing are performed for the specific file, and the file name and file allocation request of the specific file are a file allocation unit that transmits file allocation information consisting of a job name issuing a file allocation request and a terminal identifier for identifying the terminal when a file allocation request is made from the terminal;
an allocation information table for storing the file allocation information; and a register for registering the file allocation information in the allocation information table during the file allocation process, and for deleting the file allocation information from the information table during the file allocation release process; , an allocation information processing unit that searches the file allocation information in the allocation information table and displays the result on an output device when an inquiry is received via a console from a user other than the user who performed the allocation process. It can be solved.

(作 用) ユーザプロセスが、ファイル割当て処理部に記憶装置上
のファイルについてファイル割当て要求を出した場合に
は、割当て情報処理部は、割当て情報テーブルにファイ
ルのファイル名と、ファイル割当て要求を出しているユ
ーザプロセスのジョブ名と、端末からファイル割当て要
求が出ているのであればその端末の端末識別子とからな
るファイル割当て情報を登録する。
(Operation) When a user process issues a file allocation request for a file on the storage device to the file allocation processing unit, the allocation information processing unit issues the file name of the file and the file allocation request to the allocation information table. Register file allocation information consisting of the job name of the user process currently running, and the terminal identifier of the terminal if a file allocation request is issued from the terminal.

一方、ユーザプロセスが、ファイル割当て処理部に記憶
装置上のファイルについてファイル割当て解除要求を出
した場合には、割当て処理部は割当て情報テーブルから
前記ファイル割当て情報を削除する。
On the other hand, when the user process issues a file allocation release request for a file on the storage device to the file allocation processing unit, the allocation processing unit deletes the file allocation information from the allocation information table.

そして、オペレータが、コンソールからファイル割当て
情報の問い合わせを行なった場合には、割当て情報処理
部は、割当て情報テーブルを検索してファイル割当て情
報を任意の出力装置上へ出力する。
When the operator inquires about file allocation information from the console, the allocation information processing section searches the allocation information table and outputs the file allocation information to an arbitrary output device.

このように本発明によれば、割当て情報テーブル上のフ
ァイル割当て情報を参照してジョブスケジューリングを
容易に行なうことができる。
As described above, according to the present invention, job scheduling can be easily performed by referring to the file allocation information on the allocation information table.

(実施例) 以下に本発明の一実施例を図面を参照して説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第2図は本実施例を示すブロック図である。図において
、1は割当て情報処理部、2は割当て情報テーブル、3
はファイル割当て処理部、4はユーザプロセス、5はコ
ンソーノ呟 6は出力装置、7は本発明の記憶装置を構
成するディスク装置、8は該ディスク装置上のファイル
である。
FIG. 2 is a block diagram showing this embodiment. In the figure, 1 is an allocation information processing unit, 2 is an allocation information table, and 3 is an allocation information processing unit.
4 is a file allocation processing unit, 4 is a user process, 5 is a console output device, 6 is an output device, 7 is a disk device constituting the storage device of the present invention, and 8 is a file on the disk device.

以下第2図について説明する。あるユーザが、端末を介
してディスク装置7上のファイル8のアクセス要求を出
すと、端末に対応して定義されたユーザプロセス41が
、ファイル割当て要求をファイル害り当て処理部3に出
し、ファイル割当て部31が、ファイル割当てを行なう
と同時に、割当て情報処理部1の割当て情報登録部12
に、ジョブ名と、ディスク装置7上のファイル8のファ
イル名と、端末の端末識別子とのファイル割当て情報を
渡す0割当て情報登録部12は、割当て情報テーブル2
内のジョブ名テーブル21にファイル割当て要求を出し
ているジョブ名を、端末識別子テーブル22に端末識別
子をそれぞれ登録する。
FIG. 2 will be explained below. When a certain user issues a request to access the file 8 on the disk device 7 via a terminal, the user process 41 defined corresponding to the terminal issues a file allocation request to the file damage processing unit 3, and the file At the same time that the allocation unit 31 performs file allocation, the allocation information registration unit 12 of the allocation information processing unit 1
The allocation information registration unit 12 passes the file allocation information of the job name, the file name of the file 8 on the disk device 7, and the terminal identifier of the terminal to the allocation information table 2.
The name of the job issuing the file allocation request is registered in the job name table 21 in the job name table 21, and the terminal identifier is registered in the terminal identifier table 22.

また、ユーザプロセス41はファイル8に対する最初の
割当てである場合には、ファイル名テーブル23にファ
イル名を登録する。
Further, when the user process 41 is the first to allocate the file 8, the user process 41 registers the file name in the file name table 23.

ここで前記ユーザとは別のユーザが端末を介してディス
ク装置7上のファイル8のアクセス要求を出すと、端末
に対応して定義されたユーザプロセス42がファイル割
当て要求をファイル割当て処理部3に出して、ファイル
割当て部31がファイル割当て処理を行なわせようとす
る。しかしファイル8が先行のユーザプロセス41によ
って既に割当てられているためにファイル資源待ち状態
となり、ユーザプロセス42の処理は待たされる。この
時、ファイル8のアクセス要求を出したユーザのオペレ
ータはコンソール5からファイル8のファイル名を入力
してファイル割当て情報について問い合わせを行なうこ
とができる。すると割当て情報検索表示部11は割当て
情報テーブル2をファイル名に基づいて検索しその検索
結果としてジョブ名テーブル21からユーザプロセス4
1のジョブ名を、端末識別子テーブル22から端末識別
子をそれぞれ入手してファイル名と共にラインプリンタ
61または磁気テープ62上に出力する。
Here, when a user other than the above-mentioned user issues a request to access the file 8 on the disk device 7 via the terminal, the user process 42 defined corresponding to the terminal sends the file allocation request to the file allocation processing unit 3. Then, the file allocation unit 31 attempts to perform file allocation processing. However, since the file 8 has already been allocated by the preceding user process 41, the file resource waiting state is entered, and the processing of the user process 42 is forced to wait. At this time, the operator of the user who issued the access request for file 8 can input the file name of file 8 from console 5 and inquire about file allocation information. Then, the allocation information search and display unit 11 searches the allocation information table 2 based on the file name, and as a result of the search, the user process 4 is searched from the job name table 21.
1 job name, terminal identifiers are obtained from the terminal identifier table 22, and output together with the file name onto the line printer 61 or magnetic tape 62.

一方、ファイル8の割当て処理をしたユーザプロセス4
1の処理が終了するとファイル割当て解除部32はファ
イル8の割当て解除を行なうと同時に、割当て情報処理
部1の割当て情報削除部13に、ジョブ名と、ディスク
装置7上のファイル8のファイル名と、端末の端末識別
子とのファイル割当て情報を渡す1割当て情報削除部1
3では、割当て情報テーブル2のジョブ名テーブル21
からユーザプロセス41のジョブ名を、端末識別子デー
プル22かも端末識別子をそれぞれ削除する。また、ユ
ーザプロセス41の他にファイル8を割当てているジョ
ブが無い場合には、ファイル名テーブル23よりファイ
ル名を削除する。
On the other hand, user process 4 that performed the allocation process for file 8
1, the file allocation release unit 32 releases the allocation of the file 8, and at the same time sends the job name and the file name of the file 8 on the disk device 7 to the allocation information deletion unit 13 of the allocation information processing unit 1. , 1 Allocation information deletion unit 1 that passes file allocation information with the terminal identifier of the terminal
3, job name table 21 of assignment information table 2
The job name of the user process 41 and the terminal identifier from the terminal identifier table 22 are respectively deleted. Further, if there is no job to which the file 8 is allocated other than the user process 41, the file name is deleted from the file name table 23.

第3図は、割当て情報処理部1と割当て情報テーブル2
の処理を示す概略フローチャートであり、この概略フロ
ーチャートの説明においては第2図と同等部分は同一符
号で示して説明する。以下に第3図の説明をする。
FIG. 3 shows the allocation information processing section 1 and the allocation information table 2.
2 is a schematic flowchart showing the processing of FIG. FIG. 3 will be explained below.

まず、割当て情報処理部1への要求が、コンソール5か
らの割当て情報表示要求であるかどうかの判断(Sl)
を行ない、割当て情報表示要求である場合には、入力さ
れたファイル名をキーに用いて割当て情報テーブル2を
検索してジョブ名と端末識別子とのファイル割当て情報
を入手(Sit)t、、任意の出力装置上に出力(S1
2)とする。以上の処理を割当て情報処理部1の割当て
情報検索表示部11が行なう。
First, it is determined whether the request to the allocation information processing unit 1 is an allocation information display request from the console 5 (Sl)
, and if it is an allocation information display request, search the allocation information table 2 using the input file name as a key and obtain the file allocation information of the job name and terminal identifier (Sit), optional. Output on the output device (S1
2). The above processing is performed by the allocation information search and display unit 11 of the allocation information processing unit 1.

割当て情報表示要求でない場合には、ファイル割当て処
理要求であるかどうかの判断(S2)を行ない、ファイ
ル割当て処理要求である場合には、ファ1′ルの割当て
要求を出しているジョブ名をジョブ名テーブル21に登
録(S21)する。
If it is not an allocation information display request, it is determined whether it is a file allocation processing request (S2), and if it is a file allocation processing request, the job name issuing the file allocation request is It is registered in the name table 21 (S21).

また、このユーザプロセスが端末からのファイル割当て
要求であるか判断(S22)を行ない、端末からのファ
イル割当て要求である場合には端末識別子を端末識別子
テーブル22に登録(S23)する、きらに、現ファ、
イルに対して最初の割当てかどうかの判断(S24)を
行ない、最初の割当てである場合には、ファイル名をフ
ァ\ イル名テーブル23に登録(S25)する0以上の処理
を割当て情報処理部1の割当て情報登録部12が行なう
It also determines whether this user process is a file allocation request from a terminal (S22), and if it is a file allocation request from a terminal, registers the terminal identifier in the terminal identifier table 22 (S23). Current Fa,
The allocation information processing unit determines whether or not this is the first allocation to the file (S24), and if it is the first allocation, the allocation information processing unit registers the file name in the file\file name table 23 (S25). This is performed by the allocation information registration unit 12 of No. 1.

ファイル割当て処理要求かどうかの判断(S2)におい
て、ファイル割当て処理要求でない場合には、ファイル
割当て解除処理要求であるかどうかの判断(S3)を行
ない、ファイル割当て解除処理要求の場合には、ファイ
ル割当て解除要求を出しているジョブ名をジョブ名テー
ブル21から削除(S31)する。また、このユーザプ
ロセスが端末からのファイル割当て解除要求であるか判
断(S32)を行ない、端末からのファイル割当て解除
要求である場合には端末識別子を端末識別子テーブル2
2から削除(S33)する、さらに、現ファイルに対す
る最後の割当て解除処理であるかどうかの判断(S34
)を行ない、最後の割当て解除処理である場合には、フ
ァイル名をファイル名テーブル23から削除(S35)
する0以上の処理を割当て情報処理部1の割当て情報削
除部13が行なう。
In determining whether it is a file allocation processing request (S2), if it is not a file allocation processing request, it is determined whether it is a file allocation processing request (S3). The job name issuing the allocation release request is deleted from the job name table 21 (S31). Also, it is determined whether this user process is a file allocation release request from a terminal (S32), and if it is a file allocation release request from a terminal, the terminal identifier is stored in the terminal identifier table 2.
2 (S33), and furthermore, it is determined whether this is the last allocation release process for the current file (S34).
), and if this is the final allocation release process, delete the file name from the file name table 23 (S35).
The allocation information deletion unit 13 of the allocation information processing unit 1 performs zero or more processes.

なお、本実施例では、端末の端末識別子をファイル割当
て情報として登録・削除するようにしたが、ユーザプロ
セス4が端末以外からのファイル割当て要求である場合
には、端末識別子の登録は不要である。
Note that in this embodiment, the terminal identifier of the terminal is registered/deleted as file allocation information, but if the user process 4 requests file allocation from a source other than the terminal, registration of the terminal identifier is not necessary. .

(発明の効果) 以上説明したように、本発明のファイル割当て管理方式
では、ファイル割当て処理において、ユーザがファイル
資源待ちの状態となった場合、コンソールから問い合わ
せることにより、速やかに、ファイルを割り当てている
ジョブ名やジョブを実行した端末の端末識別子を知るこ
とができる。その結果、オペレータによる該当ジョブの
終了時間の予測やユーザプロセスを強制終了させるか等
の判断が可能となってジョブのスケジューリングが容易
となる。
(Effects of the Invention) As explained above, in the file allocation management method of the present invention, when a user is in a state of waiting for a file resource during file allocation processing, the file can be allocated immediately by making an inquiry from the console. You can know the job name and the terminal identifier of the terminal that executed the job. As a result, it becomes possible for the operator to predict the end time of the job and determine whether to forcibly terminate the user process, thereby facilitating job scheduling.

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

第1図は本発明の構成を示すブロック図、第2図は本発
明の一実施例を示すブロック図、第3図は本実施例にお
ける割当て情報処理手段と割当て情報テーブルの処理の
概要を示すフローチャートである。 1・・・割当て情報処理部、2・・・割当て情報テーブ
ル、3・・・ファイル割当て処理部、4・・・ユーザプ
ロセス、5・・・コンソール、6・・・出力装置、7・
・・ディスク装置、8・・・ファイル、11・・・割当
て情報検索表示部、12・・・割当て情報登録部、13
・・・割当て情報削除部、21・・・ジョブ名テーブル
、22・・・端末識別子デープル、23・・・ファイル
名テーブル、31・・・ファイル割当て部、32・・・
ファイル割当て解除部。
Fig. 1 is a block diagram showing the configuration of the present invention, Fig. 2 is a block diagram showing an embodiment of the invention, and Fig. 3 shows an overview of the allocation information processing means and the processing of the allocation information table in this embodiment. It is a flowchart. DESCRIPTION OF SYMBOLS 1... Allocation information processing unit, 2... Allocation information table, 3... File allocation processing unit, 4... User process, 5... Console, 6... Output device, 7.
... Disk device, 8... File, 11... Allocation information search display section, 12... Allocation information registration section, 13
... Allocation information deletion unit, 21... Job name table, 22... Terminal identifier table, 23... File name table, 31... File allocation unit, 32...
File deallocation section.

Claims (1)

【特許請求の範囲】[Claims] 複数のユーザプロセスのジョブが、記憶装置上に記憶さ
れた複数のファイルの割当てをする計算機システムにお
いて、前記ユーザプロセスの特定のジョブが前記記憶装
置上の特定のファイルをアクセスするときに該特定のフ
ァイルに対してファイル割当て処理及びファイル割当て
解除処理を行なう一方、前記特定のファイルのファイル
名とファイル割当て要求を出しているジョブ名と端末か
らのファイル割当て要求時にその端末を識別するための
端末識別子とからなるファイル割当て情報を送信するフ
ァイル割当て部と、前記ファイル割当て情報を記憶する
割当て情報テーブルと、前記ファイル割当て処理時に前
記割当て情報テーブルに前記ファイル割当て情報を登録
し、かつ前記ファイル割当て解除処理時に前記情報テー
ブルの前記ファイル割当て情報の削除を行なう一方、割
当て処理をしたユーザプロセス以外のユーザからコンソ
ールにより問い合わせがあった時に前記割当て情報テー
ブルの前記ファイル割当て情報を検索してその結果を出
力装置に表示する割当て情報処理部とを備えることを特
徴とするファイル割当て管理方式。
In a computer system in which jobs of multiple user processes allocate multiple files stored on a storage device, when a specific job of the user process accesses a specific file on the storage device, While performing file allocation processing and file allocation processing for a file, the file name of the specific file, the job name issuing the file allocation request, and the terminal identifier for identifying the terminal when the file allocation request is made from the terminal. an allocation information table that stores the file allocation information; and a file allocation unit that registers the file allocation information in the allocation information table during the file allocation processing, and registers the file allocation information in the allocation information table during the file allocation processing, and the file allocation release processing. At times, the file allocation information is deleted from the information table, and at the same time, when an inquiry is received via the console from a user other than the user process that performed the allocation process, the file allocation information is searched for from the allocation information table and the results are output to the output device. 1. A file allocation management method comprising: an allocation information processing section for displaying information on a file.
JP63247208A 1988-09-30 1988-09-30 File allocation control system Pending JPH0293951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63247208A JPH0293951A (en) 1988-09-30 1988-09-30 File allocation control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63247208A JPH0293951A (en) 1988-09-30 1988-09-30 File allocation control system

Publications (1)

Publication Number Publication Date
JPH0293951A true JPH0293951A (en) 1990-04-04

Family

ID=17160054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63247208A Pending JPH0293951A (en) 1988-09-30 1988-09-30 File allocation control system

Country Status (1)

Country Link
JP (1) JPH0293951A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04195504A (en) * 1990-11-28 1992-07-15 Nec Corp Display system for job using file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04195504A (en) * 1990-11-28 1992-07-15 Nec Corp Display system for job using file

Similar Documents

Publication Publication Date Title
JPH0293951A (en) File allocation control system
JP3473394B2 (en) Apparatus and method for controlling resource sharing between hosts and recording medium
JP3823497B2 (en) Resource priority management system
JP3616545B2 (en) Device management method and recording medium recording program
JPH0454634A (en) Software resources distribution management system
JPS61228538A (en) File control system
JPH0644185A (en) Method for managing variable of catalog in interactive processing system
JP2787107B2 (en) Buffer control system and device
JP2596213B2 (en) File allocation management method
JPS6150356B2 (en)
JPH0414161A (en) Transaction processing system
JPH08167899A (en) Network information display
JPH05120037A (en) Dynamic management display system for system resource management job dynamic information
JPH05165702A (en) File management method
JPH03127137A (en) File area allocating system
JPH03202940A (en) Temporary file input/output control system
JPH1165903A (en) Method and device for data base management, and storage medium stored with data base management program
JPH04195504A (en) Display system for job using file
JPH08153031A (en) File management device
JPH02193231A (en) File space free area management system
JPH0256678A (en) Record storing system for data base
JPH02222057A (en) Control system for batch file release command of assigned file
JPH05173775A (en) System for managing display terminal menu
JPH05108425A (en) Volume selection processor
JPH05197571A (en) Schedule managing device