JP2673048B2 - Timeout monitoring processor - Google Patents

Timeout monitoring processor

Info

Publication number
JP2673048B2
JP2673048B2 JP3040887A JP4088791A JP2673048B2 JP 2673048 B2 JP2673048 B2 JP 2673048B2 JP 3040887 A JP3040887 A JP 3040887A JP 4088791 A JP4088791 A JP 4088791A JP 2673048 B2 JP2673048 B2 JP 2673048B2
Authority
JP
Japan
Prior art keywords
timer
time
monitoring
processing device
unit
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.)
Expired - Fee Related
Application number
JP3040887A
Other languages
Japanese (ja)
Other versions
JPH04257954A (en
Inventor
祥之 山田
聡 島
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP3040887A priority Critical patent/JP2673048B2/en
Publication of JPH04257954A publication Critical patent/JPH04257954A/en
Application granted granted Critical
Publication of JP2673048B2 publication Critical patent/JP2673048B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、タイムアウト監視処理
装置に関し、特に、SCSIに従うデータ処理装置にお
けるタイムアウト監視処理装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a timeout monitoring process.
The present invention relates to a device , and more particularly, to a timeout monitoring processing device in a SCSI-compliant data processing device.

【0002】コンピュータ処理システム等のデータ処理
装置においては、一般に、ある動作が予め定められた時
間内に実行終了したか否か(タイムアウトが発生したか
否か)の監視が行われる。そして、当該時間が経過して
も当然動作が終了していない場合、例えば所定の割込み
が発生し、所定の処理を行うようにされる。
In a data processing device such as a computer processing system, generally, it is monitored whether or not a certain operation is completed within a predetermined time (whether a timeout has occurred). If the operation has not ended even after the time has elapsed, for example, a predetermined interrupt is generated and a predetermined process is performed.

【0003】図4は、従来のSCSI(Small Computer
System Interface) に従う(採用する)データ処理装置
におけるタイムアウト監視処理装置を示す。このような
データ処理装置において、処理装置1とそのSCSI制
御部5を介して接続される入出力装置等の装置(SCS
I装置、以下、単に装置)10A、10Bについてのタ
イムアウト検出は、当該装置起動に対する時間監視によ
り行う。この装置10A、10Bや実行コマンドに種々
の相違があるため、時間監視は、実際に装置10A、1
0BとのSCSIプロトコルを実行するSCSI制御部
5ではなく、装置10A、10Bの各々に対応しその制
御を実行する装置制御部3A、3Bが行う。
FIG. 4 shows a conventional SCSI (Small Computer).
A timeout monitoring processing unit in a data processing unit conforming to (adopting) the System Interface is shown. In such a data processing device, a device such as an input / output device (SCS) connected to the processing device 1 via its SCSI control unit 5 is used.
The timeout detection for the I device (hereinafter, simply referred to as the device) 10A, 10B is performed by monitoring the time for starting the device. Since there are various differences between the devices 10A and 10B and the execution commands, the time monitoring is actually performed by the devices 10A and 1B.
The device control units 3A and 3B corresponding to each of the devices 10A and 10B and executing the control do not perform the SCSI control unit 5 that executes the SCSI protocol with 0B.

【0004】例えば、ユーザプログラム2Aがあるコマ
ンドにより装置制御部3Aを起動して装置10Aによる
ある動作(処理)の実行を依頼する。これに応じて、装
置制御部3Aは、SCSI制御部5を介して装置10A
を制御して当該動作を実行すると共に、時間監視を行
う。この時間監視において、コマンドによる起動から動
作の終了(の信号を受けとる)までが監視の対象とされ
る。
For example, the user program 2A activates the device control section 3A by a certain command and requests the device 10A to execute a certain operation (process). In response to this, the device control unit 3A causes the SCSI control unit 5 to operate the device 10A.
Is controlled to execute the operation and monitor the time. In this time monitoring, the monitoring is performed from the start by the command to the end of the operation (the signal is received).

【0005】[0005]

【発明が解決しようとする課題】図5は、従来技術の問
題点を示している。図5において、a乃至gは時刻を表
し、b=f、c=gである。また、時刻aから時刻bま
でを時間abということとする。
FIG. 5 shows the problems of the prior art. In FIG. 5, a to g represent time, and b = f and c = g. Further, the time a to the time b is referred to as time ab.

【0006】装置10Aについてみると、時刻aにおい
て、起動されて動作が開始され、また、時間監視も開始
される。ところが、時刻bにおいて、装置10Aの事情
により動作が一旦中断される場合がある。この場合、動
作は、実行可能となった時点、即ち、時刻cにおいて再
開され、その後時刻dで終了する。従って、時間bcに
おいては、実際の動作は行われていない。しかし、時間
監視の対象は、前述の如く起動から終了までであるの
で、この動作は、時間adを要したことになる。即ち、
装置制御部3Aは実際に装置10AとのSCSIプロト
コルを実行していないので、動作の中断を知り得ない。
このため、実際に動作していない時間bcも監視時間に
含まれ、適切な時間監視を行う(正しい監視時間を得
る)ことができなかった。
As for the device 10A, at time a, the device 10A is activated and started to operate, and time monitoring is also started. However, at time b, the operation may be temporarily suspended due to the circumstances of the device 10A. In this case, the operation is restarted at the time when it becomes feasible, that is, at time c, and then ends at time d. Therefore, no actual operation is performed at time bc. However, since the target of time monitoring is from the start to the end as described above, this operation requires time ad. That is,
Since the device control unit 3A is not actually executing the SCSI protocol with the device 10A, it cannot know the interruption of the operation.
For this reason, the time bc when it is not actually operating is included in the monitoring time, and it is not possible to perform appropriate time monitoring (obtain a correct monitoring time).

【0007】装置10Bについてみると、時刻eにおい
て、起動され、また、時間監視も開始される。ところ
が、この時点で装置10Aが動作を開始しているので、
装置10Bは動作を開始できない。即ち、SCSI制御
部5及びバスは装置制御部3Aによって装置10Aの動
作のために使用されているので、装置制御部10Bはこ
れらを使用できない。この後、時刻f(=b)におい
て、装置10Aの動作が中断すると、SCSI制御部5
が装置制御部3Bの要求に従った処理を実行する。即
ち、装置10Bの動作が開始され、その後時刻g(=
c)で終了する(装置10Aの動作の再開が可能とな
る)。この結果、この動作は、時間egを要したことに
なり、起動されたのに動作していない時間efをも監視
時間に含むので、適切な時間監視が行われているとは言
えない。
As for the apparatus 10B, at time e, the apparatus is started and the time monitoring is also started. However, since the device 10A has started to operate at this point,
Device 10B cannot start operation. That is, since the SCSI control unit 5 and the bus are used by the device control unit 3A for the operation of the device 10A, the device control unit 10B cannot use them. After that, when the operation of the device 10A is interrupted at time f (= b), the SCSI control unit 5
Performs processing according to the request of the device control unit 3B. That is, the operation of the device 10B is started, and then the time g (=
The procedure ends in c) (the operation of the device 10A can be restarted). As a result, this operation requires the time eg, and the monitoring time includes the time ef that is activated but not operating, so it cannot be said that appropriate time monitoring is being performed.

【0008】なお、以上の問題は、SCSIに従うデー
タ処理装置においてのみでなく、これと同様の構成を有
する種々のデータ処理装置においても同様に生ずるもの
である。
The above problems occur not only in the data processing device complying with SCSI, but also in various data processing devices having a similar configuration.

【0009】本発明は、装置の動作状態を考慮した適切
な時間監視が可能なタイムアウト監視処理装置を提供す
ることを目的とする。
An object of the present invention is to provide a time-out monitoring processing device capable of performing an appropriate time monitoring in consideration of the operating state of the device .

【0010】[0010]

【課題を解決するための手段】図1は、本発明の原理構
成図であり、本発明によるデータ処理装置を示す。この
データ処理装置は、1本のバスを介して互いに接続され
た処理装置1と、複数の入出力装置の如き装置10A、
10Bとからなる。処理装置1は、CPU(中央処理装
置)及びメモリからなり、複数のユーザプログラム2
A、2B、複数の装置制御部3A、3B及びインタフェ
ース制御手段5を備える。装置制御部3A、3Bは、各
々が装置10A、10Bに対応し、ユーザプログラム2
A又は2Bから起動された場合に対応する装置10A、
10Bを制御して所定の動作(処理)を行わせる。イン
タフェース制御手段5は、処理装置1と複数の装置10
A、10Bとの間のインタフェースの制御を行う。
FIG. 1 is a block diagram showing the principle of the present invention, and shows a data processing apparatus according to the present invention. This data processing device includes a processing device 1 connected to each other via a single bus, and a device 10A such as a plurality of input / output devices.
It consists of 10B. The processing device 1 is composed of a CPU (central processing unit) and a memory, and has a plurality of user programs 2
A, 2B, a plurality of device control sections 3A, 3B and an interface control means 5. The device control units 3A and 3B respectively correspond to the devices 10A and 10B, and the user program 2
A device 10A corresponding to the case of being activated from A or 2B,
10B is controlled to perform a predetermined operation (process). The interface control means 5 includes a processing device 1 and a plurality of devices 10.
It controls the interface between A and 10B.

【0011】このインタフェース制御手段5には、動作
監視部7、タイマ計算部8及びタイマ設定部9が設けら
れる。タイマ設定部9は、タイマを有し、その値を設定
する。動作監視部7は、装置10A、10Bの各々の動
作状態を監視する。この監視の結果に基づいて、タイマ
計算部8は、タイマの値を求め、これをタイマ設定部9
にタイマの値として設定させる。
The interface control means 5 is provided with an operation monitoring section 7, a timer calculation section 8 and a timer setting section 9. The timer setting unit 9 has a timer and sets its value. The operation monitoring unit 7 monitors the operation state of each of the devices 10A and 10B. Based on the result of this monitoring, the timer calculation unit 8 obtains the value of the timer, and this is calculated by the timer setting unit 9
To set as the timer value.

【0012】[0012]

【作用】 タイムアウト検出のための時間監視は、装
置制御部3A、3Bではなく、インタフェース制御手段
5が行う。このために、タイマ計算部8は、前記監視の
結果に基づいて、ユーザプログラム2A又は3Aから起
動された装置制御部3A、3Bに対応する装置10A、
10Bが起動されても動作していない場合に、タイマ設
定部9に対して、タイマの値を所定の値に設定させる。
例えば、起動されても動作していない期間だけタイマを
停止させる。
The time monitoring for time-out detection is performed by the interface control means 5, not by the device control units 3A and 3B. For this reason, the timer calculation unit 8 is configured to, based on the result of the monitoring, the device 10A corresponding to the device control unit 3A, 3B activated from the user program 2A or 3A,
When 10B is started and not operating, the timer setting unit 9 is caused to set the timer value to a predetermined value.
For example, the timer is stopped only during the period when it is started but not operating.

【0013】これにより、本発明による時間監視は、図
2に示す如くに行われる。図2は、図5に対比されるも
のであり、図5と同様の場合についての時間監視を示し
ている。装置10Aについてみると、装置10Aの事情
により動作が中断した時間bcの間だけ、タイマが停止
される。即ち、監視時間の進行が停止され、時間bcは
監視時間から除かれる。同様に、装置10Bについてみ
ると、起動されても動作を開始できなかった時間efの
間だけ、タイマが停止される。なお「動作が中断」と
は、例えば装置10Aからのデイスコネクト通知に対応
するものを表しており、装置10Aが入出力動作の実行
過程でSCSIバスと結合しての動作が不要となったと
きに実行中の入出力動作をデイスコネクトする動作を指
している。この動作により、SCSIバスの有効利用を
はかり、装置の同時動作を可能としている。
As a result, the time monitoring according to the present invention is performed as shown in FIG. FIG. 2 is contrasted with FIG. 5, and shows time monitoring for the same case as in FIG. Regarding the device 10A, the timer is stopped only during the time bc when the operation is interrupted due to the circumstances of the device 10A. That is, the progress of the monitoring time is stopped and the time bc is removed from the monitoring time. Similarly, regarding the device 10B, the timer is stopped only during the time ef in which the operation cannot be started even if the device 10B is started. In addition, "the operation is interrupted"
Corresponds to the device connect notification from the device 10A, for example.
The device 10A executes the input / output operation.
In the process, it became unnecessary to connect with the SCSI bus.
Operation to connect the I / O operation being executed
doing. This operation enables effective use of the SCSI bus.
It enables simultaneous operation of scales and devices.

【0014】以上によれば、装置10A、10Bにおけ
る各々の動作に要した時間は、各装置10A、10Bが
実際に動作していた時間とされるので、適切な時間監視
を行うことができる。
According to the above, since the time required for each operation in the devices 10A and 10B is the time when each device 10A, 10B was actually operating, it is possible to appropriately monitor the time.

【0015】[0015]

【実施例】図1において、処理装置1はcpu(中央処
理装置)とメモリとからなる。このメモリ上に、ユーザ
プログラム2A、2B、装置制御部3A、3Bを構成す
る装置制御プログラム、インタフェース制御手段5であ
るSCSI制御部を構成するSCSI制御プログラムが
存在する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In FIG. 1, a processing unit 1 comprises a cpu (central processing unit) and a memory. On this memory, there are user programs 2A and 2B, a device control program that constitutes the device control units 3A and 3B, and a SCSI control program that constitutes a SCSI control unit that is the interface control means 5.

【0016】ユーザ(アプリケーション)プログラム2
A、2Bは、所定のコマンドを所望の装置制御部3A、
3Bに発行してこれを起動し、所定の動作(処理)を依
頼する。例えば、装置10Aが入出力装置である場合、
ユーザプログラム2Aは、装置制御部3Aに対して入出
力コマンドを発行し、入出力動作を依頼する。
User (application) program 2
A and 2B send a predetermined command to the desired device controller 3A,
It is issued to 3B and activated, and a predetermined operation (processing) is requested. For example, when the device 10A is an input / output device,
The user program 2A issues an input / output command to the device control unit 3A and requests an input / output operation.

【0017】装置制御部3A、3Bは、あるコマンドに
より起動された場合、当該コマンド、即ち、当該コマン
ドにより実行される動作に対応するタイマ値を、各々の
レジスタ4A、4Bにセットする。レジスタ4A、4B
は、例えば、前記cpuの持つレジスタ又は前記メモリ
の所定領域である。タイマ値により、その動作が実行終
了すべき時間が定められる。
When activated by a certain command, the device control sections 3A, 3B set the timer value corresponding to the command, that is, the operation executed by the command, in the registers 4A and 4B. Registers 4A, 4B
Is, for example, a register of the cpu or a predetermined area of the memory. The timer value defines the time when the operation should finish executing.

【0018】本実施例のデータ処理装置はSCSIに従
うので、インタフェース制御手段5は、SCSI制御部
(以下、SCSI制御部5)として構成される。SCS
I制御部5は、装置10A、10Bとの間のデータ送受
信のために、SCSIプロトコルを実行し、複数の装置
10A、10Bの接続された1本のバスを制御する。こ
のように、SCSIに従うデータ処理装置においては、
1本のバスに複数の装置10A、10Bが接続され、例
えば、一方の装置10Aがバスを使用した動作を行って
いる間、他方の装置10Bがバスを使用することはでき
ない。装置制御部3A、3Bは、SCSIに従うためS
CSI制御部5を介して装置10A、10Bを制御する
が、例えば、一方の装置制御部3Aが装置10Aを制御
している間、他方の装置制御部3Bは装置10Bを制御
できない。
Since the data processing apparatus of this embodiment complies with SCSI, the interface control means 5 is configured as a SCSI control unit (hereinafter, SCSI control unit 5). SCS
The I control unit 5 executes the SCSI protocol to transmit / receive data to / from the devices 10A and 10B, and controls one bus to which the plurality of devices 10A and 10B are connected. Thus, in the data processing device complying with SCSI,
A plurality of devices 10A and 10B are connected to one bus, and, for example, while one device 10A is operating using the bus, the other device 10B cannot use the bus. Since the device control units 3A and 3B comply with SCSI, S
Although the devices 10A and 10B are controlled via the CSI controller 5, for example, while one device controller 3A controls the device 10A, the other device controller 3B cannot control the device 10B.

【0019】SCSI制御部5はタイマ受信部6を持
つ。タイマ受信部6には、起動された装置制御部3A、
3Bによって、そのレジスタ4A、4B内のタイマ値
A、Bがその起動時にセットされる。このタイマ値は、
タイマ計算部8へ送られる。タイマ計算部8は、送られ
てきたタイマ値A、Bに対応する動作を行うべき装置1
0A、10Bが実際に動作しているか否かの監視を、動
作監視部7に依頼する。動作監視部7は、各装置10
A、10Bについて、動作の起動から終了までを監視
し、その結果をタイマ計算部8へ通知する。このため
に、例えば、動作監視部7は、各装置10A、10Bと
の間に、バスとは別の制御線を有する。
The SCSI controller 5 has a timer receiver 6. The timer receiving unit 6 includes the activated device control unit 3A,
3B causes the timer values A, B in its registers 4A, 4B to be set upon its activation. This timer value is
It is sent to the timer calculator 8. The timer calculation unit 8 is the device 1 that should perform the operation corresponding to the received timer values A and B.
The operation monitoring unit 7 is requested to monitor whether 0A and 10B are actually operating. The operation monitoring unit 7 includes each device 10
For A and 10B, the operation is monitored from the start to the end, and the result is notified to the timer calculation unit 8. For this reason, for example, the operation monitoring unit 7 has a control line different from the bus between each of the devices 10A and 10B.

【0020】例えば、装置10Aが実際に動作している
場合、この旨の通知を受けたタイマ計算部8は、対応す
るタイマ値Aをタイマ設定部9へ送り、タイマのスター
トを指示する。一方、装置10Aが動作しておらず、か
つ、他の処理待ちが無い場合、この旨の通知を動作監視
部7から受けたタイマ計算部8は、例えば、タイマ設定
部9へタイマの停止を指示する。このタイマ停止の後、
動作監視部7から動作再開の通知を受けたタイマ計算部
8は、タイマ設定部9へタイマの再スタートを指示す
る。
For example, when the device 10A is actually operating, the timer calculation unit 8 which has received the notification to this effect sends the corresponding timer value A to the timer setting unit 9 to instruct the start of the timer. On the other hand, when the device 10A is not operating and there is no other process waiting, the timer calculation unit 8 which has received the notification to this effect from the operation monitoring unit 7 causes the timer setting unit 9 to stop the timer, for example. Give instructions. After stopping this timer,
The timer calculation unit 8 which receives the notification of the operation restart from the operation monitoring unit 7 instructs the timer setting unit 9 to restart the timer.

【0021】タイマ設定部9は、タイマ計算部8から受
けたタイマ値をタイマにセットすると共に、スタート等
の指示に応じてタイマのスタート等を行う。
The timer setting unit 9 sets the timer value received from the timer calculation unit 8 in the timer and also starts the timer in response to an instruction such as start.

【0022】なお、この方法は、装置10Aが動作して
いない期間だけ、タイマを停止させることによって、監
視時間(タイマ値)を適正な値とするものであるが、逆
に、動作していない期間中もタイマを進行させ、この期
間に相当する時間だけタイマに加えるようにしてもよ
い。即ち、動作監視部7からの通知に基づき、タイマ計
算部8が、当該時間を求め、タイマの再スタート時にこ
の時間をタイマに加えるようにタイマ設定部9に指示す
る。これにより動作を終了すべき時間を、本来監視時間
に含めてはならない時間分だけ延長して、両者を相殺
し、正しいタイマ値を得ることができる。
In this method, the monitoring time (timer value) is set to an appropriate value by stopping the timer only while the apparatus 10A is not operating, but it is not operating. You may make it advance a timer also during a period and add it to a timer only for the time corresponding to this period. That is, based on the notification from the operation monitoring unit 7, the timer calculation unit 8 obtains the time, and instructs the timer setting unit 9 to add this time to the timer when the timer is restarted. As a result, the time when the operation should be ended is extended by the time that should not be included in the monitoring time, and the two can be offset to obtain the correct timer value.

【0023】図3は、タイムアウト監視処理フローであ
る。ステップ1において、例えば、ユーザプログラム2
Aにより装置制御部3Aが起動され装置10Aの制御の
ための処理をSCSI制御部5に要求する。これによ
り、動作監視部7が装置10Aの監視を始め、レジスタ
4Aのタイマ値Aがタイマ受信部6に送られ、更にタイ
マ計算部8を介してタイマ設定部9のタイマに設定され
る。ステップ2において、SCSI制御部5は、自身が
他の処理中であるか否かを調べる。他の処理中である場
合、起動された装置制御部3Aからの処理要求を、処理
待ちの行列につなぎ、ステップ2をくり返す。他の処理
中でない場合、ステップ3において、更に、当該処理要
求が再開待ちをしていたものか否かを調べる。再開待ち
の場合、再開待ちのタイマを停止させる。再開待ちでな
い場合、ステップ4は実行されない。
FIG. 3 is a time-out monitoring processing flow. In step 1, for example, the user program 2
The device control unit 3A is activated by A and requests the SCSI control unit 5 to perform processing for controlling the device 10A. As a result, the operation monitoring unit 7 starts monitoring the device 10A, the timer value A of the register 4A is sent to the timer receiving unit 6, and the timer value of the timer setting unit 9 is set via the timer calculation unit 8. In step 2, the SCSI control unit 5 checks whether or not it is performing another process. If another process is in progress, the process request from the activated device control unit 3A is connected to the process waiting queue, and step 2 is repeated. If no other processing is being performed, it is further checked in step 3 whether or not the processing request is waiting for restart. When waiting for restart, stop the timer waiting for restart. If it is not waiting for resumption, step 4 is not executed.

【0024】ステップ5において、例えば、装置10A
での処理が開始される。ステップ6において、この処理
開始を動作監視部7からの通知で知ったタイマ計算部8
が、タイマ設定部9にタイマスタートを指示し、タイマ
がスタートする。そして、ステップ7において、例え
ば、装置10Aでの処理が実行中となる。この間、他の
装置10Bでの処理は実行できない。
In step 5, for example, device 10A
The process in is started. In step 6, the timer calculation unit 8 which has been notified of the start of this processing by the notification from the operation monitoring unit 7
Instructs the timer setting section 9 to start the timer, and the timer starts. Then, in step 7, for example, the process in the device 10A is being executed. During this time, the process in the other device 10B cannot be executed.

【0025】この後、装置10Aでの処理が止まると、
SCSI制御部5により、ステップ8において、当該実
行すべき処理の終了により止まったのか否かが調べられ
る。終了による場合、ステップ9において、所定の終了
処理(例えば、タイマの停止、装置制御部3Aへの終了
通知)が実行される。終了によらない場合(例えば、装
置10Aの都合による場合)、ステップ10において、
処理中断と判断される。この場合、更に、ステップ11
において、SCSI制御部5により、処理待ちの行列に
つながれた他の処理要求の有無が調べられる。有る場
合、ステップ12において、タイマ計算部8が、タイマ
設定部9にタイマの停止を指示し、タイマが停止する。
無い場合、ステップ12は実行されない。即ち、処理待
ちの要求があれば、処理中断によるバスの空き時間等を
他の処理のため使用でき、全体としての無駄時間は無い
ので、タイマを停止してもよい。ステップ13におい
て、中断した処理要求は、処理待ちの行列につながれ、
再開待ちの状態となる。
After that, when the processing in the apparatus 10A is stopped,
The SCSI control unit 5 checks in step 8 whether or not the process is stopped due to the end of the process to be executed. In the case of ending, in step 9, a predetermined ending process (for example, stop of the timer, end notification to the device control unit 3A) is executed. If it does not depend on the end (for example, due to the convenience of the apparatus 10A), in step 10,
It is determined that the processing is interrupted. In this case, further, step 11
At, the SCSI control unit 5 checks whether or not there is another processing request connected to the queue for processing. If there is, the timer calculation unit 8 instructs the timer setting unit 9 to stop the timer in step 12, and the timer stops.
If not, step 12 is not executed. That is, if there is a request to wait for processing, the free time of the bus due to interruption of processing can be used for other processing, and there is no dead time as a whole, so the timer may be stopped. In step 13, the interrupted processing request is queued for processing,
Waiting for resumption.

【0026】ある時間の経過後、ステップ14におい
て、装置10AからSCSI制御部5へ、先に中断した
処理要求の再開の通知があり、処理が再開される。ステ
ップ15において、動作監視部7から処理再開を知った
タイマ計算部8は、ステップ12においてタイマ停止中
であったか否かを調べる。停止中である場合、ステップ
16において、タイマ計算部8がタイマ設定部9にタイ
マの再スタートを指示し、タイマが再スタートする。停
止中でない場合、ステップ16は実行されない。この
後、ステップ7以下を実行する。
After a lapse of a certain time, in step 14, the device 10A notifies the SCSI controller 5 of the restart of the previously interrupted processing request, and the processing is restarted. In step 15, the timer calculator 8 which has learned from the operation monitor 7 that the process has been restarted checks in step 12 whether the timer has been stopped. If it is stopped, in step 16, the timer calculation unit 8 instructs the timer setting unit 9 to restart the timer, and the timer is restarted. If it is not stopped, step 16 is not executed. Then, step 7 and subsequent steps are executed.

【0027】以上の処理を図2の場合にあてはめると、
以下の如くになる。時刻aにおいて、装置制御部3Aが
起動されると、ステップ1からステップ7の実行によ
り、装置10Aは動作中となる。この状態で、時刻eに
おいて、装置制御部3Bが起動されると、ステップ1及
びステップ2が実行され、処理待ちの状態となる。この
とき、装置10Bについてのタイマは、ステップ6が実
行されないので、スタートしていない。
Applying the above processing to the case of FIG. 2,
It becomes as follows. When the device control unit 3A is activated at time a, the device 10A is in operation by executing steps 1 to 7. In this state, when the device control unit 3B is activated at time e, step 1 and step 2 are executed, and the process waits. At this time, the timer for device 10B has not started because step 6 is not executed.

【0028】時刻b=fにおいて、装置10Aが中断す
ると、ステップ10からステップ13が実行される。即
ち、処理待ちが有るのでステップ12が実行され、装置
10Aについてのタイマは停止される。一方、装置10
Bについては、ステップ2からステップ7が実行され、
動作中となる。従って、装置10Bについてのタイマが
スタートする。
When the device 10A is interrupted at time b = f, steps 10 to 13 are executed. That is, since there is a process waiting, step 12 is executed and the timer for the device 10A is stopped. On the other hand, the device 10
For B, steps 2 to 7 are executed,
It is in operation. Therefore, the timer for device 10B is started.

【0029】時刻g=cにおいて、装置10Bが処理終
了すると、ステップ8及びステップ9が実行され、終了
処理が行われる。従って、タイマも停止しリセットされ
る。一方、装置10Aについては、ステップ14からス
テップ16が実行される。即ち、処理が再開され、タイ
マが再スタートされる。この後、時刻dにおいて、装置
10Aもステップ9の実行により終了する。
At time g = c, when the processing of the device 10B ends, steps 8 and 9 are executed, and the ending processing is performed. Therefore, the timer is also stopped and reset. On the other hand, for the device 10A, steps 14 to 16 are executed. That is, the process is restarted and the timer is restarted. Thereafter, at time d, the apparatus 10A also ends by executing step 9.

【0030】[0030]

【発明の効果】以上説明したように、本発明によれば、
タイムアウト監視処理において、SCSI制御部等のイ
ンタフェース制御手段においてタイムアウト検出のため
の時間監視を行うことにより、装置が実際に動作してい
ない期間を監視時間から除くことができるので、適切な
時間監視を行うことができる。
As described above, according to the present invention,
In the timeout monitoring process, the interface control means such as the SCSI control unit monitors the time for detecting the timeout, so that the period during which the device is not actually operating can be excluded from the monitoring time. It can be carried out.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】本発明の作用説明図である。FIG. 2 is a diagram illustrating the operation of the present invention.

【図3】タイムアウト監視処理フローである。FIG. 3 is a time-out monitoring processing flow.

【図4】従来技術説明図である。FIG. 4 is an explanatory view of a conventional technique.

【図5】従来技術の問題点説明図である。FIG. 5 is an explanatory diagram of a problem in the conventional technique.

【符号の説明】[Explanation of symbols]

1 処理装置 2(2A、2B) ユーザプログラム 3(3A、3B) 装置制御部 4(4A、4B) レジスタ 5 インタフェース制御手段(SCSI制御部) 6 タイマ受信部 7 動作監視部 8 タイマ計算部 9 タイマ設定部 10(10A、10B) 装置 1 Processor 2 (2A, 2B) User Program 3 (3A, 3B) Device Control Unit 4 (4A, 4B) Register 5 Interface Control Means (SCSI Control Unit) 6 Timer Reception Unit 7 Operation Monitoring Unit 8 Timer Calculation Unit 9 Timer Setting unit 10 (10A, 10B) device

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1本のバスを介して互いに接続された処理
装置(1)及び複数の装置(10A、10B)と、 前記複数の装置(10A、10B)に対応するように前記処
理装置(1)に設けられ、ユーザプログラム(2A、2
B)によって起動された場合に対応する装置(10A、10
B)を制御して所定の動作を行わせる装置制御部(3
A、3B)と、 前記処理装置(1)に設けられ、前記処理装置(1)と
前記複数の装置(10A、10B)との間のインタフェース
の制御を行うインタフェース制御手段(5)とを備えた
データ処理装置におけるタイムアウト監視処理装置にお
いて前記インタフェース制御手段(5)に、 前記複数の装置(10A、10B)の動作状態を監視する動
作監視部(7)と、 タイマを有し、その値を設定するタイマ設定部(9)
と、 前記動作監視部(7)での前記監視の結果に基づいて、
前記タイマの値を求めるタイマ計算部(8)とを設け、 前記タイマ計算部(8)が、前記起動された前記装置
(10A、10B)が同時期に動作して一方の装置(10Aま
たは10B)がバスを占有した際に、当該占有した時間に
対応して、他の一方の装置のタイマに対する前記タイマ
値を補正するように前記タイマ設定部(9)に、前記タ
イマの値を所定の値に設定させることを特徴とするタイ
ムアウト監視処理装置。
1. A processing device (1) and a plurality of devices (10A, 10B) connected to each other via a single bus, and the processing device (10A, 10B) corresponding to the plurality of devices (10A, 10B). 1) provided in the user program (2A, 2
Device (10A, 10)
Device control unit (3) for controlling B) to perform a predetermined operation
A, 3B), and interface control means (5) provided in the processing device (1) and controlling an interface between the processing device (1) and the plurality of devices (10A, 10B). In the time-out monitoring processing device in the data processing device, the interface control means (5) has an operation monitoring unit (7) for monitoring the operation states of the plurality of devices (10A, 10B), and a timer, Timer setting section to set (9)
Based on the result of the monitoring by the operation monitoring unit (7),
A timer calculation unit (8) for obtaining the value of the timer is provided, and the timer calculation unit (8) operates so that the activated devices (10A, 10B) operate at the same time.
10B) occupies the bus,
Correspondingly, said timer with respect to the timer of the other one device
A time-out monitoring processing device characterized by causing the timer setting unit (9) to set the value of the timer to a predetermined value so as to correct the value.
【請求項2】前記一方の装置(10Aまたは10B)がバス
を占有した際に、当該占有した時間だけ前記他の一方の
装置のタイマを停止させることにより、前記タイマの値
を前記所定の値に設定させることを特徴とする請求項1
に記載のタイムアウト監視処理装置
2. The one device (10A or 10B) is a bus
When occupying a
By stopping the timer of the device, the value of the timer
Is set to the predetermined value.
The time-out monitoring processing device described in 1.
【請求項3】前記一方の装置(10Aまたは10B)がバス
を占有した際に、当該占有した時間に相当する時間だけ
前記他の一方の装置のタイマに加えることにより、前記
タイマの値を前記所定の値に設定させることを特徴とす
る請求項1に記載のタイムアウト監視処理装置。
3. The one device (10A or 10B) is a bus
When occupying, only the time corresponding to the occupying time
By adding to the timer of the other device,
The time-out monitoring processing device according to claim 1, wherein a value of a timer is set to the predetermined value .
【請求項4】前記インタフェース制御手段(5)はSC
SIプロトコルを実行するSCSI制御部であることを
特徴とする請求項1乃至請求項3のいずれかに記載のタ
イムアウト監視処理装置。
4. The interface control means (5) is an SC.
4. The time-out monitoring processing device according to claim 1, wherein the time-out monitoring processing device is a SCSI control unit that executes an SI protocol.
JP3040887A 1991-02-12 1991-02-12 Timeout monitoring processor Expired - Fee Related JP2673048B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3040887A JP2673048B2 (en) 1991-02-12 1991-02-12 Timeout monitoring processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3040887A JP2673048B2 (en) 1991-02-12 1991-02-12 Timeout monitoring processor

Publications (2)

Publication Number Publication Date
JPH04257954A JPH04257954A (en) 1992-09-14
JP2673048B2 true JP2673048B2 (en) 1997-11-05

Family

ID=12593025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3040887A Expired - Fee Related JP2673048B2 (en) 1991-02-12 1991-02-12 Timeout monitoring processor

Country Status (1)

Country Link
JP (1) JP2673048B2 (en)

Also Published As

Publication number Publication date
JPH04257954A (en) 1992-09-14

Similar Documents

Publication Publication Date Title
JP2009163658A (en) Input/output controller and its firmware update method
JP2673048B2 (en) Timeout monitoring processor
JPH0934518A (en) Control processor
JPS583009A (en) Electric power supply controller of data processor
JPH02121047A (en) Input/output control system
JP3545772B2 (en) Operating time monitoring method
JP2002358104A (en) Programmable controller and method for controlling the same
JPH05197577A (en) Virtual computer execution priority control system in virtual computer system
JPH0145657B2 (en)
JPH0520773A (en) Peripheral controller
JP2901714B2 (en) Programmable controller
JP2504833B2 (en) Process execution management method
JPH0447339B2 (en)
JP2000312244A (en) Network interface switching method, its system and its recording medium
JPH0343653B2 (en)
JPH07141209A (en) Data processor
JPH05197593A (en) Loop/stall monitor device for application program
JP2021149436A5 (en)
JP2000029850A (en) Task controlling method using inter-processor communication of operating system
JPH0356501B2 (en)
JPH052412A (en) Control program execution system for programmable controller
JPH06138917A (en) Programmable controller
JPH0431421B2 (en)
JPS6330659B2 (en)
JPH0251759A (en) Adaptor controlling system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees