JPS63292456A - Control system for medium assignment of plural medium containing type data recorder - Google Patents

Control system for medium assignment of plural medium containing type data recorder

Info

Publication number
JPS63292456A
JPS63292456A JP62129463A JP12946387A JPS63292456A JP S63292456 A JPS63292456 A JP S63292456A JP 62129463 A JP62129463 A JP 62129463A JP 12946387 A JP12946387 A JP 12946387A JP S63292456 A JPS63292456 A JP S63292456A
Authority
JP
Japan
Prior art keywords
medium
data recording
recording medium
data
data input
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
JP62129463A
Other languages
Japanese (ja)
Inventor
Yoshihiko Saitou
斉藤 至彦
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 JP62129463A priority Critical patent/JPS63292456A/en
Publication of JPS63292456A publication Critical patent/JPS63292456A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain effective assignment control conforming with a processing precedence of each process by preventing a process whose processing precedence is high, from being kept waiting for a long time as to an assignment of a medium due to a process whose precedence is low. CONSTITUTION:Processes 31, 32 of processing precedences U1, U2 use a medium 13 installed to a data input/output mechanism 20, and processes 33, 34 of precedences U3, U4 use a medium 16 installed to an input/output mechanism 21. In such a case, when a process 35 of a precedence U5 requests an assignment of a medium 15 to a control means 4, the execution of the processes 33, 34 whose precedence is lower than U5 is suspended and stored temporarily in an auxiliary storage device 6, and the process 35 is executed. When the execution of the process 35 is ended and the mechanism 21 goes to idle, the processing of the processes 33, 34 is restarted. According to such a constitution, an assignment control conforming with the precedence of each process can be executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、複数のデータ記録媒体を収納し、媒体自動装
着機構によって任意のデータ記録媒体をデータ入出力機
構に装着し或いは取り外すことができる複数媒体収納型
データ記録装置に関し、特に収納しているデータ記録媒
体をプロセスに割り当てる制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention accommodates a plurality of data recording media, and allows any data recording medium to be loaded into or removed from a data input/output mechanism by an automatic medium loading mechanism. The present invention relates to a multi-media storage type data recording device, and particularly to a control method for allocating stored data recording media to processes.

〔従来の技術〕[Conventional technology]

従来、データ入出力装置、データ記録媒体あるいはデー
タファイルなどを計算機システムでの実行単位であるプ
ロセスに割り当てる場合、割り当てを要求しているデー
タ入出力装置、データ記録媒体あるいはデータファイル
が既に他のプロセスに割り当てられていたならば、それ
らを使用していたプロセスからそのデータ入出力装置な
どが解放されるまで新たなプロセスへの割り当てを待た
せる制御を行なうのが一般的である。このような制御方
式は、複数のデータ記録媒体を収納し、媒体自動装着機
構によって任意のデータ記録媒体をデータ入出力機構に
装着し或いは取り外すことができる複数媒体収納型デー
タ記録装置において、個数に限りのある前記データ入出
力機構を使用してデータ記録媒体をプロセスに割り当て
る場合にも採用されている。
Conventionally, when allocating a data input/output device, data recording medium, or data file to a process that is an execution unit in a computer system, the data input/output device, data recording medium, or data file requesting allocation has already been assigned to another process. If the data input/output device has been allocated to a new process, it is common to control the process to wait until the data input/output device is released from the process that was using it. Such a control method is applicable to a multi-media storage type data storage device that stores a plurality of data storage media and can load or remove any data storage medium from a data input/output mechanism using an automatic medium loading mechanism. It is also adopted when data recording media are allocated to processes using the limited data input/output mechanism.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述したような割り当て制御方式を採る複数媒体収納型
データ記録装置では、他のプロセスによってデータ入出
力機構が使用されており要求を出したプロセスのデータ
記録媒体を装着するデータ入出力機構がない場合、上記
の他のプロセスの処理が終了するまで後続のプロセスは
データ記録媒体の割り当てを受けることができない。こ
のような制御方式は、各プロセスの処理の優先度に区別
がない場合は適用可能であるが、各プロセスの処理の優
先度に相違を持たせ、優先度の高いプロセスはど早く処
理したいシステムでは、高い優先度のプロセスが低い優
先度のプロセスによってデータ記録媒体の割り当てを長
く待たされる結果となり、適用が困難となる。
In a multi-media storage type data storage device that uses the allocation control method described above, when the data input/output mechanism is used by another process and there is no data input/output mechanism to mount the data recording medium of the process that issued the request. , the subsequent process cannot receive the data recording medium allocation until the processing of the other processes mentioned above is completed. This type of control method can be applied when there is no distinction in the processing priority of each process, but it is suitable for systems where the processing priority of each process is different and the process with a higher priority is desired to be processed as soon as possible. In this case, a process with a high priority is forced to wait for a long time to allocate a data recording medium by a process with a low priority, making it difficult to apply the method.

なお、プロセスの状態を表示装置などに表示させ、若し
処理を優先して実行させたいプロセスがそれより優先度
の低い他プロセスによってデータ記録媒体の割り当てを
阻害されていれば、その優先度の低い他プロセスを強制
的に終了させることにより、優先して処理したいプロセ
スにデータ記録媒体が速やかに割り当てられるようにオ
ペレータ操作することも可能であるが、常に監視しなけ
ればならない煩わしさがあると共にオペレータが介在す
る為に処理優先度の高いプロセスに速やかにデータ記録
媒体を割り当てることは困難であり、また強制的に終了
せしめられたプロセスはその最初の処理から再開させな
ければならないため無駄も大きいという問題点もあるや そこで、本発明の目的は、各プロセスに処理の優先度を
付加しておき、処理優先度の高いプロセスに対しては自
動的に処理優先度の低い既割り当て済プロセスを中断さ
せて優先的にデータ記録媒体の割り当てを行なうように
し、しかも中断されたプロセスはその中断時点から再開
できるようにした割り当て制御方式を提供することにあ
る。
Note that if the process status is displayed on a display device, etc., and the process to be executed with priority is blocked from allocating the data recording medium by another process with a lower priority, the priority It is possible for an operator to forcefully terminate other processes with low performance so that the data recording medium is promptly allocated to the process that the user wants to process with priority, but this is inconvenient and requires constant monitoring. Due to operator intervention, it is difficult to promptly allocate data storage media to processes with high processing priority, and a process that is forcibly terminated must be restarted from the beginning, resulting in a large amount of waste. Therefore, the purpose of the present invention is to assign a processing priority to each process, and automatically assign an already allocated process with a low processing priority to a process with a high processing priority. It is an object of the present invention to provide an allocation control method which allows a data recording medium to be allocated preferentially by interrupting the process, and also allows the interrupted process to be restarted from the point of interruption.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、複数のデータ記録
媒体を収納し、該収納しているデータ記録媒体の数より
少ない数のデータ入出力機構と、任意のデータ記録媒体
の前記データ入出力機構への装着および装着されたデー
タ記録媒体の前記データ入出力機構からの取り外しを行
なう媒体自動装着機構とを有する複数媒体収納型データ
記録装置の媒体割り当て制御方式において、 前記データ記録媒体の割り当て、解放を要求する各プロ
セスに処理優先度を持たせると共に、前記プロセスから
の前記データ記録媒体の割り当て、解放の要求を処理す
る割り当て制御手段と、該割り当て制御手段が割り当て
制御に必要な情報を格納して管理する管理テーブルと、
プロセスの中断状態を格納する補助記憶手段とを備え、 前記割り当て制御手段は、 前記データ入出力媒体に空きがないときに前記データ入
出力媒体にセットされていないデータ記録媒体に対する
割り当て要求をプロセスから受けた場合、該プロセスの
処理優先度とデータ記録媒体を現在使用中の他プロセス
の処理優先度との比較結果を考慮して今回の割り当て要
求の実行可否および置換すべきデータ記録媒体を決定し
、実行筒と決定したときは前記決定した置換すべきデー
タ記録媒体を使用中のプロセスを中断させて前記補助記
憶装置にその中断状態を格納すると共に前記置換すべき
データ記録媒体を前記今回の割り当て要求プロセスが要
求するデータ記録媒体に前記媒体自動装着機構によって
交換することにより今回割り当て要求を出したプロセス
に対しデータ記録媒体を割り当て、且つ、 前記補助記憶装置に格納されたプロセスを、その後前記
データ入出力機構に空きが生じたとき或いはそのプロセ
スの処理優先度と既割り当てプロセスの処理優先度との
比較結果に基づいて新たに中断すべきプロセスを決定し
たときに、前記補助記憶装置より取り出してデータ記録
媒体の割り当てを行ない、中断直後の状態からそのプロ
セスの処理を再開させる構成を有する。
In order to achieve the above object, the present invention accommodates a plurality of data recording media, includes a data input/output mechanism whose number is smaller than the number of the stored data recording media, and the data input/output mechanism of any data recording medium. In a medium allocation control method for a multi-media storage type data recording device having an automatic medium loading mechanism that loads the data recording medium into the mechanism and removes the loaded data recording medium from the data input/output mechanism, the data recording medium is allocated; Allocation control means for assigning a processing priority to each process requesting release and processing requests for allocation and release of the data recording medium from the process, and storing information necessary for allocation control by the allocation control means. A management table to be managed by
auxiliary storage means for storing an interrupted state of the process, and the allocation control means is configured to send an allocation request from a process to a data recording medium that is not set in the data input/output medium when there is no free space in the data input/output medium. If the process receives a request, it determines whether the current allocation request can be executed and which data storage medium to replace, taking into consideration the results of comparing the processing priority of the process with the processing priorities of other processes currently using the data storage medium. , when it is determined that the data recording medium to be replaced is an active one, the process that is currently using the data recording medium to be replaced is interrupted, the interrupted state is stored in the auxiliary storage device, and the data recording medium to be replaced is allocated to the current allocation. Allocating a data recording medium to the process that has issued the current allocation request by replacing the data recording medium requested by the requesting process with the data recording medium requested by the requesting process, and subsequently assigning the data to the process stored in the auxiliary storage device. When the input/output mechanism becomes vacant or when a new process to be suspended is determined based on the comparison result of the processing priority of that process and the processing priority of the already allocated process, the process is retrieved from the auxiliary storage device. It has a configuration that allocates a data recording medium and restarts the process from the state immediately after the interruption.

〔作用〕[Effect]

他のプロセスに割り当てられたデータ記録媒体によって
個数に限りのあるデータ入出力機構が全て使用され、今
回割り当て要求を出したプロセスにデータ記録媒体を割
当てる際に使用する空きのデータ入出力機構がなくても
、今回割り当て要求を出したプロセスの処理優先度が既
割り当て済プロセスの処理優先度より高ければ、割り当
て制御手段によって、既割り当て済プロセスが一時的に
中断せしめられて補助記憶装置に格納され、媒体自動装
着機構によってデータ記録媒体の交換が行なわれて今回
割り当て要求を出したプロセスにデータ記録媒体が割り
当てられる。また、データ入出力機構に空きが生じた場
合等には、補助記憶装置に格納されたプロセスにデータ
記録媒体が再度割り当てられ、そのプロセスの処理が中
断直後から再開せしめられる。
All of the limited number of data input/output mechanisms are used by data recording media allocated to other processes, and there are no free data input/output mechanisms to use when allocating a data recording medium to the process that issued the current allocation request. However, if the processing priority of the process that issued the current allocation request is higher than the processing priority of the already allocated process, the allocated process is temporarily suspended and stored in the auxiliary storage by the allocation control means. Then, the automatic medium loading mechanism exchanges the data recording medium and allocates the data recording medium to the process that issued the current allocation request. Furthermore, when a space becomes available in the data input/output mechanism, the data recording medium is reallocated to the process stored in the auxiliary storage device, and the processing of that process is restarted immediately after interruption.

〔実施例〕〔Example〕

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

第1図は本発明の実施例のブロック図であり、この実施
例は、8個のデータ記録媒体(以下、単に媒体と称す)
11〜18を収納する媒体格納部10゜2個のデータ入
出力機構20.21.媒体格納部IOに収納された任意
の媒体を任意のデータ入出力機構20、21に装着しま
たはデータ入出力機構20.21に装着された媒体を取
り外して媒体格納部10の元の場所へ返却する操作を外
部からの指示により自動的に行なう媒体自動装着機構1
9とを含む複数媒体収納型のデータ記録装置lを例とし
て取り上げている。このようなデータ記録装置1として
は、光ディスクを媒体とし、一つの光デイスク内に複数
のデータファイルを含ませ、一つの光ディスクに複数の
プロセスの割り当てが可能な光デイスク装置などが採用
される。なお、第1図において、4は割り当て制御手段
、5は管理テーブル、6は磁気ディスク装置などの補助
記憶装置、31〜35は計算機システム上で動作するプ
ロセスである。各プロセス31〜35は処理優先度Ul
−U5を持ち、これらの優先度の順位はU 4 < t
J 2 < U 3 < U 5 <Ulとなっている
FIG. 1 is a block diagram of an embodiment of the present invention, which includes eight data recording media (hereinafter simply referred to as media).
11 to 18; two data input/output mechanisms 20.21. Attach any medium stored in the media storage unit IO to any data input/output mechanism 20, 21, or remove the medium installed in the data input/output mechanism 20, 21 and return it to its original location in the media storage unit 10. Media automatic loading mechanism 1 that automatically performs operations based on external instructions
A multi-media storage type data recording device l including 9 is taken as an example. As such a data recording device 1, an optical disk device that uses an optical disk as a medium, can contain a plurality of data files in one optical disk, and can allocate a plurality of processes to one optical disk is adopted. In FIG. 1, 4 is an allocation control means, 5 is a management table, 6 is an auxiliary storage device such as a magnetic disk device, and 31 to 35 are processes operating on the computer system. Each process 31 to 35 has a processing priority Ul
−U5, and the order of these priorities is U 4 < t
J 2 < U 3 < U 5 < Ul.

第2図(al〜(C1は管理テーブル5の内容例を示す
FIG. 2 (al~(C1 shows an example of the contents of the management table 5.

同図に示すように、管理テーブル5は、データ入出力機
構テーブル201と要求プロセスポインタ202とプロ
セステーブル203とで構成される。データ入出力機構
テーブル201は、データ記録装置l内に存在するデー
タ入出力機構20.21と同数(従って本実施例では2
個)のエントリを有し、各エントリはデータ入出力機構
20.21に装着されている媒体磁、その媒体を割り当
てているプロセスの中で最高位の処理優先度を持つプロ
セスの処理優先度およびその媒体を割り当てているプロ
セスのプロセステーブル203内の最初のエントリへの
ポインタから構成される。なお、媒体を装着していない
データ入出力機構に対応するエントリは空きになってい
る。
As shown in the figure, the management table 5 includes a data input/output mechanism table 201, a request process pointer 202, and a process table 203. The data input/output mechanism table 201 has the same number of data input/output mechanisms 20.21 existing in the data recording device l (therefore, in this embodiment, there are 2 data input/output mechanisms 20.21).
Each entry has the processing priority of the process with the highest processing priority among the processes to which the medium is assigned, and It consists of a pointer to the first entry in process table 203 for the process that is allocating the medium. Note that entries corresponding to data input/output mechanisms that do not have a medium installed are empty.

要求プロセスポインタ202は、媒体の割り当てを要求
しているプロセスのプロセステーブル203内のエント
リへのポインタである。媒体の割り当てを要求するプロ
セスが存在しない場合は空きポインタとなる。
Requesting process pointer 202 is a pointer to an entry in process table 203 for the process requesting media allocation. If there is no process requesting media allocation, this pointer becomes an empty pointer.

プロセステーブル203は媒体を割り当てているプロセ
スと媒体の割り当てを要求しているプロセスの各種情報
を格納する複数のエントリから構成され、各エントリは
プロセス胤、プロセスの処理優先度、使用媒体磁、プロ
セスが中断されてその情報が補助記憶装置6へ格納され
ているか否かを示す一時格納フラグおよび同一媒体を割
り当てられている他プロセスのエントリへのポインタ(
次プロセスへのポインタ)から構成される。
The process table 203 consists of multiple entries that store various information about the process that is allocating the medium and the process that is requesting the allocation of the medium. A temporary storage flag indicating whether or not the information has been interrupted and stored in the auxiliary storage device 6, and a pointer to the entry of another process to which the same medium is allocated (
(pointer to the next process).

また第2図(a)〜(C1は管理テーブル5の内容の変
更状況をも合わせて示しており、同図+a+は第1図に
示すように処理優先度Ul、U2のプロセス31゜32
がデータ入出力機構20に装着された媒体13を使用し
、処理優先度U3.C4のプロセス33.34がデータ
入出力機構21に装着された媒体16を使用している場
合において、処理優先度U5のプロセス35が媒体15
の割り当てを割り当て制御手段4に要求したときの状態
を示す。また、同図(blは、同図fa+の状態におい
て空きのデータ入出力機構がないことから処理優先度が
C5より低いプロセス33゜34の実行が中断されて補
助記憶装置6に一時的に格納された後プロセス35へ媒
体15が割当てられ、プロセス35が処理を実行してい
る状態を示す、また、同図(C1はプロセス35の処理
が終了してデータ入出力機構21が空き状態となること
により、補助記憶装置6に格納されていた情報に従って
プロセス33.34が処理を再開したときの状態を示し
ている。このような各プロセスに対する媒体の割り当て
、解放、プロセスの中断等は割り当て制御手段4によっ
て制御されるものであり、第3図に割り当て制御手段4
の媒体割り当て処理の一例を、第4図に媒体を使用した
プロセスの処理が終了したことにより媒体を解放すると
きの割り当て制御手段4の処理例をそれぞれ示す、以下
各図を参照して本実施例の動作を説明する。
In addition, FIGS. 2(a) to (C1) also show the change status of the contents of the management table 5, and +a+ in FIG.
uses the medium 13 attached to the data input/output mechanism 20, and the processing priority is U3. When the processes 33 and 34 of C4 are using the medium 16 attached to the data input/output mechanism 21, the process 35 of processing priority U5 is using the medium 15.
This shows the state when a request is made to the allocation control means 4 to allocate . In addition, in the figure (bl), in the state of fa+ in the figure, there is no free data input/output mechanism, so the execution of processes 33 and 34 whose processing priority is lower than C5 is interrupted and the data is temporarily stored in the auxiliary storage device 6. After the processing is completed, the medium 15 is allocated to the process 35, and the process 35 is executing the process. This shows the state when the processes 33 and 34 resume processing according to the information stored in the auxiliary storage device 6. Allocating and releasing media to each process, suspending the process, etc. is performed by allocation control. The control means 4 is controlled by the control means 4, and the allocation control means 4 is shown in FIG.
FIG. 4 shows an example of the processing of the allocation control means 4 when the medium is released after the processing of the process using the medium is completed. Explain the operation of the example.

(媒体割り当て処理) プロセスから媒体割り当て要求が発行されると、割り当
て制御手段4は先ず第3図のステップ301で、要求プ
ロセスのプロセス隘、処理優先度および割り当て要求媒
体寛をプロセステーブル203の空きエントリにセット
し、セットしたエントリへのポインタを要求プロセスポ
インタ202にセットする。
(Medium Allocation Process) When a medium allocation request is issued from a process, the allocation control means 4 first determines the process size, processing priority, and allocation requested medium size of the requesting process in step 301 of FIG. 3 in the process table 203. A pointer to the set entry is set in the request process pointer 202.

次にステップ302でデータ入出力機構テーブル201
をサーチするためのカウンタNに初期値′″l”をセッ
トする。そしてステップ303でカウンタNがデータ入
出力機構テーブル201のエントリ数をオーバしている
か否かを判定し、オーバしていれば全てのデータ入出力
機構20.21が使用中であるのでステップ310以降
を実行し、オーバしていなければステップ304を実行
する。このステップ304では、データ入出力機構テー
ブル201のN番目のエントリが空きエントリか否か即
ちN番目のデータ入出力機構が空きか否かを判定し、空
いていればステップ305 、306を実行し、空いて
いなければステップ307を実行する。
Next, in step 302, the data input/output mechanism table 201
An initial value ``1'' is set in a counter N for searching. Then, in step 303, it is determined whether the counter N exceeds the number of entries in the data input/output mechanism table 201. If it does, all the data input/output mechanisms 20, 21 are in use, so step 310 and subsequent steps are performed. is executed, and if there is no overage, step 304 is executed. In this step 304, it is determined whether the Nth entry in the data input/output mechanism table 201 is a free entry, that is, whether the Nth data input/output mechanism is free. If it is free, steps 305 and 306 are executed. , if it is not vacant, step 307 is executed.

ステップ305で空きのデータ入出力機構があると判断
すると、ステップ305においてデータ入出力機構テー
ブル201のN番目のエントリに要求された媒体嵐、要
求プロセスの処理優先度および要求プロセスの各種情報
をセットしたプロセステーブル203のエントリへのポ
インタをセットした後、要求プロセスポインタ202を
空きにする。そして、ステップ306で要求媒体を媒体
自動装着機構19を使用して空きのデータ入出力機構に
装着して要求プロセスに割り当て、処理を終了する。
If it is determined in step 305 that there is a free data input/output mechanism, the requested medium storm, the processing priority of the requesting process, and various information of the requesting process are set in the Nth entry of the data input/output mechanism table 201 in step 305. After setting the pointer to the entry in the process table 203 that has been created, the request process pointer 202 is made vacant. Then, in step 306, the requested medium is loaded into a vacant data input/output mechanism using the automatic medium loading mechanism 19 and assigned to the requesting process, and the process ends.

一方、ステップ304でデータ入出力機構テーブル20
1のN番目のエントリが空きエントリでなかった場合、
そのデータ入出力機構に装着されている媒体が要求媒体
と同一か否かをステップ307で判定し、同一でなけれ
ばステップ308でカウンタNに“11を加算した後、
データ入出力機構テープル201の次のエントリのチェ
ックを行なうためステップ303に制御を戻す、また、
ステップ307で装着媒体と要求媒体とが同一であるこ
とを判定すると、ステップ309でその媒体を割り当て
ているプロセスの中でプロセステーブル203の最後に
ポイントされているプロセスエントリの次プロセスへの
ポインタに要求プロセスのプロセステーブル203のエ
ントリをセットし、データ入出力機構テーブル201の
N番目のエントリの処理優先度とその要求プロセスの処
理優先度を比較して処理優先度の高い方をデータ入出力
機構テーブル201のN番目のエントリにおける処理優
先度にセットした後、要求プロセスポインタ202を空
きにする。
On the other hand, in step 304, the data input/output mechanism table 20
If the Nth entry of 1 is not a free entry,
It is determined in step 307 whether the medium installed in the data input/output mechanism is the same as the requested medium, and if it is not the same, "11" is added to the counter N in step 308, and then
Control is returned to step 303 to check the next entry in the data input/output mechanism table 201, and
If it is determined in step 307 that the attached medium and the requested medium are the same, in step 309 the pointer to the next process of the process entry pointed to at the end of the process table 203 among the processes that are allocating the medium is Set the entry in the process table 203 for the requesting process, compare the processing priority of the Nth entry in the data input/output mechanism table 201 and the processing priority of the requesting process, and select the one with the higher processing priority as the data input/output mechanism. After setting the processing priority in the Nth entry of the table 201, the requesting process pointer 202 is made vacant.

他方、ステップ303でYESと判定された場合つまり
データ入出力機構テーブル201のエントリを全てサー
チした結果全てのデータ入出力機構に他のプロセスの使
用している媒体が装着され、且つ、装着されている媒体
が要求媒体と異なる場合(第1図および第2図(闇に例
示した状態がこの場合に相当する)、ステップ310で
再びカウンタNに初期値°1“をセットし、次のステッ
プ311でステップ303と同様にカウンタNがデータ
入出力機構テーブル201のエントリ数をオーバしたか
否かを判定し、オーバしていれば即ち後で述べるように
今回要求されたプロセスの処理優先度が現在処理中のプ
ロセスの優先度より高くないときは、その要求プロセス
の媒体割り当て要求は満たされなかったとして他プロセ
スの媒体解放を待たせるため、処理を終了する。この後
の処理としては例えばプロセステーブル203から今回
要求を出したプロセスの情報を消去し、また媒体割り当
て要求を拒否されたプロセスはその後再び要求を出す等
が考えられる。
On the other hand, if the determination in step 303 is YES, that is, as a result of searching all the entries in the data input/output mechanism table 201, all the data input/output mechanisms are loaded with media used by other processes, and the media used by other processes are loaded. If the current medium is different from the requested medium (the state illustrated in FIGS. 1 and 2 corresponds to this case), the counter N is again set to the initial value °1" in step 310, and the next step 311 Then, as in step 303, it is determined whether the counter N has exceeded the number of entries in the data input/output mechanism table 201, and if it has exceeded the number, that is, the processing priority of the currently requested process is currently set as described later. If the priority is not higher than that of the process currently being processed, the requesting process's medium allocation request is assumed not to have been satisfied, and the process is terminated in order to make other processes wait for the medium to be released.As for subsequent processing, for example, the process table It is conceivable that the information of the process that issued the current request is deleted from 203, and that the process whose medium allocation request was rejected issues the request again after that.

また、データ入出力機構テーブル201のエントリ数を
オーバしていないとステップ311で判定された場合、
ステップ312を実行してデータ入出力機構テーブル2
01のN番目のエントリの処理倭先度と要求プロセスの
処理優先度を比較し、N番目のエントリの処理優先度の
方が低くなければステップ313でカウンタNに1°を
加算した後、次のエントリのチェックを行なうためステ
ップ311に戻る・反対に要求プロセスの処理優先度の
方が高ければステップ314を実行し、データ入出力機
構テーブル201のN番目のエントリに記述された媒体
を割り当てられ使用している全てのプロセスを中断させ
、その中断時の各プロセスの状態を補助記憶装置6に一
時格納して中断するまでに実行していた処理を保証し、
格納したことを示すためにプロセステーブル203の対
応する一時格納フラグをONにセットし、対応するデー
タ入出力機構に装着されている媒体を媒体自動装着機構
19により取り外して要求プロセスが要求している媒体
を同じく媒体自動装着機構19によってそのデータ入出
力機構に装着すると共に、データ入出力機構テーブル2
01のN番目のエントリの内容を要求プロセスに合致し
た内容に変更し、要求プロセスポインタ202を空きに
して処理を終了する (このときの状態が第2図(bl
に相当する)。
Furthermore, if it is determined in step 311 that the number of entries in the data input/output mechanism table 201 has not been exceeded,
Execute step 312 to create data input/output mechanism table 2.
The processing priority of the Nth entry of 01 is compared with the processing priority of the requesting process, and if the processing priority of the Nth entry is lower, 1° is added to the counter N in step 313, and then the next Returns to step 311 to check the entry of the requesting process. Conversely, if the processing priority of the requesting process is higher, step 314 is executed and the medium described in the Nth entry of the data input/output mechanism table 201 is allocated. Suspend all the processes in use, temporarily store the status of each process at the time of suspension in the auxiliary storage device 6, and guarantee the processing that was being executed until the suspension,
In order to indicate that the data has been stored, the corresponding temporary storage flag in the process table 203 is set to ON, and the medium installed in the corresponding data input/output mechanism is removed by the medium automatic loading mechanism 19 as requested by the requesting process. Similarly, the medium is loaded into the data input/output mechanism by the medium automatic loading mechanism 19, and the data input/output mechanism table 2 is
The content of the Nth entry of 01 is changed to the content that matches the request process, the request process pointer 202 becomes empty, and the process ends (the state at this time is shown in Figure 2 (bl)
).

(媒体解放処理) 割り当てられた媒体を使用したプロセスから媒体解放要
求が発行されると、割り当て制御手段4は先ず第4図の
ステップ401でデータ入出力機構テーブル201をサ
ーチするためのカウンタNに初期値@l”をセットし、
次のステップ402でカウンタNの値がデータ入出力機
構テーブル201のエントリ数をオーバしたか否かを判
定し、オーバした場合は不正な解放要求とみなしてエラ
ーとする。
(Medium Release Process) When a medium release request is issued from a process using an allocated medium, the allocation control means 4 first sets the counter N for searching the data input/output mechanism table 201 in step 401 of FIG. Set the initial value @l”,
In the next step 402, it is determined whether the value of the counter N exceeds the number of entries in the data input/output mechanism table 201, and if it does, it is regarded as an invalid release request and an error occurs.

また、オーバしていない場合は、ステップ403でカウ
ンタNで指示されるデータ入出力機構に装着されている
媒体が解放要求の媒体であるか否かを判定し、解放要求
の媒体でなければステップ404でカウンタNにl”を
加算した後、次のエントリのチェックを行なうため制御
をステップ402に戻す6反対にデータ入出力機構に装
着されている媒体が解放要求の媒体であれば、ステップ
405にて次のプロセスエントリへのポインタがセット
されているか否かを判定し、セットされていなければ解
放要求を出したプロセス隘がプロセステーブル203に
格納されていないものとなるので、不正なプロセスから
の解放要求としてエラーとする。
If the number has not exceeded the limit, it is determined in step 403 whether or not the medium attached to the data input/output mechanism indicated by the counter N is the medium for which the release request has been made. If the medium is not the medium for which the release request has been made, step After adding l'' to the counter N in step 404, control is returned to step 402 to check the next entry.6 Conversely, if the medium attached to the data input/output mechanism is the medium for which release is requested, step 405 It is determined whether the pointer to the next process entry has been set or not. If it is not set, the process that issued the release request is not stored in the process table 203, so it can be removed from an unauthorized process. An error occurs as a release request.

ステップ405で次のプロセスエントリへのポインタが
セットされていると判定した場合、そのポインタの示す
プロセスエントリの内容をステップ406で取得し、ス
テップ407でそのプロセスエントリ内のプロセス隊が
解放要求のプロセス−と等しいか否かを判定し、等しく
なければ次のプロセスエントリのチェックを行なうため
制御をステップ405に戻す、また等しければ、ステッ
プ408でプロセステーブル203における媒体解放要
求のプロセスに対応するエントリを空きエントリにする
と共に、そのエントリをポイントしているポインタを次
のプロセスエントリへのポインタに変更する (次のプ
ロセスエントリがなければ空きポインタをセットする)
If it is determined in step 405 that the pointer to the next process entry has been set, the contents of the process entry indicated by the pointer are acquired in step 406, and in step 407 the process group in that process entry is set to the release requesting process. -, and if they are not equal, the control returns to step 405 to check the next process entry. If they are equal, in step 408, the entry corresponding to the process requesting the medium release in the process table 203 is determined. Make the entry free and change the pointer pointing to that entry to point to the next process entry (if there is no next process entry, set the free pointer)
.

更に、ステップ409においてその媒体を使用していた
プロセスが媒体解放要求を発行したプロセス1個の場合
はデータ入出力機構テーブル201のN番目のエントリ
を空きエントリにセットし、まだ他のプロセスがその媒
体を使用しているならば使用しているプロセスの中の最
高位の処理優先度(以下の説明の便宜上Udとする)を
データ入出力機構テーブル201のN番目のエントリに
おける処理優先度にセットする。
Furthermore, in step 409, if the process that was using the medium is the one that issued the medium release request, the Nth entry in the data input/output mechanism table 201 is set to a free entry, and other processes are still using the medium. If a medium is being used, set the highest processing priority (Ud for convenience of explanation below) among the processes using the medium to the processing priority of the Nth entry in the data input/output mechanism table 201. do.

次にステップ410でプロセステーブル203内をサー
チして補助記憶装置6に一時格納しているプロセスがあ
るか否かを判定し、なければ解放処理を終了する。しか
し、補助記憶装置6に一時格納しているプロセスが存在
すると(第2図(clがそのような場合に相当する)、
ステップ411で補助記憶装置6に一時格納しているプ
ロセスの中の最高位の処理優先度(以下の説明の便宜上
Upとする)を持つプロセスを探し、ステップ412で
データ入出力機構テーブル201のN番目のエントリが
空きか或いはN番目のエントリに設定された処理優先度
tJdが補助記憶装置6に一時格納しているプロセス中
の最高位の処理優先度Upより低いかどうかを判定する
。そして、第2図(clの場合のようにN番目のエント
リが空きであればステップ414を実行し、N番目のエ
ントリの処理優先度Udが補助記憶装置6に一時格納し
ているプロセスの最高位の処理優先度Upよりも低い場
合(Ud<Up)は、ステップ413を実行し、低くな
い場合(Ud≧Up)は処理を終了する。
Next, in step 410, the process table 203 is searched to determine whether there is a process temporarily stored in the auxiliary storage device 6, and if there is no process, the release process is terminated. However, if there is a process that temporarily stores data in the auxiliary storage device 6 (Fig. 2 (cl corresponds to such a case)),
In step 411, the process with the highest processing priority (up for convenience of explanation) among the processes temporarily stored in the auxiliary storage device 6 is searched, and in step 412, the It is determined whether the th entry is empty or whether the processing priority tJd set in the Nth entry is lower than the highest processing priority Up among the processes temporarily stored in the auxiliary storage device 6. If the Nth entry is empty as in the case of cl in FIG. If the processing priority is lower than the processing priority Up (Ud<Up), step 413 is executed, and if it is not lower (Ud≧Up), the processing is ended.

ステップ413では、解放要求のあった媒体を媒体自動
装着機構19によりデータ入出力機構から取り外すと共
にその媒体を使用しているプロセスの実行を中断させそ
の状態を補助記憶装置6に一時格納する。
In step 413, the medium for which the release request has been requested is removed from the data input/output mechanism by the automatic medium loading mechanism 19, the execution of the process using the medium is interrupted, and its state is temporarily stored in the auxiliary storage device 6.

ステップ414では、補助記憶装置6に一時格納してい
たプロセスおよびそのプロセスと同一の媒体を使用して
いたプロセスを補助記憶装置6から取り出すと共に使用
していた媒体を媒体自動装着機構19を使用してデータ
入出力機構に装着させ、そのプロセスの処理を再開して
解放処理を終了する。
In step 414, the process that was temporarily stored in the auxiliary storage device 6 and the process that was using the same medium as that process are taken out from the auxiliary storage device 6, and the medium that was being used is removed using the automatic medium loading mechanism 19. and attaches it to the data input/output mechanism, restarts the process, and completes the release process.

以上本発明の実施例について説明したが、本発明は以上
の実施例にのみ限定されずその他各種の付加変更が可能
である0例えば以上の実施例では、一つのプロセスは一
つの媒体しか使用しない例を示しているが、一つのプロ
セスが複数の媒体を同時に使用する場合も同様の流れで
実現できることは言うまでもない、また、媒体の取り外
し、装着が頻繁に行なわれることを防止するため、処理
優先度以外に、プロセスに媒体を割り当てていた時間な
ども判定項目に追加する等は自由である。
Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various other additions and changes are possible.For example, in the above embodiments, one process uses only one medium. Although an example is shown, it goes without saying that even if one process uses multiple media at the same time, it can be realized in the same way. In addition to the time, the time during which the medium was allocated to the process can also be freely added to the judgment items.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、各プロセスに処理優先
度を持たせ、媒体の割り当てを要求するプロセスの処理
優先度と既割り当て済プロセスの処理優先度との比較結
果を考慮して、既割り当て済プロセスの中断による空き
データ入出力機構の確保を行ない、処理優先度の低いプ
ロセスによって処理優先度の高いプロセスが媒体の割り
当てを長く待たされることがないようにしたものであり
、各プロセスの処理優先度に合った効果的な割り当て制
御が自動的に行なえるという効果がある。また、中断せ
しめられた処理優先度の低いプロセスは、そのプロセス
が要求していた媒体が割り当て可能な状態になったとき
その中断直後の状態から処理が再開されるので、処理を
最初からやり直すという無駄を省くことができるという
効果もある。
As explained above, the present invention assigns a processing priority to each process and considers the comparison result between the processing priority of the process requesting medium allocation and the processing priority of the already allocated process. This system secures a free data input/output mechanism by suspending an allocated process, and prevents a process with a high processing priority from waiting for a long time for media allocation due to a process with a low processing priority. This has the advantage that effective allocation control matching the processing priority can be automatically performed. In addition, for an interrupted process with a low processing priority, when the medium requested by that process becomes available for allocation, processing will be resumed from the state immediately after the interruption, so the process will be restarted from the beginning. It also has the effect of reducing waste.

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

第1図は本発明の実施例のブロック図、第2図は管理テ
ーブル5の内容とその変更状況を示す図、 第3図は割り当て制御手段4の媒体割り当て処理例の流
れ図および、 第4図は割り当て制御手段4の媒体解放処理例の流れ図
である。 図において、 l・・・複数媒体を収納す  20.21・・・データ
人出力るデータ記録装置      機構 4・・・割り当て制御手段  31〜35・・・プロセ
ス5・・・管理テーブル    201・・・データ人
出力機6・・・補助記憶装置       構テーブル
10・・・媒体格納部     202・・・要求プロ
セスボ11〜18・・・媒体(データ     インク
記録媒体)203・・・プロセステープ19・・・媒体
自動装着機構     ル不発明の1i″苑例のブロッ
ク図 第1図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing the contents of the management table 5 and its change status, FIG. 3 is a flowchart of an example of medium allocation processing by the allocation control means 4, and FIG. is a flowchart of an example of medium release processing by the allocation control means 4. In the figure, l...Accommodates multiple media 20.21...Data recording device for outputting data Mechanism 4...Allocation control means 31-35...Process 5...Management table 201... Data output device 6...Auxiliary storage device Structure table 10...Medium storage section 202...Request process buttons 11-18...Medium (data ink recording medium) 203...Process tape 19...Medium Figure 1: Block diagram of automatic mounting mechanism

Claims (1)

【特許請求の範囲】 複数のデータ記録媒体を収納し、該収納しているデータ
記録媒体の数より少ない数のデータ入出力機構と、任意
のデータ記録媒体の前記データ入出力機構への装着およ
び装着されたデータ記録媒体の前記データ入出力機構か
らの取り外しを行なう媒体自動装着機構とを有する複数
媒体収納型データ記録装置の媒体割り当て制御方式にお
いて、前記データ記録媒体の割り当て、解放を要求する
各プロセスに処理優先度を持たせると共に、前記プロセ
スからの前記データ記録媒体の割り当て、解放の要求を
処理する割り当て制御手段と、該割り当て制御手段が割
り当て制御に必要な情報を格納して管理する管理テーブ
ルと、 プロセスの中断状態を格納する補助記憶手段とを備え、 前記割り当て制御手段は、 前記データ入出力媒体に空きがないときに前記データ入
出力媒体にセットされていないデータ記録媒体に対する
割り当て要求をプロセスから受けた場合、該プロセスの
処理優先度とデータ記録媒体を現在使用中の他プロセス
の処理優先度との比較結果を考慮して今回の割り当て要
求の実行可否および置換すべきデータ記録媒体を決定し
、実行可と決定したときは前記決定した置換すべきデー
タ記録媒体を使用中のプロセスを中断させて前記補助記
憶装置にその中断状態を格納すると共に前記置換すべき
データ記録媒体を前記今回の割り当て要求プロセスが要
求するデータ記録媒体に前記媒体自動装着機構によって
交換することにより今回割り当て要求を出したプロセス
に対しデータ記録媒体を割り当て、且つ、 前記補助記憶装置に格納されたプロセスを、その後前記
データ入出力機構に空きが生じたとき或いはそのプロセ
スの処理優先度と既割り当てプロセスの処理優先度との
比較結果に基づいて新たに中断すべきプロセスを決定し
たときに、前記補助記憶装置より取出してデータ記録媒
体の割り当てを行ない、中断直後の状態からそのプロセ
スの処理を再開させることを特徴とする複数媒体収納型
データ記録装置の媒体割り当て制御方式。
[Scope of Claims] Storing a plurality of data recording media, a data input/output mechanism whose number is smaller than the number of stored data recording media, and mounting of an arbitrary data recording medium to the data input/output mechanism; In a medium allocation control method for a multi-media storage type data recording device having a medium automatic loading mechanism that removes a loaded data recording medium from the data input/output mechanism, Allocation control means for giving a processing priority to a process and processing requests for allocation and release of the data recording medium from the process; and management for storing and managing information necessary for the allocation control by the allocation control means. The allocation control means includes a table and auxiliary storage means for storing a process interruption state, and the allocation control means requests allocation to a data recording medium that is not set in the data input/output medium when the data input/output medium has no free space. is received from a process, the processing priority of the process and the processing priority of other processes that are currently using the data recording medium are taken into account to decide whether or not the current allocation request can be executed and the data recording medium to be replaced. When it is determined that the data storage medium to be replaced is executable, the process that is currently using the data recording medium to be replaced is interrupted, the interrupted state is stored in the auxiliary storage device, and the data recording medium to be replaced is replaced by the data recording medium to be replaced. Allocating a data recording medium to the process that issued the current allocation request by replacing the data recording medium requested by the current allocation requesting process with the data recording medium requested by the current allocation requesting process, and the process stored in the auxiliary storage device; Thereafter, when the data input/output mechanism becomes vacant, or when a new process to be suspended is determined based on the comparison result of the processing priority of that process and the processing priority of the already allocated process, the auxiliary storage device 1. A medium allocation control method for a multi-media storage type data recording device, characterized in that the process is restarted from the state immediately after the interruption by extracting the data from the storage medium and allocating the data recording medium.
JP62129463A 1987-05-26 1987-05-26 Control system for medium assignment of plural medium containing type data recorder Pending JPS63292456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62129463A JPS63292456A (en) 1987-05-26 1987-05-26 Control system for medium assignment of plural medium containing type data recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62129463A JPS63292456A (en) 1987-05-26 1987-05-26 Control system for medium assignment of plural medium containing type data recorder

Publications (1)

Publication Number Publication Date
JPS63292456A true JPS63292456A (en) 1988-11-29

Family

ID=15010117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62129463A Pending JPS63292456A (en) 1987-05-26 1987-05-26 Control system for medium assignment of plural medium containing type data recorder

Country Status (1)

Country Link
JP (1) JPS63292456A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0370045A (en) * 1989-08-08 1991-03-26 Nec Corp Optimum file allocation position decision system
JPH05158769A (en) * 1991-12-05 1993-06-25 Victor Co Of Japan Ltd File system
JPH07129452A (en) * 1993-10-28 1995-05-19 Nec Corp Exclusive control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0370045A (en) * 1989-08-08 1991-03-26 Nec Corp Optimum file allocation position decision system
JPH05158769A (en) * 1991-12-05 1993-06-25 Victor Co Of Japan Ltd File system
JPH07129452A (en) * 1993-10-28 1995-05-19 Nec Corp Exclusive control system

Similar Documents

Publication Publication Date Title
EP0150705B1 (en) Data storage hierarchy and its method of operation
US7299468B2 (en) Management of virtual machines to utilize shared resources
US5333315A (en) System of device independent file directories using a tag between the directories and file descriptors that migrate with the files
KR100463235B1 (en) Method for reserving resources
JP2004326755A (en) Management of dispatching function in virtual computer environment
EP0747832A2 (en) Customer information control system and method in a loosely coupled parallel processing environment
US7770177B2 (en) System for memory reclamation based on thread entry and release request times
US8291426B2 (en) Memory allocators corresponding to processor resources
JPH04213129A (en) Memory control system and memory control method
JPH04242852A (en) Control mechanism and method of first-in first-out buffer queue for multiprocessing
JPS63292456A (en) Control system for medium assignment of plural medium containing type data recorder
JPH04314147A (en) Memory managing system
JP2006039942A (en) File management device in hierarchical storage system, and its file management method
JP3022829B2 (en) Automatic storage device allocation device
JP2900438B2 (en) File recall method
JP2001142723A (en) Resource allocating method, computer system, and recording medium
JPH0115899B2 (en)
JPS62287359A (en) Control system for simultaneous file access in loosely coupled multi-processor system
JPS62163154A (en) Virtual logic volume system
JP2871872B2 (en) Sys out spool control method
JP2009217357A (en) File space addition system, file space addition method and file space addition program
JPH0424828A (en) Multi-task control system
JPH0769845B2 (en) Job multiplicity management method for multi-host system
JPH02253447A (en) File recalling system
JPS6243738A (en) Control system for sharing and nonsharing of resource