JPH0477931A - Prevention device for deadlock of computer system - Google Patents

Prevention device for deadlock of computer system

Info

Publication number
JPH0477931A
JPH0477931A JP2190807A JP19080790A JPH0477931A JP H0477931 A JPH0477931 A JP H0477931A JP 2190807 A JP2190807 A JP 2190807A JP 19080790 A JP19080790 A JP 19080790A JP H0477931 A JPH0477931 A JP H0477931A
Authority
JP
Japan
Prior art keywords
access
time
deadlock
shared resource
task
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
JP2190807A
Other languages
Japanese (ja)
Inventor
Kiyoyuki Nobeoka
清之 延岡
Kazuaki Onchi
恩地 和明
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2190807A priority Critical patent/JPH0477931A/en
Publication of JPH0477931A publication Critical patent/JPH0477931A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) 本発明は、複数のタスクで共有資源を使用する必要があ
る各種の計算機システムに利用される計算機システムの
デッドロック防止装置に係わり、特にタスクによる共有
資源のアクセス中に発生するであろうデッドロックを未
然に回避する計算機システムのデッドロック防止装置に
関する。
[Detailed Description of the Invention] [Purpose of the Invention (Industrial Application Field) The present invention provides a deadlock prevention device for computer systems used in various computer systems that require the use of shared resources in multiple tasks. In particular, the present invention relates to a deadlock prevention device for a computer system that prevents deadlocks that may occur during access to shared resources by tasks.

(従来の技術) 一般に、計算機システムにおいては、ある−連の処理を
複数のタスクで分割し、これらタスクが共有資源を順次
アクセスしながら必要な資源を得ながら、予め定めた役
割分担の下に所定の処理を実行する方式を採っている ところで、各タスクが共有資源を順次アクセスしていく
過程において例えばある共有資源Aをアクセスすべきと
ころを共有資源Bをアクセスするといったごとく、その
手順を間違えたとき他のりスフはその時点から当該共有
資源Aに対するアクセスとしては待ち状態となる。その
結果、]つのタスクの被害が他のタスクにも拡大し、シ
ステム全体が停止し、簡単に復旧できないプツトロック
状態に発展する懸念がある。ここで、デッドロックとは
他のタスクが待ち状態となって動作できなくなることを
いう。
(Prior Art) Generally, in a computer system, a certain series of processing is divided into multiple tasks, and these tasks sequentially access shared resources and obtain the necessary resources while performing tasks under a predetermined division of roles. When a method is adopted to execute a predetermined process, each task may make a mistake in the process of sequentially accessing shared resources, such as accessing shared resource B instead of accessing shared resource A. At that point, the other systems are in a waiting state for accessing the shared resource A. As a result, there is a concern that the damage to one task will spread to other tasks, causing the entire system to stop and developing into a put-lock state that cannot be easily recovered. Here, deadlock means that another task is in a waiting state and cannot operate.

そこで、従来、以上のようなデッドロック状態の発生を
未然に防止する手段としては、各タスクごとに共有資源
に対する排他制御の開始および終了の順序を正確にプロ
グラム設計することが考えられている。
Conventionally, as a means to prevent the occurrence of the above-mentioned deadlock state, it has been considered to accurately design a program for starting and ending exclusive control over shared resources for each task.

しかし、各タスクごとの完全なプログラム設計は、プロ
グラム設計者がシステム全体の挙動を正確に理解して設
計しなければならないことから極めて困難なことであり
、このため通常の場合には試験時にプログラムの不具合
を少しずつ改良していくようにしているのか実状である
However, it is extremely difficult to design a complete program for each task because the program designer must accurately understand the behavior of the entire system. The reality is that they are trying to improve the problems little by little.

しかも、各タスクごとに共有資源をアクセスするために
複雑な実行条件を設定しているが、実際のオンライン時
に一旦デッドロック状態が発生すると、問題の生したタ
スクたけてなく、他のタスクも停止せざるを得ない。こ
のとき、プツトロックの発生原因を究明するのに多大の
時間と労力を要する。
Moreover, complicated execution conditions are set for each task to access shared resources, but once a deadlock situation occurs during actual online operation, the problematic task cannot be completed and other tasks also stop. I have no choice but to do it. At this time, it takes a great deal of time and effort to investigate the cause of the put-lock.

(発明が解決しようとする課題) 従って、以上のように複雑な実行条件の設定されている
各タスクが共有資源を排他制御しながらアクセスすると
き、たまたま手順の間違えによって共有資源のデッドロ
ックが発生すると、その共有資源をアクセスする他のタ
スクも停止し、システム全体としてデッドロックに陥る
問題がある。
(Problem to be solved by the invention) Therefore, when each task with complicated execution conditions set as described above accesses a shared resource while controlling it exclusively, a deadlock of the shared resource may occur due to a mistake in the procedure. Then, other tasks accessing the shared resource will also stop, causing a problem that the entire system will fall into a deadlock.

本発明は上記実情にかんがみてなされたもので、共有資
源のアクセス中にデッドロックが発生する状態となった
ときそのアクセスを解除することにより、デッドロック
現象の発生を未然に回避し、被害を最小限に抑制する計
算機システムのデッドロック防止装置を提供することを
目的とする。
The present invention has been made in view of the above-mentioned circumstances, and by releasing the access when a deadlock occurs while accessing a shared resource, the occurrence of the deadlock phenomenon can be avoided and the damage can be reduced. The purpose of the present invention is to provide a deadlock prevention device for a computer system that minimizes deadlock.

[発明の構成コ (課題を解決するための手段) 本発明に係わる計算機システムのデッドロック防止装置
は上記課題を解決するために、複数のタスクが設けられ
、これらタスク間で複数の共有資源を排他制御しながら
アクセスする計算機システムにおいて、タスクによる共
有資源のアクセス経過時間を計測するアクセス時間計測
手段と、このアクセス時間計測手段によって得られた現
在のアクセス経過時間が予め設定されたアクセスリミッ
ト時間を越えたとき、当該タスクのアクセスを強制的に
終了させるアクセス強制終了手段と、前記アクセス時間
計測手段によって得られたアクセス経過時間に基づいて
適正なアクセスリミット時間に更新するアクセスリミッ
ト時間学習手段とを備え、共有資源のアクセス中でのデ
ッドロック現象を回避する構成である。
[Configuration of the Invention (Means for Solving the Problem) In order to solve the above problem, the deadlock prevention device for a computer system according to the present invention is provided with a plurality of tasks, and a plurality of shared resources are shared among these tasks. In a computer system that accesses under exclusive control, there is an access time measuring means for measuring the elapsed time of access to a shared resource by a task, and an access limit time set in advance for the current elapsed access time obtained by this access time measuring means. an access forced termination means for forcibly terminating the access of the task when the access time is exceeded; and an access limit time learning means for updating the access limit time to an appropriate access limit time based on the access elapsed time obtained by the access time measuring means. This configuration avoids deadlock phenomena during access to shared resources.

(作用) 従って、本発明は以上のような手段を講じたことにより
、アクセスリミット時間学習手段にて共有資源のアクセ
ス終了毎にアクセスリミット時間を学習して例えば一定
期間経過後にメモリ内のアクセスリミット時間を更新す
る。その後、タスクにより新たなアクセスが開始された
とき、アクセス強制終了手段はアクセス時間計測手段に
よって得られた現在アクセス経過時間が前記アクセスリ
ミット時間を越えたとき、該当タスクのアクセスを強制
的に終了させて他のタスクにアクセスを解放することに
より、他のタスクの実行条件が緩和され、デッドロック
現象を未然に回避することができる。一方、アクセスリ
ミット時間学習手段ではアクセスリミット時間を越えた
ことに基づいて前記アクセスリミット時間に適宜な値を
加算し最適なアクセスリミット時間を設定するものであ
る。
(Operation) Therefore, by taking the above-described measures, the present invention learns the access limit time each time access to the shared resource is completed by the access limit time learning means, and, for example, sets the access limit in the memory after a certain period of time has elapsed. Update time. Thereafter, when a new access is started by a task, the access forced termination means forcibly terminates the access of the corresponding task when the current access elapsed time obtained by the access time measurement means exceeds the access limit time. By releasing access to other tasks, the execution conditions for other tasks are relaxed, and deadlock phenomena can be avoided. On the other hand, the access limit time learning means adds an appropriate value to the access limit time based on the fact that the access limit time has been exceeded to set the optimum access limit time.

(実施例) 以下、本発明の実施例について図面を参照して説明する
。第1図は本発明の一実施例の構成を示すブロック図で
ある。同図において1は計算機システムにおけるリアル
タイムオベレーティングシステムであって、このシステ
ム1は各タスク2゜・・・相互間の占有排他制御条件等
の実行条件が記憶され、この記憶内容に基づいて排他制
御を行いながらデッドロック制御部3を介して他の共有
資源4をアクセスする機能をもっている。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, reference numeral 1 denotes a real-time operating system in a computer system, and this system 1 stores execution conditions such as mutual exclusive exclusive control conditions for each task 2, and performs exclusive control based on the stored contents. It has a function of accessing other shared resources 4 via the deadlock control unit 3 while performing the same operation.

前記デッドロック制御部3はデッドロック現象が発生し
ないように、さらにデッドロック現象が発生しそうなと
きにその影響を最小限に抑えるための機能を有する一種
のタスクで構成されている。
The deadlock control unit 3 is composed of a type of task that has a function to prevent a deadlock phenomenon from occurring and to minimize the influence of a deadlock phenomenon when it is likely to occur.

このデッドロック制御部3には、各共有資源4にそれぞ
れ対応して独立の制御用メモリブロック5、・・・の他
、共有資源4のデッドロックが発生したときそのタスク
名その他の各種の状態を格納し、後の要因解析に供する
補助記憶装置6が設けられている。
This deadlock control unit 3 includes independent control memory blocks 5 corresponding to each shared resource 4, etc., as well as the name of the task and various other statuses when a deadlock of the shared resource 4 occurs. An auxiliary storage device 6 is provided to store the information and provide it for later factor analysis.

この制御用メモリブロック5にはアクセス開始時刻を記
憶するアクセス開始時刻メモリ51、アクセスリミット
時間を記憶するアクセスリミット時間メモリ52および
アクセスリミット値の学習値を記憶するアクセスリミッ
ト学習時間メモリ53が設けられている。
This control memory block 5 is provided with an access start time memory 51 for storing an access start time, an access limit time memory 52 for storing an access limit time, and an access limit learning time memory 53 for storing a learned value of an access limit value. ing.

一方、前記デッドロック制御部3は、機能的には共有資
源4のアクセス時、そのアクセス開始時刻メモリ51の
アクセス開始時刻から現在までのアクセス経過時間を求
めるアクセス時間計測手段31と、このアクセス時間計
測手段3]によって得られたアクセス経過時間が逐次更
新設定されるアクセスリミット時間を越えたとき当該タ
スクによる共有資源4のアクセスを強制終了させるアク
セス強制終了手段32と、前記アクセス時間計測手段3
1によって得られたアクセス経過時間かアクセスリミッ
ト時間を越えたとき、最適な、アクセスリミット時間を
学習し前記アクセスリミット時間を更新登録するアクセ
スリミット時間学習手段32とによって構成されている
On the other hand, the deadlock control section 3 functionally includes an access time measuring means 31 for determining the elapsed access time from the access start time of the access start time memory 51 to the present time when the shared resource 4 is accessed; an access forced termination means 32 for forcibly terminating the access to the shared resource 4 by the task when the access elapsed time obtained by the access time measuring means 3 exceeds an access limit time which is successively updated and set; and the access time measuring means 3
When the access elapsed time obtained in step 1 exceeds the access limit time, the access limit time learning means 32 learns the optimum access limit time and updates and registers the access limit time.

次に、排他制御の実行中にオペレーティングシステム1
から他の共有資源4に対しアクセス開始要求があった場
合とアクセス中のタスクに対するアクセス終了要求があ
った場合とに分けて、デッドロック制御部3の動作流れ
について説明する。
Next, while executing exclusive control, the operating system 1
The operation flow of the deadlock control unit 3 will be described separately for cases in which there is a request to start access to another shared resource 4 from the task, and cases in which there is a request to end access to the task currently being accessed.

(1) アクセス開始要求があったとき(第2図参照)
(1) When there is a request to start access (see Figure 2)
.

今、オペレーティングシステム1から他の共有資源4に
ついてアクセス開始要求が有ると、デッドロック制御部
3では、過去にアクセスされた全ての共有資源4に対し
て現在アクセス中の共有資源4があるか否かを調べ(ス
テップS1)、現在アクセス中の共有資源4が存在しな
い場合には今回アクセスを開始する共有資源4に対応す
るアクセス開始時刻メモリ51にアクセス開始時刻TO
を設定しくステップS8)、該当共有資源4に対するア
クセスを開始要求を終了する。
Now, when there is a request to start accessing another shared resource 4 from the operating system 1, the deadlock control unit 3 determines whether there is a shared resource 4 currently being accessed for all shared resources 4 that have been accessed in the past. If the shared resource 4 currently being accessed does not exist, the access start time TO is stored in the access start time memory 51 corresponding to the shared resource 4 to be accessed this time (step S1).
is set (step S8), and the request to start accessing the corresponding shared resource 4 is terminated.

一方、ステップS1において他の共有資源4についてア
クセス中のものが存在する場合、アクセス時間計測手段
31ではそれら共有資源4の各々について制御メモリブ
ロック5のアクセス開始時刻メモリ51の開始時刻TO
から現在までのアクセス経過時間Tを求める(ステップ
S2)。
On the other hand, if there are other shared resources 4 that are being accessed in step S1, the access time measuring means 31 sets the start time TO in the access start time memory 51 of the control memory block 5 for each of those shared resources 4.
The elapsed access time T from the time to the present time is calculated (step S2).

しかる後、アクセス強制終了手段32ではステップS3
においてアクセスリミット時間メモリ52からアクセス
リミット時間TLを読み出した後、前記アクセス経過時
間Tがアクセスリミット時間TLを越えているか否かを
判断する(ステップS4)。ここで、アクセス経過時間
Tが未だ越えていない場合にはデッドロックの可能性な
しと判断してステップS8に移行し、今回アクセスする
共有資源4に対応するアクセス開始時刻メモリ51にア
クセス開始時刻Toを設定する(ステップS8)。
After that, the access forced termination means 32 performs step S3.
After reading the access limit time TL from the access limit time memory 52, it is determined whether the access elapsed time T exceeds the access limit time TL (step S4). Here, if the access elapsed time T has not yet exceeded, it is determined that there is no possibility of deadlock, and the process moves to step S8, and the access start time To is stored in the access start time memory 51 corresponding to the shared resource 4 to be accessed this time. is set (step S8).

さらに、ステップS4においてアクセス経過時間Tがア
クセスリミット時間TLを越えていると判断したとき、
排他制御に何らかの支障か生じ共有資源4にデッドロッ
クの発生可能性有りと判断したとき、該当制御メモリブ
ロック5およびアクセス中のタスク2の名称等を適宜編
集した後前記補助記憶装置6に格納する。この補助記憶
装置6に名称等を格納する理由は後でデッドロックの可
能性あるタスク2および共有資源4の要因解析に行うた
めである。
Furthermore, when it is determined in step S4 that the access elapsed time T exceeds the access limit time TL,
When it is determined that there is a possibility of deadlock occurring in the shared resource 4 due to some kind of hindrance to exclusive control, the names of the relevant control memory block 5 and the task 2 being accessed are edited as appropriate and then stored in the auxiliary storage device 6. . The reason why names and the like are stored in the auxiliary storage device 6 is to analyze the cause of the task 2 and the shared resource 4 that may cause a deadlock later.

しかる後、アクセス強制終了手段32は、ステツブS6
において該当タスクに対する強制終了要求信号をオペレ
ーティングシステム第1に送出する。ここで、オペレー
ティングシステム1またはアクセス強制終了手段32に
て該当タスクを強制的に終了させた後、さらにアクセス
リミット時間学習手段33では該当共有資源4のアクセ
スリミット時間TLに一定比率N1%程度の時間を加算
して新しいアクセスリミット時間TLとしてアクセスリ
ミット時間メモリ52に格納し、また前回のアクセスリ
ミット時間TLをアクセスリミット学習時間TAとして
アクセスリミット学習時間メモリ53に格納する(ステ
ップS7)。しかる後、ステップS8に移行し、ここで
今回新たにアクセスを開始した共有資源4に対応するア
クセス開始時刻メモリ51にアクセス開始時刻TOを設
定し、この動作手順を終了する。
After that, the access forced termination means 32 executes step S6.
In this step, a forced termination request signal for the relevant task is sent to the first operating system. Here, after the corresponding task is forcibly terminated by the operating system 1 or the access forced termination means 32, the access limit time learning means 33 calculates a certain ratio of about N1% of the access limit time TL of the corresponding shared resource 4. is added and stored in the access limit time memory 52 as a new access limit time TL, and the previous access limit time TL is stored in the access limit learning time memory 53 as an access limit learning time TA (step S7). Thereafter, the process moves to step S8, where the access start time TO is set in the access start time memory 51 corresponding to the shared resource 4 that has newly started accessing this time, and this operation procedure is ended.

(2) アクセス開始要求があったとき(第3図参照)
(2) When there is a request to start access (see Figure 3)
.

オペレーティグシステム1から共有資源4についてアク
セス終了要求があると、デッド口・ツク制御部3のアク
セス時間計測手段3]はステップSllにてアクセス終
了対象となる共有資源4に対応する制御メモリブロック
5のアクセス開始時刻メモリ51から開始時刻Toを読
み出す一方、オペレーティングシステム]または内部の
時計装置から現在時刻T1を得、(T、−To)なる演
算によって今回のアクセス時間Tsを算出する。
When the operating system 1 issues a request to terminate access to the shared resource 4, the access time measuring means 3 of the dead-end/tsuku control unit 3 performs an access termination request on the control memory block 5 corresponding to the shared resource 4 to be accessed in step Sll. While reading the start time To from the access start time memory 51, the current time T1 is obtained from the operating system or an internal clock device, and the current access time Ts is calculated by the operation (T, -To).

しかる後、今回のアクセス時間Tsに基づいて以下の条
件の下にアクセスリミット時間TLを学習し、アクセス
リミット時間メモリ52に格納する。
Thereafter, the access limit time TL is learned under the following conditions based on the current access time Ts and stored in the access limit time memory 52.

すなわち、アクセスリミット時間TLの学習は、共有資
源4の初期作成時にある一定のアクセスリミット時間T
Lをアクセスリミット時間メモリ52に設定した後、計
算機システムの稼働から一定期間(例えば10間)周期
で、 アクセス時間Ts 〉アクセスリミット学習時間TA の関係が成立したとき、アクセス時間Tsをアクセスリ
ミット学習時間TAとしてアクセスリミット学習メモリ
53に格納する。そして、前記一定期間終了後、アクセ
スリミット学習時間TAに一定比率N2%程度の時間を
加算し、これを新しいアクセスリミット時間TLとして
アクセスリミット時間メモリ52に格納する(スリット
S2)。
That is, the learning of the access limit time TL is based on a certain access limit time T when the shared resource 4 is initially created.
After setting L in the access limit time memory 52, when the relationship of access time Ts > access limit learning time TA is established at regular intervals (for example, 10) from the start of the computer system, the access time Ts is learned as an access limit. It is stored in the access limit learning memory 53 as time TA. After the fixed period ends, a fixed ratio of about N2% is added to the access limit learning time TA, and this is stored in the access limit time memory 52 as a new access limit time TL (slit S2).

従って、以上のように構成された実施例の構成によれば
、オペレーティングシステム1からのアクセス開始後、
デッドロック制御部3で共有資源4の経過時間Tを監視
し、この経過時間Tが共有資源4毎のアクセスリミット
時間TLを越えると、そのアクセス中のタスク2を強制
終了させることにより、共有資源4のアクセスを解除し
、他のタスク2に該当共有資源4が解放することにより
、計算機システム全体が正常な動作を維持でき、大規模
なシステムデッドロック状態に陥るのを未然に防止する
ことができる。また、各共有資源4の経過時間とアクセ
スリミット時間とを比較し、−定期間ごとにアクセスリ
ミット時間を更新することにより、各共有資源4のアク
セスリミット時間を適切に設定できる。さらに、各共有
資源4の経過時間がアクセスリミット時間TLを越えた
とき、当該共有資源4の制御メモリブロック、アクセス
中のタスク名等の情報を補助記憶装置6に記憶するので
、後にその異常時の情報を容易に解析でき、ひいては異
常原因の究明を速やかに行え、システムの開発作業を効
率よく行うことができる。
Therefore, according to the configuration of the embodiment configured as described above, after the access from the operating system 1 is started,
The deadlock control unit 3 monitors the elapsed time T of the shared resource 4, and when this elapsed time T exceeds the access limit time TL for each shared resource 4, the task 2 that is accessing the shared resource is forcibly terminated. By canceling access to task 4 and releasing the corresponding shared resource 4 to another task 2, the entire computer system can maintain normal operation, and a large-scale system deadlock can be prevented. can. Further, by comparing the elapsed time and the access limit time of each shared resource 4 and updating the access limit time every - period, the access limit time of each shared resource 4 can be appropriately set. Furthermore, when the elapsed time of each shared resource 4 exceeds the access limit time TL, information such as the control memory block of the shared resource 4 and the name of the task currently being accessed is stored in the auxiliary storage device 6. information can be easily analyzed, the cause of the abnormality can be quickly investigated, and system development work can be carried out efficiently.

なお、本発明はその要旨を逸脱しない範囲で種々変形し
て実施できる。
Note that the present invention can be implemented with various modifications without departing from the gist thereof.

[発明の効果コ 以上説明したように本発明によれば、予め各共有資源の
アクセスリミット時間を設定し、共有資源のアクセス開
始時刻からの経過時間が対象共有資源のアクセスリミッ
ト時間を越えたとき、アクセス中のタスクを強制終了さ
せ、他のタスクに共有資源を解放するので、計算機シス
テムにおけるデッドロック現象の発生を未然に防止でき
る。
[Effects of the Invention] As explained above, according to the present invention, the access limit time for each shared resource is set in advance, and when the elapsed time from the access start time of the shared resource exceeds the access limit time of the target shared resource. Since the task being accessed is forcibly terminated and the shared resources are released to other tasks, it is possible to prevent deadlock phenomena from occurring in the computer system.

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

第1図ないし第3図は本発明に係わる計算機システムの
デッドロック防止装置の実施例を説明するために示した
もので、第1図は本発明装置の一実施例を示すブロック
構成図、第2図はオペレ−ティングシステムからアクセ
ス開始要求かあったときの動作流れ図、第3図はオペレ
ーティングシステムからアクセス終了要求があったとき
の動作流れ図である。 1・・・オペレーティングシステム、2・・・タスク、
3・・デッドロック制御部、4・・・ファイルその他の
共有資源、5・・・制御メモリブロック、6・・・補助
記憶装置、31・・・アクセス時間計測手段、32・・
・アクセス強制終了手段、33・・アクセスリミット時
間学習手段、51・・・アクセス開始時刻メモリ、52
・・・アクセスリミット時間メモリ、53・・・アクセ
スリミット学習時間メモリ。 出願人代理人 弁理士 鈴江武彦 園−一〜・ 第1図
1 to 3 are shown to explain an embodiment of a deadlock prevention device for a computer system according to the present invention, and FIG. 1 is a block diagram showing an embodiment of the device of the present invention, and FIG. FIG. 2 is an operation flowchart when an access start request is received from the operating system, and FIG. 3 is an operation flowchart when an access termination request is received from the operating system. 1... Operating system, 2... Task,
3...Deadlock control unit, 4...File and other shared resources, 5...Control memory block, 6...Auxiliary storage device, 31...Access time measurement means, 32...
- Access forced termination means, 33...Access limit time learning means, 51...Access start time memory, 52
...Access limit time memory, 53...Access limit learning time memory. Applicant's agent Patent attorney Takehikoen Suzue - 1~ Figure 1

Claims (1)

【特許請求の範囲】 複数のタスクが設けられ、これらタスク間で複数のファ
イルその他の資源(以下、共有資源と総称する)を排他
制御しながらアクセスする計算機システムにおいて、 タスクによる共有資源のアクセス経過時間を計測するア
クセス時間計測手段と、 このアクセス時間計測手段によって得られた現在のアク
セス経過時間が予め設定されたアクセスリミット時間を
越えたとき、当該タスクのアクセスを強制的に終了させ
るアクセス強制終了手段と、前記アクセス時間計測手段
によって得られたアクセス経過時間に基づいて適正なア
クセスリミット時間に更新するアクセスリミット時間学
習手段と を備え、共有資源のアクセス中でのデッドロツク現象を
回避することを特徴とする計算機システムのデッドロッ
ク防止装置。
[Claims] In a computer system in which a plurality of tasks are provided and these tasks access a plurality of files and other resources (hereinafter collectively referred to as shared resources) under exclusive control, An access time measuring means for measuring time; and an access forced termination for forcibly terminating the access of the task when the current elapsed access time obtained by the access time measuring means exceeds a preset access limit time. and access limit time learning means for updating the access limit time to an appropriate access limit time based on the access elapsed time obtained by the access time measuring means, to avoid deadlock phenomenon during access to a shared resource. Deadlock prevention device for computer systems.
JP2190807A 1990-07-20 1990-07-20 Prevention device for deadlock of computer system Pending JPH0477931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2190807A JPH0477931A (en) 1990-07-20 1990-07-20 Prevention device for deadlock of computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2190807A JPH0477931A (en) 1990-07-20 1990-07-20 Prevention device for deadlock of computer system

Publications (1)

Publication Number Publication Date
JPH0477931A true JPH0477931A (en) 1992-03-12

Family

ID=16264077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2190807A Pending JPH0477931A (en) 1990-07-20 1990-07-20 Prevention device for deadlock of computer system

Country Status (1)

Country Link
JP (1) JPH0477931A (en)

Similar Documents

Publication Publication Date Title
JPH04229355A (en) Data access method and data processing system
JP2814691B2 (en) Fault diagnosis method based on inference method
JP2526688B2 (en) Programmable controller and partial execution method of sequence program
US20070028240A1 (en) Information processing method and information processing apparatus for processing a plurality of threads
EP0883061A1 (en) Debugging method for a microcomputer system and recording medium on which debug program is recorded
JPH0477931A (en) Prevention device for deadlock of computer system
JP3781007B2 (en) Data transfer method between computers
JP3389745B2 (en) Apparatus and method for measuring program performance
JP2004185345A (en) Debugging method and system
JPS58181160A (en) Controlling system of emergency operation
JP2980610B2 (en) Transaction management device
CN119201842A (en) A verification method, device, equipment and medium in data migration process
KR100222620B1 (en) How to download multiple programs
JPH04225442A (en) Matching property check method for computer file system
JPH04190434A (en) Device and method for data base control
JP3189804B2 (en) Data backup method and device
JP2019125134A (en) Program and method for verification support and information processing apparatus
JPH05143422A (en) Updated journal managing system
JP2002251299A (en) Program trace device
JPS62163142A (en) Apparatus for correcting computer program
CN115794693A (en) GPIO (general purpose input/output) interface control method and system, storage medium and equipment
JP2926873B2 (en) Computer system
JP2000267866A (en) Device for acquiring end state of two-stage process
JPS62103701A (en) Restart control method for sequence controller
JPH06324893A (en) Memory check method