JPH0511342B2 - - Google Patents

Info

Publication number
JPH0511342B2
JPH0511342B2 JP61212170A JP21217086A JPH0511342B2 JP H0511342 B2 JPH0511342 B2 JP H0511342B2 JP 61212170 A JP61212170 A JP 61212170A JP 21217086 A JP21217086 A JP 21217086A JP H0511342 B2 JPH0511342 B2 JP H0511342B2
Authority
JP
Japan
Prior art keywords
exclusive
occupancy
shared resource
request
information
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
JP61212170A
Other languages
Japanese (ja)
Other versions
JPS6367670A (en
Inventor
Yukyoshi Yamagata
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61212170A priority Critical patent/JPS6367670A/en
Publication of JPS6367670A publication Critical patent/JPS6367670A/en
Publication of JPH0511342B2 publication Critical patent/JPH0511342B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 システム間共用資源を各システムが排他的に使
用するデータ処理システムにおいて占有情報を管
理していないシステムからの排他要求が、占有不
可であつた場合に、その電文の占有情報から、待
ち合わせのための占有情報を作成して、占有待ち
にすることにより、無駄な排他要求の繰り返しを
防止し、通信装置の負荷を軽減する。
[Detailed Description of the Invention] [Summary] In a data processing system in which each system uses an inter-system shared resource exclusively, an exclusive request from a system that does not manage exclusive use information, when the exclusive use is impossible. By creating occupancy information for rendezvous from the occupancy information of the message and placing it on occupancy wait, wasteful repetition of exclusion requests is prevented and the load on the communication device is reduced.

〔産業上の利用分野〕[Industrial application field]

本発明は、共用データベース等のシステム間共
用資源を、各システムが排他的に使用するデータ
処理システムに係り、特に占有不可である場合
に、占有情報を自動生成するシステム間共用資源
占有情報管理処理方式に関するものである。
The present invention relates to a data processing system in which each system exclusively uses an intersystem shared resource such as a shared database, and in particular, an intersystem shared resource occupancy information management process that automatically generates occupancy information when it cannot be monopolized. It is related to the method.

データベース等を複数の独立したシステムが共
用する場合、データ更新時における競合によつ
て、矛盾したデータが発生しないようにするた
め、排他制御が必要になる。この排他制御のため
のメツセージ通信の回数を減らし、効率的な排他
制御を可能とすることが望まれている。
When a database or the like is shared by multiple independent systems, exclusive control is required to prevent inconsistent data from occurring due to contention during data updates. It is desired to reduce the number of message communications for exclusive control and to enable efficient exclusive control.

〔従来の技術〕[Conventional technology]

負荷分散や、フエイルセーフによる信頼性向上
のために、複数の独立したシステム(処理装置)
によつて、トランザクシヨンを処理することが行
われている。このようなシステムにおいて、共用
資源を使用する場合、特にデータを更新するよう
なときには、他システムとの競合によつて、矛盾
したデータが発生しないようにするために、ある
1つのシステムだけが資源を占有して使用できる
ようにする排他制御が必要となる。
Multiple independent systems (processing units) for load balancing and fail-safe reliability
Processing of transactions is done by . In such a system, when using shared resources, especially when updating data, only one system uses the resources to prevent conflicting data from occurring due to contention with other systems. Exclusive control is required to enable exclusive use.

自システムが必要とする共用資源を使用する場
合、既にその共用資源が使用されているときに
は、その共用資源を使用しているトランザクシヨ
ンの処理終了を待つて、排他要求を出せば、その
資源を占有できることとなる。しかし、その占有
情報を管理していなければ、占有解除の契機をつ
かめないため、適切な時期に排他要求を出すこと
ができない。
When using a shared resource that is required by the local system, if the shared resource is already in use, you can wait for the processing of the transaction using the shared resource to finish and then issue an exclusive request to use the resource. It will be possible to occupy the property. However, if the exclusive possession information is not managed, an opportunity to release possession cannot be grasped, and an exclusive request cannot be issued at an appropriate time.

従来、システム間の排他制御では、排他要求に
対する処理結果を受け取つたシステムだけが、占
有情報を管理するようにされていた。
Conventionally, in exclusive control between systems, only the system that receives a processing result for an exclusive request manages exclusive information.

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

従来方式によれば、占有情報を管理していない
システムは、排他要求に対する結果が占有付加と
なつても、占有解除処理で要求を再起動すること
ができないため、占有待ちすることができなかつ
た。そのため、排他要求を、繰り返し行うことに
なり、通信装置の負荷が増大するという問題があ
る。
According to the conventional method, a system that does not manage occupancy information cannot wait for occupancy because even if the result of an exclusive request is to add occupancy, the request cannot be restarted in the occupancy release process. . Therefore, there is a problem in that exclusive requests are made repeatedly, increasing the load on the communication device.

本発明は上記問題点の解決を図り、占有情報を
管理していないシステムからの排他要求が、占有
負荷となつても、占有情報の自動生成によつて、
占有待ちができるようにする方式を提供すること
を目的としている。
The present invention aims to solve the above-mentioned problems, and even if an exclusive request from a system that does not manage occupancy information becomes an occupancy load, it can automatically generate occupancy information.
The purpose is to provide a method that allows users to wait for occupancy.

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

第1図は本発明の基本構成例を示す。 FIG. 1 shows an example of the basic configuration of the present invention.

第1図において、10A〜10Cはそれぞれ独
立したCPUとメモリ等を持つシステム、11は
各システム間のメツセージ通信に用いられる通信
路、12は共用データベース等の共用資源、13
は共用資源12を占有することを要求する排他要
求を受け付ける排他要求受付部、14は排他要求
のメツセージを他のシステムへ送信する排他要求
送信部、15は排他要求に対する結果を受け取つ
て処理する結果処理部、16は占有が付加であつ
た場合に電文中の情報に基づいて占有情報を作成
する占有情報作成部、17は占有情報を登録して
管理する占有登録部、18は占有待ちを管理する
占有待ち管理部を表す。
In FIG. 1, 10A to 10C are systems each having an independent CPU and memory, 11 is a communication path used for message communication between the systems, 12 is a shared resource such as a shared database, and 13 is a communication path used for message communication between the systems.
14 is an exclusion request receiving unit that receives an exclusive request requesting to occupy the shared resource 12; 14 is an exclusion request transmitting unit that sends an exclusive request message to another system; and 15 is a result for receiving and processing the result of the exclusive request. 16 is an occupancy information creation unit that creates occupancy information based on the information in the message when occupancy is added; 17 is an occupancy registration unit that registers and manages occupancy information; and 18 manages occupancy waiting. Represents the exclusive waiting management unit.

例えば、システム10Aにおいて、共用資源1
2を占有することを要求する排他要求があると、
排他要求受付部13は、その要求を受け付け、占
有可否を判定して、排他要求送信部14により、
通信路11を介して、他のシステム10B等へ要
求電文を送信する。
For example, in system 10A, shared resource 1
If there is an exclusive request to occupy 2,
The exclusive request receiving unit 13 accepts the request, determines whether or not occupancy is possible, and causes the exclusive request transmitting unit 14 to:
The request message is transmitted to other systems 10B and the like via the communication path 11.

その結果として、結果処理部15に対し、占有
可の通知があつた場合、時システム10Aのトラ
ンザクシヨンが共用資源12を占有していること
を示す占有情報を占有登録部17により登録し、
共用資源12を使用する。
As a result, when the result processing unit 15 is notified that occupancy is possible, the occupancy registration unit 17 registers occupancy information indicating that the transaction of the time system 10A occupies the shared resource 12,
Use shared resources 12.

排他要求に対し、占有不可の通知があつた場合
には、占有情報作成部16により、現在、どのシ
ステムにおけるどのトランザクシヨンが、共用資
源12を占有しているかを示す占有情報を、受信
電文に基づいて作成し、占有登録部17によつて
登録する。そして、自システム10Aにおける要
求元を持ち状態にし、その情報を占有持ち管理部
18によつて管理する。トランザクシヨンの終了
通知があつた場合、占有情報を管理しているの
で、占有解除処理を実行でき、待ち状態にある排
他要求において、排他要求送信部14から、再
度、送信することができる。
When a notification that occupancy is not possible is received in response to an exclusive request, the occupancy information creation unit 16 adds occupancy information indicating which transaction in which system currently occupies the shared resource 12 to the received message. and registered by the occupancy registration unit 17. Then, the request source in the own system 10A is put into a held state, and the information is managed by the exclusive holding management section 18. When a transaction end notification is received, the exclusive use information is managed, so the exclusive release process can be executed, and the exclusive request transmitter 14 can retransmit the exclusive request in the waiting state.

なお、3システムではなく、他の複数のシステ
ムによる資源共用の場合も同様である。
Note that the same applies to the case where resources are shared by a plurality of other systems instead of the three systems.

〔作用〕[Effect]

第2図は本発明の作用を説明するための図であ
る。第2図イは占有可の場合、第2図ロは占有不
可の場合を示している。
FIG. 2 is a diagram for explaining the operation of the present invention. FIG. 2A shows a case in which occupancy is possible, and FIG. 2B shows a case in which occupancy is not possible.

システム10Aが、資源αについて、システム
10Bへ排他要求を回覧メツセージを送つたとす
る。第2図イ図示のように、システム10Bにお
いて、占有可の結果が得られた場合、システム1
0Aに直ちに結果メツセージを返送する。これに
より、システム10Aは、占有情報を登録し、資
源αを使用することができる。システム10Cに
対しては、占有可の結論を出したシステム10B
から、後に「α使用中」の結果メツセージが送ら
れる。占有可否は、例えばシステムの多数決論理
によつて決定され、自システム10Aを含めて、
過半数のシステムが占有可とした場合に、要求に
ついての結果が確立される。
Assume that the system 10A sends a message circulating an exclusive request to the system 10B regarding the resource α. As shown in FIG.
Immediately send the result message back to 0A. Thereby, the system 10A can register the occupancy information and use the resource α. For system 10C, system 10B has concluded that it can be occupied.
After that, a result message "α in use" is sent. Occupancy is determined, for example, by the majority logic of the system, including the own system 10A.
A result for a request is established if a majority of systems grant permission.

一方、第2図ロ図示のように、資源αの排他要
求が回覧され、システム10Cにおいて、占有不
可となつた場合に、システム10Aは、その電文
からαに関する占有情報を自動生成して、登録す
る。これにより、他システムのトランザクシヨン
終了を契機とした占有解除処理時に、排他要求を
出すことができる。
On the other hand, as shown in FIG. 2B, when an exclusive request for resource α is circulated and the system 10C becomes unable to occupy it, the system 10A automatically generates occupancy information regarding α from the message and registers it. do. This makes it possible to issue an exclusive request during exclusive release processing triggered by the completion of a transaction in another system.

以上のように占有不可のときに、電文から占有
情報を自動生成して占有待ちにするので、無駄な
排他要求を出さなくても済むようになる。
As described above, when occupancy is not possible, occupancy information is automatically generated from the message and the occupancy wait state is created, so there is no need to issue unnecessary exclusive requests.

〔実施例〕〔Example〕

第3図は本発明の一実施例ブロツク図、第4図
は本発明の一実施例に係る排他処理の流れを説明
する図、第5図は結果処理部の処理説明図、第6
図は排他制御情報の通信データの例を示す。
FIG. 3 is a block diagram of an embodiment of the present invention, FIG. 4 is a diagram explaining the flow of exclusion processing according to an embodiment of the present invention, FIG. 5 is a diagram explaining processing of the result processing section, and FIG.
The figure shows an example of communication data of exclusive control information.

第3図において、第1図と同符号のものは、第
1図図示のものに対応する。20は排他制御情報
を受信する排他データ受信部、21は受信した回
覧メツセージを処理する回覧処理部、22はトラ
ンザクシヨン終了のメツセージを処理するトラン
ザクシヨン終了処理部、23の他のシステムから
のデツドロツク通知を処理するデツドロツク通知
処理部、24は他のシステムにおける実行中トラ
ンザクシヨンの管理を行う他システムのトランザ
クシヨン管理部、25は排他要求があつた共用資
源についての占有可否をチエツクする占有可否検
査部、26は占有を解除する占有解除部、27は
自システムにおけるトランザクシヨンを管理する
トランザクシヨン管理部、28は占有持ち情報に
よつてデツドロツクを検出するデツドロツク検出
処理部、29は送信データの脱送を監視する送信
データの脱送監視部、30は排他制御情報を他の
システムへ送る排他データ送信部、31はトラン
ザクシヨンの終了を他のシステムへ通知するトラ
ンザクシヨン終了送信部、32はデツドロツクを
通知するデツドロツク通知送信部を表す。
In FIG. 3, the same reference numerals as in FIG. 1 correspond to those shown in FIG. 20 is an exclusive data receiving unit that receives exclusive control information; 21 is a circulation processing unit that processes received circulation messages; 22 is a transaction completion processing unit that processes transaction completion messages; and 23 is a deadlock from other systems. A deadlock notification processing unit that processes notifications, 24 a transaction management unit of another system that manages transactions being executed in other systems, and 25 an occupancy check that checks whether or not a shared resource for which an exclusive request has been made can be occupied. 26 is an occupation release unit that releases the occupation, 27 is a transaction management unit that manages transactions in its own system, 28 is a deadlock detection processing unit that detects a deadlock based on exclusive possession information, and 29 is a deadlock detection processing unit that detects a deadlock based on the ownership information. 30 is an exclusive data transmitter that sends exclusive control information to other systems; 31 is a transaction end transmitter that notifies other systems of the end of a transaction; 32 is a deadlock. Represents a deadlock notification transmitter that notifies.

以下、第3図および第4図に従つて、排他制御
の流れについて説明する。以下の説明における(a)
〜(j)は、第4に示す(a)〜(j)は対応する。
The flow of exclusive control will be described below with reference to FIGS. 3 and 4. (a) in the following explanation
-(j) correspond to (a) to (j) shown in the fourth section.

(a) 発議元システムAにおいて、排他要求があつ
たとする。排他要求受付部13は、その排他要
求を受け付けると、占有可否検査部25を呼び
出す。占有可否検査部25は、占有登録情報に
より、占有可否判定制御を行う。
(a) Assume that an exclusive request is made in the originating system A. When the exclusive request accepting unit 13 receives the exclusive request, it calls the occupancy check unit 25. The occupancy inspection unit 25 performs occupancy determination control based on occupancy registration information.

(b) その資源がシステム間共用(大域)資源であ
るか否かを判定する。システム固有資源である
場合には、直ちに占有処理を実行する。大域の
資源である場合、排他要求送信部14によつ
て、占有要求の発議処理を実行する。
(b) Determine whether the resource is an intersystem shared (global) resource. If it is a system-specific resource, exclusive processing is immediately executed. If the resource is a global resource, the exclusive request transmitter 14 executes exclusive request initiation processing.

(c) 占有要求の発議処理では、回覧メツセージに
より、占有したい資源の情報と、トランジクシ
ヨン情報等を他の回覧先システムBに通知す
る。
(c) In the process of issuing an exclusive request, information on the resource to be occupied, transition information, etc. is notified to the other circulating destination system B by a circulating message.

(d) 回覧先システムでは、排他データ受信部20
の回覧処理部21により、その回覧メツセージ
を受け取ると、占有可否検査部25により、自
システムの占有登録情報に従つて、占有可否を
チエツクする。占有可否の結論は、多数決論理
により定まる。全システムの一致ではなく、過
半数システムの合意によつて結果を出すことに
より、全体の通信量を少なくしている。
(d) In the circulation destination system, the exclusive data receiving unit 20
When the circulation processing section 21 receives the circulation message, the occupancy inspection section 25 checks whether or not the system can be occupied, according to the occupancy registration information of its own system. The conclusion as to whether or not occupancy is possible is determined by majority logic. The overall amount of communication is reduced by producing results based on the consensus of a majority of systems, rather than the consensus of all systems.

(e) ここで、要求結果が確立したとすると、発議
元システムAへ結果通知がなされる。
(e) Here, if the request result is established, the initiating system A is notified of the result.

(f) また、自システムに対して、直接、結果通知
を行い、占有結果受信処理を行う。即ち、占有
登録部17によつて、占有登録制御を行う。ま
たは占有待ち管理部18によつて、待ち情報の
更新を行う。
(f) Also, directly notify the result to the own system and perform the occupancy result reception process. That is, the exclusive registration unit 17 performs exclusive registration control. Alternatively, the exclusive waiting management unit 18 updates the waiting information.

(g) 他の回覧先システムCに対しては、結果通知
は、他のメツセージに便乗して通知する。即
ち、結果が出たときに直ちに送るのではなく、
バツフアに保存しておき、バツフアが一杯にな
つたときなど、他のメツセージと組合わせて送
る。これを受け取つた回覧先システムCでは、
占有要求結果の受信処理を行う。
(g) Result notifications are sent to other circulation destination systems C by piggybacking on other messages. In other words, instead of sending the results immediately when they are available,
You can save it in the buffer and send it in combination with other messages when the buffer is full. In the circulation destination system C that received this,
Performs reception processing of the occupancy request result.

(h) 発議元システムAでは、結果処理部15によ
つて、結果メツセージを受け取ると、占有要求
発議処理の結果待ち(WAIT)を解除する。
(h) In the originating system A, when the result processing unit 15 receives the result message, it releases the wait state (WAIT) for the result of the occupancy request initiation process.

(i) 結果メツセージについて、占有が可能である
が、占有が不可であるかを判定する。占有が可
能であれば、占有登録部17によつて、占有登
録制御を行う。
(i) Determine whether or not the resulting message can be possessed or not. If occupancy is possible, the occupancy registration unit 17 performs occupancy registration control.

(j) 占有が不可であれば、占有待ち管理部18に
よつて、占有待ちの登録制御を行う。占有待ち
の登録を実行しておくことにより、トランザク
シヨンの終了によつて、次に排他要求を出す契
機を得ることができる。即ち、他システムのト
ランザクシヨン管理部24によつて、占有解除
部26が起動され、そのトランザクシヨンが使
用している資源についての解除が行われる。こ
れによつて、再度、占有要求の発議処理を起動
することができる。
(j) If occupancy is not possible, the occupancy wait management unit 18 performs occupancy wait registration control. By performing the registration of exclusive use wait, an opportunity to issue the next exclusive request can be obtained upon completion of the transaction. That is, the transaction management unit 24 of the other system activates the exclusive release unit 26, and releases the resources used by the transaction. As a result, the process for issuing an exclusive use request can be started again.

次に、特に本発明が関連する結果処理部15の
処理について、第5図に従つて説明する。以下の
説明における番号〜は、第5図に示す処理
〜に対応する。
Next, the processing of the result processing unit 15 to which the present invention is particularly relevant will be explained with reference to FIG. Numbers ~ in the following description correspond to processes ~ shown in FIG.

結果メツセージから、占有要求の結果が、占
有可能であるか否かを判定する。占有不可であ
る場合、処理へ制御を移行する。
Based on the result message, it is determined whether the result of the occupancy request is occupancy possible. If it cannot be occupied, control is transferred to processing.

占有可能であれば、占有要求元タスクに占有
可能に通知し、結果処理を終了する。
If occupancy is possible, the task that requested occupancy is notified that occupancy is possible, and the result processing ends.

占有不可であれば、占有不可の理由が結果メ
ツセージ内に設定されているか否かをチエツク
する。例えば、要求した資源が実際に他システ
ムに占有されているのではなく、単に領域不足
等の理由によつて、不可となる場合もある。こ
のような場合、次の処理を実行する。不可の
理由が設定されている場合、処理を実行す
る。
If occupancy is not possible, check whether the reason for occupancy is not set in the result message. For example, the requested resource may not be actually occupied by another system, but may simply be unavailable due to a lack of space or the like. In such a case, perform the following process. If a reason for not being accepted is set, execute the process.

占有要求元タスクに、再度、占有要求を出す
ことを指示して、結果処理を終了する。
Instructs the occupation requesting task to issue an occupation request again, and ends the result processing.

占有不可としている相手トランザクシヨン
を、自システムが管理しているか否かを判定す
る。管理していない場合、トランザクシヨンの
終了を認知できないので、処理に制御を移
し、再度占有要求を出すことを指示する。
Determine whether or not the own system is managing a partner transaction that cannot be used. If it is not managed, the end of the transaction cannot be recognized, so control is transferred to the process and an instruction is given to issue an exclusive request again.

占有不可の相手トランザクシヨンが要求資源
を占有しているという情報を、自システムが管
理しているか否かをチエツクする。既に管理し
ている場合、処理へ制御を移す。
Checks whether the local system manages information that the requested resource is occupied by a non-occupiable partner transaction. If it is already managed, transfer control to processing.

結果メツセージ内の受信データから、要求資
源を、どのトランザクシヨンが占有しているか
というような占有情報を作成する。この処理を
行うことにより、従来のように排他要求を直ち
に再送信する必要がなくなり、占有待ち管理が
できるようになる。
Occupancy information such as which transaction occupies the requested resource is created from the received data in the result message. By performing this process, there is no need to immediately retransmit an exclusive request as in the conventional case, and exclusive waiting management can be performed.

占有要求元タスクに占有待ちすることを指示
する。相手トランザクシヨンの占有が解除され
たときに、占有要求を出すことが指示されるこ
とになる。
Instructs the task that requested exclusive use to wait for exclusive use. When the possession of the other transaction is released, an instruction is given to issue a possession request.

第6図は、排他制御で送受信される通信データ
の例を示している。
FIG. 6 shows an example of communication data transmitted and received under exclusive control.

回覧メツセージや結果メツセージ等の排他制御
情報の通信データは、例えばメツセージヘツダ部
D1と、排他制御用ヘツダ部D2と、占有メツセ
ージ部D3と、占有要求情報部D4などからな
る。
Communication data of exclusive control information such as a circulation message or a result message is composed of, for example, a message header section D1, an exclusive control header section D2, an exclusive message section D3, an exclusive request information section D4, and the like.

メツセージヘツダ部D1は、メツセージ種別等
を示す。排他制御用ヘツダ部D2は、排他制御用
のヘツダ情報が設定され、トランザクシヨン情報
や時刻情報などが格納される。占有メツセージ部
D3には、結果メツセージにおいて、占有不可の
理由等が設定される。占有要求情報部D4には、
回覧メツセージにおいて、要求資源などの情報が
設定される。
The message header section D1 indicates the message type, etc. In the exclusive control header section D2, header information for exclusive control is set, and transaction information, time information, etc. are stored. In the occupancy message section D3, the reason for non-occupancy is set in the result message. In the occupancy request information section D4,
Information such as requested resources is set in the circulation message.

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

以上説明したように、本発明によれば、排他要
求に対する結果が占有不可となつた場合に、占有
情報を管理していないシステムは、その占有情報
を自動生成して管理するので、占有解除処理で、
排他要求の処理を再起動することができ、排他要
求と、占有不可の結果の通信とを繰り返すことが
なくなるので、通信装置の負荷を軽減することが
できるようになる。
As explained above, according to the present invention, when the result of an exclusive request is that occupancy is not possible, a system that does not manage occupancy information automatically generates and manages the occupancy information, so that the system automatically generates and manages the occupancy information. in,
The processing of the exclusion request can be restarted, and there is no need to repeat the communication of the exclusion request and the result of non-possession, so that the load on the communication device can be reduced.

例えば、トランザクシヨンの処理時間を5秒と
し、0.1秒に1回、排他要求の再送が行われると
すれば、最大で50回の通信が行われることになる
が、本発明によれば、1回の通信でよく、無駄な
通信が削減されることになる。
For example, if the transaction processing time is 5 seconds and the exclusive request is retransmitted once every 0.1 seconds, communication will be performed a maximum of 50 times, but according to the present invention, 1 This means that unnecessary communications can be reduced.

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

第1図は本発明の基本構成例、第2図は本発明
の作用説明図、第3図は本発明の一実施例ブロツ
ク図、第4図は本発明の一実施例に係る排他処理
の流れを説明する図、第5図は結果処理部の処理
説明図、第6図は排他制御情報の通信データの例
を示す。 図中、10A,10B,10Cはシステム、1
1は通信路、12は共用資源、13は排他要求受
付部、14は排他要求送信部、15は結果処理
部、16は占有情報作成部、17は占有登録部、
18は占有待ち管理部を表す。
FIG. 1 is an example of the basic configuration of the present invention, FIG. 2 is an explanatory diagram of the operation of the present invention, FIG. 3 is a block diagram of an embodiment of the present invention, and FIG. 4 is an illustration of exclusive processing according to an embodiment of the present invention. A diagram explaining the flow, FIG. 5 is a diagram explaining processing of the result processing section, and FIG. 6 shows an example of communication data of exclusive control information. In the figure, 10A, 10B, 10C are systems, 1
1 is a communication path, 12 is a shared resource, 13 is an exclusive request receiving unit, 14 is an exclusive request transmitting unit, 15 is a result processing unit, 16 is an occupation information creation unit, 17 is an exclusive registration unit,
18 represents an exclusive waiting management section.

Claims (1)

【特許請求の範囲】 1 各々独立したプロセツサを持つ複数のシステ
ムと、これらの複数のシステム間で共用される共
用資源と、各システム間でメツセージを送受信す
る通信手段とを備えるとともに、前記各々システ
ムは、データを処理する単位であるトランザクシ
ヨンの終了を他の関連システムへ通知する処理手
段を有するデータ処理システムにおいて、 前記各システムは、 共用資源に対する排他要求を他のシステムへ送
信する排他要求送信手段14と、 他システムからの排他要求に対して、自システ
ムが保有するどのシステムにおけるどのトランザ
クシヨンが共用資源を占有しているかを示す占有
情報に基づいて、占有可否を検査し、占有可また
は占有不可を通知するメツセージを送信する手段
と、 自システムが出した排他要求に対して占有不可
のメツセージが通知された場合に、その占有不可
を通知するメツセージに基づいて、どのシステム
におけるどのトランザクシヨンが共用資源を占有
しているかを示す占有情報を作成する占有情報作
成手段16と、 作成した占有情報を自システム内で登録し管理
する占有登録手段17と、 自システムが出した排他要求に対して共用資源
の占有が不可である場合に、自システムにおける
排他要求元を待ち状態にし、その情報を管理する
占有待ち管理手段18とを備え、 トランザクシヨン終了通知があつた場合に、前
記占有情報と排他要求元の待ち状態管理情報とに
基づいて、他システムに対する排他要求を再送す
るようにしたことを特徴とするシステム間共有資
源占有情報管理処理方式。
[Scope of Claims] 1. A system comprising a plurality of systems each having an independent processor, a shared resource shared among the plurality of systems, and a communication means for transmitting and receiving messages between the systems, and each of the systems is a data processing system having a processing means for notifying other related systems of the end of a transaction, which is a unit of processing data, wherein each system is configured to: transmit an exclusive request for a shared resource to another system; Means 14: In response to an exclusive request from another system, the own system checks whether or not the shared resource can be occupied based on the occupation information indicating which transaction in which system owns the shared resource, and determines whether the shared resource is possible or not. A method for transmitting a message notifying that exclusive use is not possible, and a method for determining which transaction in which system is executed based on the message notifying that exclusive use is not possible when a message indicating that exclusive use is not possible is notified in response to an exclusive request issued by the own system. occupancy information creation means 16 for creating occupancy information indicating whether the system occupies the shared resource; occupancy registration means 17 for registering and managing the created occupancy information within its own system; an exclusive use wait management means 18 for placing an exclusive request source in its own system in a waiting state and managing the information when the shared resource cannot be occupied due to a transaction termination notification; An inter-system shared resource occupancy information management processing method characterized in that an exclusive request to another system is retransmitted based on the wait state management information of the source of the exclusive request.
JP61212170A 1986-09-09 1986-09-09 Managing and processing system for occupation information on inter-system shared resources Granted JPS6367670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61212170A JPS6367670A (en) 1986-09-09 1986-09-09 Managing and processing system for occupation information on inter-system shared resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61212170A JPS6367670A (en) 1986-09-09 1986-09-09 Managing and processing system for occupation information on inter-system shared resources

Publications (2)

Publication Number Publication Date
JPS6367670A JPS6367670A (en) 1988-03-26
JPH0511342B2 true JPH0511342B2 (en) 1993-02-15

Family

ID=16618065

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61212170A Granted JPS6367670A (en) 1986-09-09 1986-09-09 Managing and processing system for occupation information on inter-system shared resources

Country Status (1)

Country Link
JP (1) JPS6367670A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0620145Y2 (en) * 1989-11-30 1994-05-25 中電工事株式会社 Test and measurement equipment for instrument transformers
JP4177384B2 (en) 2006-04-12 2008-11-05 三菱電機株式会社 Transmission

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59173866A (en) * 1983-03-24 1984-10-02 Nec Corp Lock control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59173866A (en) * 1983-03-24 1984-10-02 Nec Corp Lock control system

Also Published As

Publication number Publication date
JPS6367670A (en) 1988-03-26

Similar Documents

Publication Publication Date Title
US6141720A (en) Method and apparatus for coordination of a shared object in a distributed system
US6898617B2 (en) Method, system and program products for managing thread pools of a computing environment to avoid deadlock situations by dynamically altering eligible thread pools
US7082480B2 (en) Managing bus transaction dependencies
US5590334A (en) Object oriented message passing system and method
US6112263A (en) Method for multiple independent processes controlling access to I/O devices in a computer system
JP5516398B2 (en) Multiprocessor system and method for sharing device between OS of multiprocessor system
JPS62500549A (en) Method and apparatus for ordering multiprocessor operations in a multiprocessor system
JP4098233B2 (en) Reducing call time and message traffic during data and lock transfers in a multi-node system
JPH1165863A (en) Common resource managing method
JPH01142963A (en) Data transfer control
JPS6358418B2 (en)
US5592673A (en) Loosely coupled compound computer system using lock and semaphore mechanism for performing exclusive control of shared resource which is accessed through a distinct bus
EP0317481B1 (en) Remote storage management mechanism and method
JP4607999B2 (en) How to handle lock-related inconsistencies
EP1187029A2 (en) Peripheral component interconnect arbiter implementation with dynamic priority scheme
JPH01137356A (en) Inter-process communication
JPH0511342B2 (en)
JPS62232064A (en) Deadlock prevention system for distributed data base system
JPS5844553A (en) Exclusive controlling system
JPH06161788A (en) Multitask system
JPH056217B2 (en)
JPH0373030A (en) Exclusive control system for resource
JPH01133144A (en) Common resource control system
JPH04353961A (en) Exclusive control system in multi-processor system
JPH04286044A (en) Server/client type data processor

Legal Events

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