JPH0298725A - Disk controller processing system - Google Patents

Disk controller processing system

Info

Publication number
JPH0298725A
JPH0298725A JP25110388A JP25110388A JPH0298725A JP H0298725 A JPH0298725 A JP H0298725A JP 25110388 A JP25110388 A JP 25110388A JP 25110388 A JP25110388 A JP 25110388A JP H0298725 A JPH0298725 A JP H0298725A
Authority
JP
Japan
Prior art keywords
task
disk
processing
disk switching
exchange
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
JP25110388A
Other languages
Japanese (ja)
Inventor
Toru Yamagishi
亨 山岸
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP25110388A priority Critical patent/JPH0298725A/en
Publication of JPH0298725A publication Critical patent/JPH0298725A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform another processing even when a disk switching processing is being performed and to simplify the processing of a CPU by separating a task for disk switching. CONSTITUTION:In the case of generating an ordinary task 30 by receiving an instruction from a host device 20, and also, generating disk switching while performing the processing based on the above task, a task 32 for disk switching is generated, and the task 32 for disk switching is executed preferentially than the ordinary task 30, then, the disk switching processing is performed. In other words, the disk switching processing is separated from the ordinary task 30, and it is processed as another task. In such a manner, it is possible to execute another instruction even when the disk switching processing is being performed, and to simplify the processing as a whole.

Description

【発明の詳細な説明】 〔産業上の利用分野] 本発明は、rIn気ディスク、光ディスク、光磁気ディ
スクなどの駆動手段ないしドライブに対して必要な処理
を行なうディスクコントローラにかかるものであり、特
にその処理方式の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a disk controller that performs necessary processing for a driving means or drive of an RIn air disk, an optical disk, a magneto-optical disk, etc. This paper relates to improvements in the processing method.

[従来の技術] ディスクコントローラとしては、上位装置からの命令に
応じてタスクを発生し、下位装置であるディスクドライ
ブに対してその命令を実行するものがある。
[Prior Art] Some disk controllers generate tasks in response to commands from higher-level devices and execute the commands to disk drives, which are lower-level devices.

第4図には、このようなディスクコントローラの一般的
な構成が示されている。同図において、ディスクコント
ローラlOは、CPU12゜ROMおよびRAMを含む
メモリ14.インターフェース16.18を各々有して
いる。
FIG. 4 shows a general configuration of such a disk controller. In the figure, the disk controller IO includes a CPU 12, a memory 14 including a ROM and a RAM. Each has an interface 16.18.

これらのうち、CPU12は、この装置の制御を行なう
ものである。メモリ14は、cpu t 2のプログラ
ムを格納するROM及び動作中に使用するRAMである
。また、インターフェース16は、CPU12からの命
令を受けて上位装置20とのやりとりを行なう上位装置
20とのインターフェースであり、インターフェース1
8は。
Among these, the CPU 12 controls this device. The memory 14 is a ROM that stores programs for the CPU t 2 and a RAM that is used during operation. Further, the interface 16 is an interface with the host device 20 that receives commands from the CPU 12 and communicates with the host device 20.
8 is.

CPU 12からの命令を受けて下位装置22とのやり
とりを行なう下位装置22とのインターフェースである
This is an interface with the lower device 22 that receives instructions from the CPU 12 and communicates with the lower device 22.

次に、以上のようなディスクコントローラlOにおいて
上位装置20から命令を受けたときの動作を、第5図の
タスクの経時動作説明図および第6図のフローチャート
を各々参照しながら説明する。
Next, the operation of the disk controller IO as described above when receiving an instruction from the host device 20 will be described with reference to the diagram for explaining the temporal operation of tasks in FIG. 5 and the flowchart in FIG. 6, respectively.

まず、ディスクコントローラlOは、上位装置20から
実行すべき命令を受は取る。これによって、第6図のフ
ローの動作が開始される(同図ステップS1参照)、そ
して、このとき、第5図TAに示すように、上位装置2
0からの前記命令を処理するためのタスク24が開始さ
れる6次に、第5図のTB、第6図のステップS2に各
々示すように、下位装置22に対する命令の実行が行な
われる。
First, the disk controller IO receives and receives instructions to be executed from the host device 20. As a result, the operation of the flow shown in FIG. 6 is started (see step S1 in the same figure), and at this time, as shown in FIG.
A task 24 for processing the instruction from step 0 is started.6 Next, the instruction to the lower device 22 is executed, as shown at TB in FIG. 5 and step S2 in FIG. 6, respectively.

次に、第6図のステップS3において、ディスク交換が
発生したかどうかが調べられる。ここで、ディスクの交
換とは、ディスクの取り出し。
Next, in step S3 of FIG. 6, it is checked whether a disk exchange has occurred. Here, replacing the disk means removing the disk.

ディスクの挿入のうちのいずれかを含む動作である。そ
の結果、ディスク交換が発生していない場合は、終了し
て第6図のステップS4に進む。
The operation includes either inserting a disc. As a result, if no disk exchange has occurred, the process ends and the process proceeds to step S4 in FIG. 6.

他方、ディスク交換が発生した場合は、第6図のステッ
プS5に進む、これは、第5図ではTCの時点に該当し
、これに続いてTDに示すように、ディスク交換処理が
開始される。ディスク交換処理とは、ディスク固有のセ
クタの構成や、代替処理のデータをディスクから読み込
む処理や、コントローラの中のディスクに関する変数の
設定や、キャッシュメモリの無効化等の処理のことであ
る。
On the other hand, if a disk exchange has occurred, the process proceeds to step S5 in FIG. 6, which corresponds to the time point TC in FIG. 5, and subsequently, the disk exchange process is started as shown at TD. . Disk replacement processing refers to processing such as configuring disk-specific sectors, reading data for alternative processing from the disk, setting disk-related variables in the controller, and invalidating cache memory.

このディスク交換処理が終了すると、第5図TE、第6
図ステップS4に各々示すように動作が終了し、タスク
2・4は消滅する。そして、必要があれば、次のタスク
が上述したように実行される。
When this disk exchange process is completed, the TE in FIG.
The operations are completed as shown in step S4 in the figure, and tasks 2 and 4 disappear. Then, if necessary, the next task is performed as described above.

[発明が解決しようとする課題1 このように従来例では、第5図に矢印FAで示すように
、一つのタスク24ですべでの処理、特にディスク交換
処理26も行なわれるので、その実行中に他の処理を行
なうことができない1例えば、第5図に矢印FBで示す
ように、上位装置20から他の命令が来たときにそれを
受は付けることができない、このため、タスク24の動
作の間上位装置20を待たせることになり、その間上位
装置20の処理が停滞してしまうこととなる。
[Problem to be Solved by the Invention 1] In this way, in the conventional example, as shown by the arrow FA in FIG. For example, as shown by the arrow FB in FIG. 5, when another command comes from the host device 20, it cannot be accepted. The host device 20 will be forced to wait during the operation, and the processing of the host device 20 will be stagnant during that time.

また、多数ある命令のそれぞれに対して、ディスク交換
時の処理を行なったあと、元の処理に戻らねばならない
ので、複雑な処理を行なわねばならなかったという不都
合もある。
In addition, it is necessary to perform disk exchange processing for each of a large number of instructions and then return to the original processing, resulting in the inconvenience of having to perform complicated processing.

本発明は、かかる点に鑑みてなされたもので、ディスク
交換処理中であっても他の命令の実行を行なうことがで
き、また処理全体の簡略化を図ることができるディスク
コントローラの処理方式を提供することを、その目的と
するものである。
The present invention has been made in view of the above problems, and provides a processing method for a disk controller that allows execution of other commands even during disk replacement processing and that simplifies the overall processing. Its purpose is to provide.

[課題を解決するための手段] 本発明は、上位装置からの命令に応じてタスクを発生し
、下位装置であるディスクドライブに対し命令を実行す
るディスクコントローラの処理方式において:前記上位
装置より命令を受けて通常のタスクを発生するとともに
、これに基づく前記下位装置での処理中にディスク交換
が発生した場合に、ディスク交換用のタスクを発生し:
このディスク交換用のタスクを前記通常のタスクよりも
優先的に実行して、ディスク交換時の処理を行なうこと
を特徴とするものである。
[Means for Solving the Problems] The present invention provides a processing method for a disk controller that generates a task in response to a command from a higher-level device and executes the command to a disk drive that is a lower-level device. In response to this, a normal task is generated, and if a disk exchange occurs during processing in the lower device based on this, a task for disk exchange is generated:
The present invention is characterized in that this task for disk exchange is executed with priority over the normal task to perform processing at the time of disk exchange.

[作用] 本発明によれば、通常のタスクの処理中に下位装置でデ
ィスク交換が発生したときは、まず、ディスク交換用の
タスクが発生する。そして、更に、このディスク交換用
のタスクを優先的に処理するマルチタスク処理が行なわ
れる。すなわち、ディスク交換用の処理は1通常のタス
クから分離され、別個のタスクとして処理される。
[Operation] According to the present invention, when a disk exchange occurs in a lower-level device during processing of a normal task, a task for disk exchange is first generated. Furthermore, multitasking processing is performed in which this disk replacement task is processed preferentially. That is, the process for disk replacement is separated from one normal task and processed as a separate task.

[実施例] 以下、本発明の実施例について、添付図面を参照しなが
ら説明する。この実施例においては、上述したcpu 
l 2に、ディスク交換用タスク発生手段とディスク交
換用タスク優先処理手段とがソフト的に設けられる。そ
して、これらによって、以下に説明する動作が行なわれ
るようになっている。
[Examples] Examples of the present invention will be described below with reference to the accompanying drawings. In this embodiment, the above-mentioned cpu
12 is provided with software for disk replacement task generation means and disk replacement task priority processing means. These operations allow the operations described below to be performed.

第1図には1本発明方式の一実施例におけるタスクの経
時的動作が示されており、第2図及び第3図には動作の
フローチャートが示されている。
FIG. 1 shows the chronological operation of a task in one embodiment of the method of the present invention, and FIGS. 2 and 3 show flowcharts of the operation.

本実施例では、第1図に示すように、通常の命令のタス
ク30の他にディスク交換用のタスク32による処理が
行なわれるようになっている。
In this embodiment, as shown in FIG. 1, in addition to the normal command task 30, a task 32 for disk replacement is performed.

いわゆるマルチタスク処理である8通常の命令のタスク
30の処理は第2図に示されており、ディスク交換用の
タスク32の処理は第3図に示されている。
Processing of a task 30 of eight normal instructions, which is so-called multitasking processing, is shown in FIG. 2, and processing of a task 32 for disk replacement is shown in FIG.

これらの図において、まず、ディスクコントローラ10
が上位装置20から命令を受けると。
In these figures, first, the disk controller 10
receives a command from the host device 20.

第2図のステップSA、第1図のTAに各々示すように
、通常の命令のタスク30の動作が開始される。そして
、第2図のステップSBに示すように、下位装置22に
対する命令の実行が行なわれる。これが、第1図のTB
に相当する。
As shown in step SA in FIG. 2 and TA in FIG. 1, the operation of the normal instruction task 30 is started. Then, as shown in step SB in FIG. 2, the command to the lower-order device 22 is executed. This is the TB in Figure 1.
corresponds to

以上の動作の後、ディスクコントローラ10では、下位
袋W122からディスク交換があったかどうかが調べら
れる(第2図ステップSC参照)。
After the above operations, the disk controller 10 checks whether a disk has been replaced from the lower bag W122 (see step SC in FIG. 2).

その結果、ディスク交換が発生していない場合は、同図
にステップSDで示すように動作が終了することとなる
As a result, if no disk exchange has occurred, the operation ends as shown in step SD in the figure.

これに対し、第1図TCに示すようにディスク交換が発
生した場合は、次のステップSEの処理が行なわれる。
On the other hand, if disk replacement occurs as shown in FIG. 1 TC, the next step SE is performed.

すなわち、ディスクコトローラ10において、第1図T
Dに示すようにディスク交換用のタスク32の発生が行
なわれる。ここからは1通常の命令のタスク30とディ
スク交換用のタスク32の2つのタスクが各々存在する
ことになる。
That is, in the disk controller 10, T in FIG.
As shown in D, a task 32 for disk replacement is generated. From this point on, there will be two tasks, a task 30 for one normal instruction and a task 32 for disk replacement.

ところが、ディスクコントローラ10のCPU12では
、タスクの実行の優先順位を、ディスク交換用のタスク
32 〉通常の命令のタスク30 としている、このため、ディスク交換用のタスク32が
発生すると1通常の命令のタスク30は実行されずにベ
ンディングされ、ディスク交換用のタスク32が実行さ
れる。
However, the CPU 12 of the disk controller 10 prioritizes the execution of tasks as follows: task 32 for disk replacement > task 30 for normal instructions. Therefore, when task 32 for disk replacement occurs, one normal instruction is Task 30 is bent without being executed, and task 32 for disk replacement is executed.

次に、ディスク交換用のタスク32が実行され始めると
(第1図TEI&照)、第2図ではステップSFの「N
O」のループの動作が行なわれ、第3図の動作がステッ
プSGに示すように開始される。そして、同図ステップ
SHに示すように、ディスク交換時の処理が行なわれる
Next, when the task 32 for disk replacement starts to be executed (TEI & reference in FIG. 1), in FIG.
A loop operation of "O" is performed, and the operation of FIG. 3 is started as shown in step SG. Then, as shown in step SH in the same figure, processing at the time of disk exchange is performed.

そして、同図ステップS1.第1図TFに各々示すよう
に、ディスク交換処理が終了すると、この時点でディス
ク交換用のタスク32は消滅することとなる。このため
、再び通常の命令のタスク30の実行が開始される。す
なわち、第2図のステップSFにおけるrNoJのルー
プからrYESJの方に移行し、同図ステップSD及び
第1図TGに示すように、すべての処理が終了する。
Then, step S1 in the figure. As shown in FIG. 1TF, when the disk exchange process is completed, the disk exchange task 32 disappears at this point. Therefore, execution of the normal instruction task 30 is started again. That is, the process moves from the rNoJ loop in step SF in FIG. 2 to rYESJ, and all processing ends as shown in step SD in the same figure and TG in FIG. 1.

以上のように1本実施例では、第1図に矢印FCで示す
ように1通常の命令のタスク30の処理中にディスク交
換が発生したときはディスク交換用のタスク32を発生
し、更にこのタスク32を優先するマルチタスク処理が
行なわれる。
As described above, in this embodiment, as shown by the arrow FC in FIG. Multitask processing is performed giving priority to task 32.

すなわち、ディスク交換用の処理を通常の命令のタスク
から分離し、これが別個のタスクとして処理される。
That is, the process for disk replacement is separated from the normal instruction task, and is processed as a separate task.

[発明の効果] 以上説明したように1本発明によれば、デイクス交換用
のタスクを分離することとしたので、ディスク交換処理
中であっても他の処理を行なうことができるとともに、
どの命令に対しても同一のディスク交換用のタスクを作
成すればよいので、CPUの処理が簡素化されるという
効果がある。
[Effects of the Invention] As explained above, according to the present invention, since the disk exchange task is separated, other processes can be performed even during disk exchange processing, and
Since it is sufficient to create the same disk replacement task for any command, there is an effect that the CPU processing is simplified.

例えば、ディスク交換時に上位装置から新たな命令が来
たとき、従来の方法では1通常の処理時とディスク交換
時の両方において新たな命令に対応しなければならない
が、本発明によれば1個々の処理を独立化したので、C
PUの処理が簡略化され、処理速度が向上する。
For example, when a new command comes from a host device when a disk is replaced, in the conventional method, the new command must be handled both during normal processing and when the disk is replaced, but according to the present invention, it is necessary to respond to the new command individually. Since the processing of C
PU processing is simplified and processing speed is improved.

また、従来技術によれば各命令毎にディスク交換時の処
理を用意しなければならなかったのを。
Furthermore, according to the prior art, it was necessary to prepare a disk replacement process for each command.

本発明では統一的に一つのタスクで処理できるので、プ
ログラムの容量を低減することができる。
According to the present invention, since processing can be performed in a unified manner with one task, the capacity of the program can be reduced.

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

第1図は本発明方式の一実施例のディスクコントローラ
におけるタスクの動作を示す説明図、第2図及び第3図
は第1図の実施例の動作のフローチャート、第4図はデ
ィスクコントローラの一般的な構成を示すブロック図、
第5図は従来例のタスクの動作を示す説明図、第6図は
第5図の従来例の動作のフローチャートである。 lO・・・ディスクコントローラ、12・・・CPU、
14・・・メモリ、16.18・・・インターフェース
、20・・・上位装置、22・・・下位装置、30・・
・通常の命令のタスク、32・・・ディスク交換用のタ
スク2特許出願人  日本ビクター株式会社 代表者  垣 木 邦 夫 第 図 第 図
FIG. 1 is an explanatory diagram showing the operation of tasks in a disk controller according to an embodiment of the present invention, FIGS. 2 and 3 are flowcharts of the operation of the embodiment of FIG. 1, and FIG. 4 is a general diagram of a disk controller. A block diagram showing the configuration of
FIG. 5 is an explanatory diagram showing the operation of a task in the conventional example, and FIG. 6 is a flowchart of the operation in the conventional example shown in FIG. lO...Disk controller, 12...CPU,
14...Memory, 16.18...Interface, 20...Upper device, 22...Lower device, 30...
・Normal command task, 32...Task 2 for disk replacement Patent applicant Kunio Kakiki Representative of Victor Japan Co., Ltd.

Claims (1)

【特許請求の範囲】 上位装置からの命令に応じてタスクを発生し、下位装置
であるディスクドライブに対し命令を実行するディスク
コントローラの処理方式において、 前記上位装置より命令を受けて通常のタスクを発生する
とともに、これに基づく前記下位装置での処理中にディ
スク交換が発生した場合に、ディスク交換用のタスクを
発生し、 このディスク交換用のタスクを前記通常のタスクよりも
優先的に実行して、ディスク交換時の処理を行なうこと
を特徴とするディスクコントローラの処理方式。
[Scope of Claims] In a processing method of a disk controller that generates a task in response to an instruction from a higher-level device and executes the instruction to a disk drive that is a lower-level device, When a disk exchange occurs and a disk exchange occurs during processing in the lower device based on this, a task for disk exchange is generated, and this task for disk exchange is executed with priority over the normal task. A processing method for a disk controller characterized in that processing is performed when a disk is replaced.
JP25110388A 1988-10-05 1988-10-05 Disk controller processing system Pending JPH0298725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25110388A JPH0298725A (en) 1988-10-05 1988-10-05 Disk controller processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25110388A JPH0298725A (en) 1988-10-05 1988-10-05 Disk controller processing system

Publications (1)

Publication Number Publication Date
JPH0298725A true JPH0298725A (en) 1990-04-11

Family

ID=17217690

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25110388A Pending JPH0298725A (en) 1988-10-05 1988-10-05 Disk controller processing system

Country Status (1)

Country Link
JP (1) JPH0298725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292443B1 (en) * 1995-08-29 2001-09-18 Kabushiki Kaisha Toshiba Information recording apparatus and method for playing a plurality of information recording mediums

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292443B1 (en) * 1995-08-29 2001-09-18 Kabushiki Kaisha Toshiba Information recording apparatus and method for playing a plurality of information recording mediums

Similar Documents

Publication Publication Date Title
JPH0895821A (en) Method and device for multitask program debugging
JPH0298725A (en) Disk controller processing system
JPH09128255A (en) Programable logic controller
JPH0438513A (en) Disk controller
JP3838124B2 (en) Program execution method and program development support apparatus
JPH10143376A (en) Information processing device
JPS62174832A (en) Information processor
JP2658699B2 (en) Method of managing device under test of input / output device test program
JPS62154018A (en) Semiconductor disk device
JPS60204034A (en) Rewriting controlling system of control storage device
JPH04347704A (en) Driving controller
JPH02127732A (en) Job control system
JPH04160408A (en) Numerical controller
JPH04322332A (en) Program execution control system
JPS6310247A (en) Tracing circuit
JPS6275734A (en) Emulation system
JPH01183758A (en) Deciding system for program priority
JPS62140145A (en) Virtual computer system
JPS6180446A (en) Recognition system for constitution of device
JPH02173983A (en) Alternative processing method for disk controller
JPH0195334A (en) Multi-task address trap system
JPS61156307A (en) Sequence controller
JPH0487760A (en) Transfer method for machining program in dnc system
JPH01185729A (en) Overlay structure program execution system
JPH0854908A (en) Programmable controller, user program switching device and method thereof