JPH11306147A - Inter-host resource sharing/exclusive controller, method therefor and recording medium - Google Patents

Inter-host resource sharing/exclusive controller, method therefor and recording medium

Info

Publication number
JPH11306147A
JPH11306147A JP10109618A JP10961898A JPH11306147A JP H11306147 A JPH11306147 A JP H11306147A JP 10109618 A JP10109618 A JP 10109618A JP 10961898 A JP10961898 A JP 10961898A JP H11306147 A JPH11306147 A JP H11306147A
Authority
JP
Japan
Prior art keywords
resource
shared
control key
exclusive control
identification 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.)
Granted
Application number
JP10109618A
Other languages
Japanese (ja)
Other versions
JP3473394B2 (en
Inventor
Yutaka Arimitsu
裕 有光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP10961898A priority Critical patent/JP3473394B2/en
Publication of JPH11306147A publication Critical patent/JPH11306147A/en
Application granted granted Critical
Publication of JP3473394B2 publication Critical patent/JP3473394B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate the need for preparations such as the registration of a global resource in a management file, to minimize the necessary capacity of the management file, and to perform sharing/exclusive control over even a global resource which does not have a specific management file like a catalog as a global resource as to an information system wherein hosts share resources. SOLUTION: This inter-host resource sharing/exclusive controller is provided with the dedicated management file 5 for managing a sharing/exclusive control key, and has sharing/exclusive control key acquiring means 23 and 33 which register resource identification information in the management file 5 when the global resource 6 is used and delete the said resource identification information from the management file 5 when the use of the global resource 6 ends to register the resource identification information in the management file 5 only when the global resource 6 is used.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のホストでフ
ァイルなどの資源を共有する情報システムにおいて、ホ
スト間で資源を一意に識別するための共有排他制御キー
の取得方法および共有排他制御キー管理ファイルに関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for acquiring a shared exclusion control key for uniquely identifying resources among hosts in an information system in which resources such as files are shared by a plurality of hosts, and a shared exclusion control key management. It is about files.

【0002】[0002]

【従来の技術】ホスト間で資源の共有排他を行うための
ホスト間共有排他制御装置は、資源を一意に区別する共
有排他制御キーを入力にして共有排他制御を行うが、こ
の資源を区別するための共有排他制御キーの大きさは限
られており、資源名のような区別するための情報量が大
きいものは使用できない。
2. Description of the Related Art An inter-host shared exclusion controller for performing shared exclusion of resources between hosts performs shared exclusion control by inputting a shared exclusion control key for uniquely identifying resources. The size of the shared exclusive control key is limited, and a key having a large amount of information for discrimination such as a resource name cannot be used.

【0003】そのため、ホスト間で共有排他制御を行う
には、資源名のような大きな情報を、ホスト間共有排他
制御装置が使用する共有排他制御キーの情報に圧縮しな
ければならない。また、その共有排他制御キーは、ホス
ト間で資源を一意に区別できるものでなければならな
い。
Therefore, in order to perform shared exclusion control between hosts, it is necessary to compress large information such as a resource name into information of a shared exclusion control key used by the shared exclusion control device between hosts. Also, the shared exclusive control key must be able to uniquely distinguish resources between hosts.

【0004】従来のホスト間の資源共有排他制御では、
共有排他制御キーの取得のため、カタログという資源の
所在などの属性を管理する管理ファイルに資源を登録す
ることにより、カタログの登録データを共有排他制御キ
ーとして利用していた。
In the conventional resource sharing exclusive control between hosts,
In order to acquire the shared exclusion control key, the resource is registered in a management file that manages attributes such as the location of the resource called a catalog, and the registered data of the catalog is used as the shared exclusion control key.

【0005】また、特開平1−292467号公報に
は、「マルチプロセッサシステムの共有資源制御方式」
として、「キャッシュブロック検索時の排他制御をキャ
ッシュブロック単位とし、且つ複数のプロセッサが同一
のキャッシュブロックの検索を行なう場合には、先着の
プロセッサのみがキャッシュブロックの検索及びLRU
制御を行い、他のプロセッサは、検索されてLRU制御
されたキャッシュブロックのアドレスの通知を受け、こ
れによって、データ処理を行うようにしたので、異なる
キャッシュブロックに対しては複数のプロセッサで同時
に検索を行うことができ、しかも、待機時間及び検索時
間の最大値を小さく抑えることができ、より効率的な共
有資源制御を行うことができる効果が得られる。」(発
明の効果の欄より)と記載されている。
Japanese Patent Laid-Open Publication No. 1-292467 discloses a "shared resource control method for a multiprocessor system".
When exclusive control at the time of cache block search is performed on a cache block basis and a plurality of processors search for the same cache block, only the first processor searches for the cache block and performs LRU search.
The other processor receives the notification of the address of the cache block that has been searched and subjected to the LRU control, thereby performing data processing. Therefore, a plurality of processors simultaneously search different cache blocks. Can be performed, and the maximum values of the standby time and the search time can be suppressed to be small, so that an effect that more efficient shared resource control can be performed can be obtained. (From the column of effects of the invention).

【0006】[0006]

【発明が解決しようとする課題】しかしながら、この従
来技術には、次のような問題点があった。
However, this prior art has the following problems.

【0007】第1の問題点は、グローバル資源をあらか
じめカタログに登録しなければならず、事前準備が必要
であるということである。
[0007] The first problem is that global resources must be registered in a catalog in advance, and advance preparation is required.

【0008】その理由は、共有排他制御キーにカタログ
の登録データを利用していたためである。
The reason is that catalog registration data is used for the shared exclusive control key.

【0009】第2の問題点は、カタログの容量を圧迫す
るということである。
A second problem is that the capacity of the catalog is reduced.

【0010】その理由は、グローバル資源を使用中か否
かにかかわらず、グローバル資源をカタログに登録して
おかなければならないためである。
[0010] The reason is that the global resource must be registered in the catalog regardless of whether the global resource is being used or not.

【0011】第3の問題点は、カタログを利用する資源
しか、グローバル資源として使用できないということで
ある。
A third problem is that only resources using a catalog can be used as global resources.

【0012】その理由は、共有排他制御キーの管理ファ
イルとして、特定の用途を対象とするカタログを使用し
ていたためである。
The reason is that a catalog for a specific use is used as a management file of the shared exclusion control key.

【0013】[発明の目的]本発明の目的は、管理ファ
イルへのグローバル資源の登録のような事前準備を不要
とすることにある。
[Object of the Invention] An object of the present invention is to eliminate the need for advance preparation such as registration of global resources in a management file.

【0014】また、管理ファイルの容量を必要最小限に
することにある。
Another object is to minimize the capacity of the management file.

【0015】また、カタログのような特定の管理ファイ
ルをもたないグローバル資源でも、グローバル資源とし
て共有排他制御をできるようにすることにある。
Another object of the present invention is to make it possible to perform shared and exclusive control as a global resource even for a global resource that does not have a specific management file such as a catalog.

【0016】[0016]

【課題を解決するための手段】本発明は、上記課題を解
決するための手段として、複数のホストで資源を共有す
る情報システムにおいて、共有排他制御キーを管理する
専用の管理ファイルを具備し、グローバル資源を使用す
るときに、該管理ファイルへ資源識別情報を登録し、グ
ローバル資源の使用を終えたときに該管理ファイルから
前記資源識別情報を削除することにより、グローバル資
源を使用しているときだけ、管理ファイルに資源識別情
報を登録する共有排他制御キー取得手段を有することを
特徴とするホスト間資源共有排他制御装置を提供するも
のである。
According to the present invention, there is provided an information system for sharing resources among a plurality of hosts, comprising a dedicated management file for managing a shared exclusion control key. When using global resources, registering the resource identification information in the management file and deleting the resource identification information from the management file when the use of the global resources is completed, when using the global resources Only, there is provided an inter-host resource sharing / exclusive control device characterized by having a shared / exclusive control key acquiring unit for registering resource identification information in a management file.

【0017】また、全ホストで最初に資源を使用すると
きに、管理ファイルに資源識別情報を登録し、全ホスト
で最後に資源の使用を終えたときに、管理ファイルから
資源識別情報を削除することによって、グローバル資源
の使用中のみ管理ファイルに資源識別情報を登録するこ
とを特徴とするホスト間資源共有排他制御装置でもあ
る。
Further, when the resources are used for the first time by all the hosts, the resource identification information is registered in the management file, and when the resources are finally used by all the hosts, the resource identification information is deleted from the management file. Thus, the inter-host resource sharing / exclusive control device is characterized in that the resource identification information is registered in the management file only while the global resource is being used.

【0018】また、共有排他制御キーを管理する専用の
共有排他制御キー管理ファイルを持ち、任意の資源を登
録可能としたことを特徴とするホスト間資源共有排他制
御装置でもある。
Further, there is also provided an inter-host resource sharing / exclusive control device having a dedicated shared / exclusive control key management file for managing the shared / exclusive control key, and enabling arbitrary resources to be registered.

【0019】また、複数のホスト(21,31)で資源
を共有する情報システム(1)において、前記ホスト間
で資源を共有するグローバル資源(6)と、ホスト間
で、前記グローバル資源(6)を他の資源と一意に区別
するための情報を含む資源識別情報(7)と、該資源識
別情報(7)の登録位置を示す共有排他制御キー(8)
と、前記ホスト間で資源の共有排他制御を行うホスト間
排他制御装置(4)と、前記ホスト間排他制御装置
(4)で使用する前記共有排他制御キーを格納する共有
排他制御キー管理ファイル(5)と、を備え、各ホスト
(21)は、資源識別情報(7)をもとにホスト内の資
源の共有排他制御を行い、ホスト間で共有可能な資源で
あれば、さらに、共有排他制御キー(8)をもとに、前
記ホスト間排他制御装置(4)を使用し、ホスト間の資
源の共有排他制御を行う、資源割り当て手段(22)
と、ホスト間で最初に資源を使用するときに、資源識別
情報(7)を共有排他制御キー管理ファイル(5)に登
録し、共有排他制御キー(8)を資源割り当て手段(2
2)に返却し、ホスト間ですでに使用されている資源で
あれば、登録済の資源識別情報(7)より、共有排他制
御キー(8)を決定し、共有排他制御キー(8)を資源
割り当て手段(22)に返却し、資源の使用を終了した
とき、全ホストで資源の使用が最後であれば、共有排他
制御キー管理ファイル(5)から、資源識別情報(7)
を削除する、共有排他制御キー取得手段(23)と、を
有することを特徴とするホスト間資源共有排他制御装置
でもある。
In the information system (1) in which a plurality of hosts (21, 31) share a resource, a global resource (6) sharing a resource between the hosts, and a global resource (6) between the hosts. Resource identification information (7) including information for uniquely identifying the resource identification information from other resources, and a shared exclusive control key (8) indicating the registration position of the resource identification information (7)
An inter-host exclusion controller (4) for performing resource exclusion control between the hosts, and a shared exclusion key management file (4) for storing the shared exclusion key used by the inter-host exclusion controller (4). 5), and each host (21) controls the sharing and exclusion of the resources in the host based on the resource identification information (7). Resource allocation means (22) for performing shared exclusive control of resources between hosts using the inter-host exclusive control device (4) based on the control key (8).
When a resource is first used between hosts, the resource identification information (7) is registered in the shared exclusive control key management file (5), and the shared exclusive control key (8) is assigned to the resource allocating means (2).
2) If the resource is already used between the hosts, the shared exclusive control key (8) is determined from the registered resource identification information (7), and the shared exclusive control key (8) is When the resource is returned to the resource allocating means (22) and the use of the resource is completed, if the use of the resource is the last in all the hosts, the resource identification information (7) is obtained from the shared exclusive control key management file (5).
And a shared exclusive control key acquisition means (23) for deleting the shared resource.

【0020】また、複数のホスト(21,31)で資源
を共有する情報システム(1)において、ホスト(2
1)でグローバル資源(6)を使用するにあたって、資
源割り当て手段(22)は、共有排他制御キー取得手段
(23)に資源を識別するための資源識別情報(7)を
渡すステップ;次に、共有排他制御キー取得手段(2
3)は、共有排他制御キー管理ファイル5に資源識別情
報(7)が未登録であると、資源識別情報(7)を共有
排他制御キー管理ファイル(5)に新規に登録し、登録
した情報の位置を共有排他制御キー(8)として、資源
割り当て手段に返却するステップ;次に、資源割り当て
手段(22)は、取得した共有排他制御キー(8)とホ
スト間排他制御装置(4)を使用して資源の排他制御を
行うステップ;ホスト(21)で資源の使用を終える
と、資源割り当て手段(22)は、ホスト間排他制御装
置(4)より全ホストで資源の使用を終えたという情報
を得るため、資源割り当て手段(22)は、共有排他制
御キー取得手段(23)に共有排他制御キー(8)を渡
し、共有排他制御キー(8)の削除を要求するステッ
プ;次に、共有排他制御キー取得手段(23)は、共有
排他制御キー(8)より資源識別情報の位置を決定し、
登録している資源識別情報を削除するステップ;ホスト
(21)でグローバル資源(6)を使用中に、他のホス
ト(31)でグローバル資源(6)を使用する場合、資
源割り当て手段(32)は、ホスト(21)と同様に資
源識別情報(7)を、共有排他制御キー取得手段(3
3)に渡すステップ;次に、共有排他制御キー取得手段
(33)は、資源識別情報(7)が共有排他制御キー管
理ファイル(5)に登録済であるので、登録済の資源識
別情報の位置を共有排他制御キー(8)として、資源割
り当て手段(32)に返却するステップ;ホスト(2
1)でグローバル資源(6)を使用中に、他のホスト
(31)で資源の使用を終えると、資源割り当て手段
(32)は、ホスト間排他制御装置(4)より、資源が
他のホストで使用されている情報を得るため、共有排他
制御キー取得手段(33)に、共有排他制御キー(8)
の削除の要求を行わずに資源解放処理を終了するステッ
プ;を有することを特徴とするホスト間資源共有排他制
御方法でもある。
In the information system (1) in which a plurality of hosts (21, 31) share resources, the host (2)
In using the global resource (6) in 1), the resource allocating means (22) passes resource identification information (7) for identifying the resource to the shared exclusive control key obtaining means (23); Shared exclusive control key acquisition means (2
3) If the resource identification information (7) is not registered in the shared exclusive control key management file 5, the resource identification information (7) is newly registered in the shared exclusive control key management file (5), and the registered information Returning the position of the shared exclusion control key (8) to the resource allocating means as a shared exclusion control key (8); Step of performing exclusive control of resources by using the resources. When the use of the resources is completed by the host (21), the resource allocating means (22) reports that the use of the resources has been completed by all the hosts by the inter-host exclusive control device (4). In order to obtain information, the resource allocating means (22) passes the shared exclusive control key (8) to the shared exclusive control key acquiring means (23) and requests deletion of the shared exclusive control key (8); Shared exclusive system Key acquisition means (23) determines the position of the resource identification data from the shared exclusive control key (8),
Deleting the registered resource identification information; when the global resource (6) is used by the host (21) and the global resource (6) is used by another host (31), the resource allocating means (32) Stores the resource identification information (7) in the same manner as the host (21),
Step 3): The shared exclusive control key acquiring means (33) determines whether the resource identification information (7) has been registered in the shared exclusive control key management file (5). Returning the position to the resource allocation means (32) as the shared exclusive control key (8);
If the other host (31) finishes using the resource while using the global resource (6) in (1), the resource allocating means (32) sends the resource to the other host (3) from the inter-host exclusive control device (4). In order to obtain the information used in (1), the shared exclusive control key acquisition means (33) is provided with the shared exclusive control key (8).
Ending the resource release processing without requesting the deletion of the resource.

【0021】また、上述したホスト間資源共有排他制御
方法を記述したコンピュータプログラムを格納したこと
を特徴とする記録媒体でもある。
Further, the present invention is also a recording medium storing a computer program describing the above-described method for controlling exclusive use of resource sharing between hosts.

【0022】[作用]本発明は、複数のホストでファイ
ルなどの資源を共有する情報システムにおいて、ホスト
間で資源を一意に識別するための共有排他制御キーの取
得方法および共有排他制御キー管理ファイルに関するも
のである。
According to the present invention, in an information system in which resources such as files are shared by a plurality of hosts, a method for acquiring a shared exclusion control key for uniquely identifying resources among hosts and a shared exclusion control key management file It is about.

【0023】図1は、本発明の一実施例の概略構成図で
ある。図1において、情報システム1は、複数のホスト
(ホスト21とホスト31)、ホスト間で資源の共有排
他制御を行うホスト間排他制御装置4、ホスト間排他制
御装置で使用する共有排他制御キーを格納する共有排他
制御キー管理ファイル5、および、ホスト間で資源を共
有するグローバル資源6から構成される。
FIG. 1 is a schematic configuration diagram of an embodiment of the present invention. In FIG. 1, the information system 1 includes a plurality of hosts (hosts 21 and 31), an inter-host exclusion controller 4 that performs shared exclusion control of resources between hosts, and a shared exclusion control key used by the inter-host exclusion control device. It is composed of a shared exclusive control key management file 5 to be stored and a global resource 6 for sharing resources between hosts.

【0024】ホスト21が、グローバル資源6を使用す
るとき、資源割り当て手段22は、共有排他制御キー取
得手段23に、ファイル名などを含む資源識別情報7を
渡す。
When the host 21 uses the global resource 6, the resource allocating unit 22 passes the resource identification information 7 including the file name and the like to the shared exclusive control key obtaining unit 23.

【0025】資源識別情報7には、ホスト間でグローバ
ル資源6を他の資源と一意に区別するための資源名など
の情報を含む。
The resource identification information 7 includes information such as a resource name for uniquely distinguishing the global resource 6 from other resources between hosts.

【0026】全ホストで最初にグローバル資源6を使用
するとき、共有排他制御キー取得手段23は、共有排他
制御キー管理ファイル3に資源識別情報7が未登録であ
るため、新規に登録し、ホスト間排他制御装置4で使用
する共有排他制御キー8を資源割り当て手段22に返却
する。
When the global resource 6 is first used by all the hosts, the shared exclusive control key acquiring means 23 newly registers the resource identification information 7 in the shared exclusive control key management file 3 because the resource identification information 7 has not been registered. The shared exclusive control key 8 used by the inter-exclusive control device 4 is returned to the resource allocation unit 22.

【0027】資源割り当て手段22は、取得した共有排
他制御キー8をホスト間排他制御装置4に登録すること
により、ホスト間の資源の共有排他制御を行う。
The resource allocating unit 22 performs the shared exclusion control of the resources between the hosts by registering the acquired shared exclusion control key 8 in the exclusion controller 4 between the hosts.

【0028】ホスト31が、ホスト21で使用中のグロ
ーバル資源6を使用するとき、資源割り当て手段32
は、共有排他制御キー取得手段33に、資源名などを含
む資源識別情報7を渡す。
When the host 31 uses the global resource 6 being used by the host 21, the resource allocating means 32
Passes the resource identification information 7 including the resource name and the like to the shared exclusive control key acquisition means 33.

【0029】共有排他制御キー取得手段33は、共有排
他制御キー管理ファイル5に登録済の資源識別情報7か
ら共有排他制御キー8を決定し、共有排他制御キー8を
資源割り当て手段22に返却する。
The shared exclusive control key obtaining means 33 determines the shared exclusive control key 8 from the resource identification information 7 registered in the shared exclusive control key management file 5 and returns the shared exclusive control key 8 to the resource allocating means 22. .

【0030】資源割り当て手段32は、取得した共有排
他制御キー8をホスト間排他制御装置4に登録すること
により、ホスト間の資源の共有排他制御を行う。
The resource allocating unit 32 performs the shared exclusion control of the resources between the hosts by registering the obtained shared exclusion control key 8 in the exclusion controller 4 between the hosts.

【0031】ホスト21でグローバル資源6の使用を終
了したとき、資源割り当て手段22は、ホスト間共有排
他制御装置4から、共有排他制御キー8を使用している
ホストが他にあるかという情報を得る。
When the host 21 has finished using the global resource 6, the resource allocating means 22 sends information from the inter-host shared exclusion controller 4 on whether there is another host using the shared exclusion control key 8. obtain.

【0032】共有排他制御キー8を使用しているホスト
が他にないとき、資源割り当て手段22は、共有排他制
御キー8の削除を共有排他制御キー取得手段23に要求
する。
When there is no other host using the shared exclusive control key 8, the resource allocating unit 22 requests the shared exclusive control key acquiring unit 23 to delete the shared exclusive control key 8.

【0033】共有排他制御キー取得手段23は、共有排
他制御キー8をもとに共有排他制御キー管理ファイル5
から資源識別情報7を削除する。
The shared exclusion key acquisition means 23, based on the shared exclusion key 8,
From the resource identification information 7.

【0034】このように、共有排他制御キー取得手段を
介して、グローバル資源を使用するときに、資源識別情
報を管理ファイルに登録し、グローバル資源の使用を終
えたときに管理ファイルから資源識別情報を削除するこ
とにより、管理ファイルへのグローバル資源の登録など
の事前準備が不要となる。
As described above, when the global resource is used, the resource identification information is registered in the management file via the shared exclusive control key acquisition means, and when the global resource is used, the resource identification information is registered from the management file. , It is not necessary to prepare in advance the registration of global resources in the management file.

【0035】また、グローバル資源を使用しているとき
だけ、管理ファイルに資源識別情報を登録しているた
め、管理ファイルの容量を必要最小限に押さえることが
できる。
Since resource identification information is registered in the management file only when using global resources, the capacity of the management file can be kept to a minimum.

【0036】また、共有排他制御キーを管理する専用の
管理ファイルを持つため、特定の管理ファイル配下のグ
ローバル資源だけではなく、任意のグローバル資源をホ
スト間で共有利用することを可能とする。
Further, since a dedicated management file for managing the shared exclusion control key is provided, not only global resources under a specific management file but also arbitrary global resources can be shared between hosts.

【0037】[0037]

【実施例】[構成の説明]図1は、本発明の実施例の概
略構成図である。図1を参照すると、本発明の実施例
は、ホスト21では、ホスト間排他制御装置4と、共有
排他制御キー管理ファイル5と、ホスト間で共有可能な
グローバル資源6と、資源割り当て手段22と、共有排
他制御キー取得手段23とから構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a schematic block diagram of an embodiment of the present invention. Referring to FIG. 1, in the embodiment of the present invention, in the host 21, the inter-host exclusive control device 4, the shared exclusive control key management file 5, the global resource 6 that can be shared between the hosts, the resource allocation unit 22 , And a shared exclusive control key acquisition unit 23.

【0038】これらの手段は、それぞれ概略つぎのよう
に動作する。
Each of these means operates roughly as follows.

【0039】資源割り当て手段22は、資源識別情報を
もとにホスト内の資源の共有排他制御を行い、ホスト間
で共有可能な資源であれば、さらに、共有排他制御キー
をもとにホスト間排他制御装置4を使用し、ホスト間の
資源の共有排他制御を行う。
The resource allocating means 22 controls the sharing and exclusion of the resources in the host based on the resource identification information. The exclusive control device 4 is used to perform shared exclusive control of resources between hosts.

【0040】共有排他制御キー取得手段23は、ホスト
間で最初に資源を使用するときに資源識別情報を共有排
他制御キー管理ファイル5に登録し、共有排他制御キー
を返却する。
The shared exclusive control key acquisition means 23 registers the resource identification information in the shared exclusive control key management file 5 when the resources are first used between the hosts, and returns the shared exclusive control key.

【0041】また、ホスト間ですでに使用されている資
源であれば、登録済の資源識別情報より、共有排他制御
キーを決定し、共有排他制御キーを返却する。
If the resource is already used between the hosts, the shared exclusive control key is determined from the registered resource identification information, and the shared exclusive control key is returned.

【0042】資源の使用を終了したとき、全ホストで資
源の使用が最後であれば、共有排他制御キー管理ファイ
ル5から、資源識別情報を削除する。
When the use of the resource is finished, if the use of the resource is the last in all the hosts, the resource identification information is deleted from the shared exclusive control key management file 5.

【0043】資源識別情報を削除することにより、新し
い資源識別情報に未使用となった共有排他制御キーを割
り当てることができる。
By deleting the resource identification information, the unused shared exclusive control key can be assigned to the new resource identification information.

【0044】[動作の説明]次に、図面を参照して本実
施例の全体の動作について詳細に説明する。
[Explanation of Operation] Next, the overall operation of this embodiment will be described in detail with reference to the drawings.

【0045】図1は、ホスト間資源共有排他制御のブロ
ック図である。また、図2は、本発明の実施例の資源割
り当て処理のフローチャートであり、図3は、本発明の
実施例の資源開放処理のフローチャートである。
FIG. 1 is a block diagram of the resource sharing exclusive control between hosts. FIG. 2 is a flowchart of a resource allocation process according to the embodiment of the present invention, and FIG. 3 is a flowchart of a resource release process according to the embodiment of the present invention.

【0046】まず、ホスト21でグローバル資源6を使
用するにあたって、資源割り当て手段22は、共有排他
制御キー取得手段23に資源を識別するためのファイル
名、媒体名などの資源識別情報7を渡す。
First, when the host 21 uses the global resource 6, the resource allocating unit 22 passes the resource identification information 7 such as a file name and a medium name for identifying the resource to the shared exclusive control key obtaining unit 23.

【0047】次に、共有排他制御キー取得手段23は共
有排他制御キー管理ファイル5に資源識別情報7が未登
録であると、資源識別情報7を共有排他制御キー管理フ
ァイル5に新規に登録し、登録した情報の位置を共有排
他制御キー8として、資源割り当て手段に返却する。
Next, if the resource identification information 7 has not been registered in the shared exclusive control key management file 5, the shared exclusive control key acquisition means 23 newly registers the resource identification information 7 in the shared exclusive control key management file 5. Then, the position of the registered information is returned to the resource allocating means as the shared exclusive control key 8.

【0048】次に、資源割り当て手段22は、取得した
共有排他制御キー8とホスト間排他制御装置4を使用し
て資源の排他制御を行う。
Next, the resource allocating means 22 performs exclusive control of the resources using the acquired shared exclusive control key 8 and the inter-host exclusive control device 4.

【0049】また、ホスト21で資源の使用を終える
と、資源割り当て手段22は、ホスト間排他制御装置4
より全ホストで資源の使用を終えたという情報を得るた
め、資源割り当て手段22は、共有排他制御キー取得手
段23に共有排他制御キー8を渡し、共有排他制御キー
8の削除を要求する。
When the host 21 has finished using the resources, the resource allocating means 22 sets the
In order to obtain information that the resources have been used by all the hosts, the resource allocating unit 22 passes the shared exclusive control key 8 to the shared exclusive control key obtaining unit 23 and requests the shared exclusive control key 8 to be deleted.

【0050】次に、共有排他制御キー取得手段23は、
共有排他制御キー8より資源識別情報の位置を決定し、
登録している資源識別情報を削除する。このように、使
用中の資源の情報のみを共有排他制御キー管理ファイル
5に登録することにより、共有排他制御キー管理ファイ
ル5の容量を必要最小限とすることができる。
Next, the shared exclusive control key acquisition means 23
The position of the resource identification information is determined from the shared exclusive control key 8,
Delete the registered resource identification information. In this way, by registering only the information on the used resources in the shared exclusive control key management file 5, the capacity of the shared exclusive control key management file 5 can be minimized.

【0051】また、ホスト21でグローバル資源6を使
用中に、ホスト31でグローバル資源6を使用する場
合、資源割り当て手段32は、ホスト21と同様に資源
識別情報7を、共有排他制御キー取得手段33に渡す。
When the host 31 uses the global resource 6 while the host 21 is using the global resource 6, the resource allocating unit 32 stores the resource identification information 7 in the same manner as the host 21 using the shared exclusive control key obtaining unit. Pass to 33.

【0052】次に、共有排他制御キー取得手段33は、
資源識別情報7が共有排他制御キー管理ファイル5に登
録済であるので、登録済の資源識別情報の位置を共有排
他制御キー8として、資源割り当て手段32に返却す
る。これにより、資源割り当て手段32は、ホスト21
の資源割り当て手段22が得るものと同じ共有排他制御
キー8を取得することができる。
Next, the shared exclusive control key acquisition means 33
Since the resource identification information 7 has been registered in the shared exclusive control key management file 5, the position of the registered resource identification information is returned to the resource allocation unit 32 as the shared exclusive control key 8. As a result, the resource allocating unit 32
Can obtain the same shared exclusion control key 8 as that obtained by the resource allocating unit 22 of FIG.

【0053】また、ホスト21でグローバル資源6を使
用中に、ホスト31で資源の使用を終えると、資源割り
当て手段32は、ホスト間排他制御装置4より資源が他
のホストで使用されている情報を得るため、資源割り当
て手段32は、共有排他制御キー取得手段33に共有排
他制御キー8の削除の要求を行わずに資源解放処理を終
了する。
When the host 31 finishes using the resource while the global resource 6 is being used by the host 21, the resource allocating unit 32 sends information indicating that the resource is being used by another host from the inter-host exclusive control device 4. In order to obtain the shared exclusive control key 8, the resource allocating unit 32 ends the resource release processing without requesting the shared exclusive control key obtaining unit 33 to delete the shared exclusive control key 8.

【0054】また、本発明は、上述したホスト間資源共
有排他制御方法を記述したコンピュータプログラムを格
納したCD−ROM等の記録媒体でもあり、コンピュー
タに、この制御プログラムをインストールすることによ
り、本発明は、容易に実施可能である。
The present invention is also a recording medium, such as a CD-ROM, storing a computer program describing the above-described method for controlling resource sharing and exclusion between hosts. By installing the control program in a computer, the present invention is realized. Can be easily implemented.

【0055】[0055]

【発明の効果】第1の効果は、管理ファイルへのグロー
バル資源の登録のような事前準備が不要なことにある。
The first effect is that there is no need for advance preparation such as registration of global resources in the management file.

【0056】その理由は、グローバル資源を使用すると
きに、共有排他制御キー取得手段が管理ファイルへ資源
識別情報を登録するためである。
The reason is that when the global resource is used, the shared exclusive control key acquisition means registers the resource identification information in the management file.

【0057】第2の効果は、管理ファイルの容量を必要
最小限にできることにある。
The second effect is that the capacity of the management file can be minimized.

【0058】その理由は、全ホストで最初に資源を使用
するときに、管理ファイルに資源識別情報を登録し、全
ホストで最後に資源の使用を終えたときに、管理ファイ
ルから資源識別情報を削除することによって、グローバ
ル資源の使用中のみ管理ファイルに資源識別情報を登録
するためである。
The reason is that the resource identification information is registered in the management file when the resource is first used by all the hosts, and the resource identification information is registered from the management file when the resource is finally used by all the hosts. This is because resource identification information is registered in the management file only when the global resource is being used by deleting it.

【0059】第3の効果は、カタログのような特定の管
理ファイルをもたないグローバル資源でも、グローバル
資源として共有排他制御をできることにある。
A third effect is that shared exclusive control can be performed as a global resource even for a global resource that does not have a specific management file such as a catalog.

【0060】その理由は、従来はカタログという特定の
管理ファイルの登録データを共有排他制御キーとして使
用していたため、カタログで管理している資源しかグロ
ーバル資源と使用できなかったが、共有排他制御キーを
管理する専用の共有排他制御キー管理ファイルを持ち、
任意の資源を登録できるようにしたためである。
The reason is that conventionally, the registered data of a specific management file called a catalog was used as a shared exclusion control key, so that only resources managed by the catalog could be used as global resources, Has a shared exclusive control key management file dedicated to managing
This is because arbitrary resources can be registered.

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

【図1】本発明の実施例の概略構成図である。FIG. 1 is a schematic configuration diagram of an embodiment of the present invention.

【図2】本発明の実施例の資源割り当て処理のフローチ
ャートである。
FIG. 2 is a flowchart of a resource allocation process according to the embodiment of the present invention.

【図3】本発明の実施例の資源開放処理のフローチャー
トである。
FIG. 3 is a flowchart of a resource release process according to the embodiment of the present invention.

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

4 ホスト間排他制御装置 5 共有排他制御キー管理ファイル 6 グローバル資源 7 資源識別情報 8 共有排他制御キー 21 ホスト 22,32 資源割り当て手段 23,33 共有排他制御キー取得手段 4 Exclusive control device between hosts 5 Shared exclusive control key management file 6 Global resource 7 Resource identification information 8 Shared exclusive control key 21 Host 22, 32 Resource allocation means 23, 33 Shared exclusive control key acquisition means

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数のホストで資源を共有する情報シス
テムにおいて、 共有排他制御キーを管理する専用の管理ファイルを具備
し、 グローバル資源を使用するときに、該管理ファイルへ資
源識別情報を登録し、グローバル資源の使用を終えたと
きに該管理ファイルから前記資源識別情報を削除するこ
とにより、グローバル資源を使用しているときだけ、管
理ファイルに資源識別情報を登録する共有排他制御キー
取得手段を有することを特徴とするホスト間資源共有排
他制御装置。
1. An information system in which resources are shared by a plurality of hosts. The information system includes a dedicated management file for managing a shared exclusion control key. When using a global resource, resource identification information is registered in the management file. By deleting the resource identification information from the management file when the use of the global resource is completed, the shared exclusive control key acquisition means for registering the resource identification information in the management file only when the global resource is used is provided. An inter-host resource sharing and exclusion controller characterized by having:
【請求項2】 全ホストで最初に資源を使用するとき
に、管理ファイルに資源識別情報を登録し、全ホストで
最後に資源の使用を終えたときに、管理ファイルから資
源識別情報を削除することによって、グローバル資源の
使用中のみ管理ファイルに資源識別情報を登録すること
を特徴とする請求項1記載のホスト間資源共有排他制御
装置。
2. Registering resource identification information in a management file when resources are used for the first time by all hosts, and deleting resource identification information from the management file when resources are finally used by all hosts. 2. The inter-host resource sharing / exclusive control apparatus according to claim 1, wherein the resource identification information is registered in the management file only when the global resource is being used.
【請求項3】 共有排他制御キーを管理する専用の共有
排他制御キー管理ファイルを持ち、任意の資源を登録可
能としたことを特徴とする請求項1記載のホスト間資源
共有排他制御装置。
3. The inter-host resource sharing / exclusive control device according to claim 1, further comprising a dedicated shared / exclusive control key management file for managing the shared / exclusive control key, wherein any resource can be registered.
【請求項4】 複数のホスト(21,31)で資源を共
有する情報システム(1)において、 前記ホスト間で資源を共有するグローバル資源(6)
と、 ホスト間で、前記グローバル資源(6)を他の資源と一
意に区別するための情報を含む資源識別情報(7)と、 該資源識別情報(7)の登録位置を示す共有排他制御キ
ー(8)と、 前記ホスト間で資源の共有排他制御を行うホスト間排他
制御装置(4)と、 前記ホスト間排他制御装置(4)で使用する前記共有排
他制御キーを格納する共有排他制御キー管理ファイル
(5)と、を備え、 各ホスト(21)は、 資源識別情報(7)をもとにホスト内の資源の共有排他
制御を行い、ホスト間で共有可能な資源であれば、さら
に、共有排他制御キー(8)をもとに、前記ホスト間排
他制御装置(4)を使用し、ホスト間の資源の共有排他
制御を行う、資源割り当て手段(22)と、 ホスト間で最初に資源を使用するときに、資源識別情報
(7)を共有排他制御キー管理ファイル(5)に登録
し、共有排他制御キー(8)を資源割り当て手段(2
2)に返却し、ホスト間ですでに使用されている資源で
あれば、登録済の資源識別情報(7)より、共有排他制
御キー(8)を決定し、共有排他制御キー(8)を資源
割り当て手段(22)に返却し、 資源の使用を終了したとき、全ホストで資源の使用が最
後であれば、共有排他制御キー管理ファイル(5)か
ら、資源識別情報(7)を削除する、共有排他制御キー
取得手段(23)と、を有することを特徴とするホスト
間資源共有排他制御装置。
4. An information system (1) for sharing resources among a plurality of hosts (21, 31), wherein a global resource (6) for sharing resources among the hosts.
Resource identification information (7) including information for uniquely distinguishing the global resource (6) from other resources between hosts; and a shared exclusive control key indicating a registration position of the resource identification information (7). (8), an inter-host exclusion controller (4) for performing shared exclusion control of resources between the hosts, and a shared exclusion control key for storing the shared exclusion control key used by the inter-host exclusion controller (4) And a management file (5). Each host (21) performs a shared exclusive control of the resources in the host based on the resource identification information (7). A resource allocating means (22) for performing shared exclusion control of resources between hosts based on the shared exclusion control key (8) using the inter-host exclusion controller (4); When using resources, the resource identification information ( 7) is registered in the shared exclusive control key management file (5), and the shared exclusive control key (8) is registered in the resource allocating means (2).
2) If the resource is already used between the hosts, the shared exclusive control key (8) is determined from the registered resource identification information (7), and the shared exclusive control key (8) is When the resource is returned to the resource allocating means (22) and the use of the resource is completed, if the resource has been used by all the hosts, the resource identification information (7) is deleted from the shared exclusive control key management file (5). And a shared exclusive control key acquisition means (23).
【請求項5】 複数のホスト(21,31)で資源を共
有する情報システム(1)において、ホスト(21)で
グローバル資源(6)を使用するにあたって、資源割り
当て手段(22)は、共有排他制御キー取得手段(2
3)に資源を識別するための資源識別情報(7)を渡す
ステップ;次に、共有排他制御キー取得手段(23)
は、共有排他制御キー管理ファイル5に資源識別情報
(7)が未登録であると、資源識別情報(7)を共有排
他制御キー管理ファイル(5)に新規に登録し、登録し
た情報の位置を共有排他制御キー(8)として、資源割
り当て手段に返却するステップ;次に、資源割り当て手
段(22)は、取得した共有排他制御キー(8)とホス
ト間排他制御装置(4)を使用して資源の排他制御を行
うステップ;ホスト(21)で資源の使用を終えると、
資源割り当て手段(22)は、ホスト間排他制御装置
(4)より全ホストで資源の使用を終えたという情報を
得るため、資源割り当て手段(22)は、共有排他制御
キー取得手段(23)に共有排他制御キー(8)を渡
し、共有排他制御キー(8)の削除を要求するステッ
プ;次に、共有排他制御キー取得手段(23)は、共有
排他制御キー(8)より資源識別情報の位置を決定し、
登録している資源識別情報を削除するステップ;ホスト
(21)でグローバル資源(6)を使用中に、他のホス
ト(31)でグローバル資源(6)を使用する場合、資
源割り当て手段(32)は、ホスト(21)と同様に資
源識別情報(7)を、共有排他制御キー取得手段(3
3)に渡すステップ;次に、共有排他制御キー取得手段
(33)は、資源識別情報(7)が共有排他制御キー管
理ファイル(5)に登録済であるので、登録済の資源識
別情報の位置を共有排他制御キー(8)として、資源割
り当て手段(32)に返却するステップ;ホスト(2
1)でグローバル資源(6)を使用中に、他のホスト
(31)で資源の使用を終えると、資源割り当て手段
(32)は、ホスト間排他制御装置(4)より、資源が
他のホストで使用されている情報を得るため、共有排他
制御キー取得手段(33)に、共有排他制御キー(8)
の削除の要求を行わずに資源解放処理を終了するステッ
プ;を有することを特徴とするホスト間資源共有排他制
御方法。
5. In an information system (1) in which resources are shared by a plurality of hosts (21, 31), when a global resource (6) is used by a host (21), a resource allocating means (22) uses a shared exclusion. Control key acquisition means (2
Passing the resource identification information (7) for identifying the resource to 3); then, a shared exclusive control key acquisition means (23)
If the resource identification information (7) is not registered in the shared exclusive control key management file 5, the resource identification information (7) is newly registered in the shared exclusive control key management file (5), and the location of the registered information Is returned to the resource allocating means as a shared exclusive control key (8); Next, the resource allocating means (22) uses the obtained shared exclusive control key (8) and the inter-host exclusive control device (4). Performing exclusive control of resources by using the host (21).
The resource allocating means (22) obtains information from the inter-host exclusion controller (4) that the resources have been used by all the hosts. Passing the shared exclusive control key (8) and requesting deletion of the shared exclusive control key (8); and then, the shared exclusive control key acquisition means (23) uses the shared exclusive control key (8) Determine the position,
Deleting the registered resource identification information; when the global resource (6) is used by the host (21) and the global resource (6) is used by another host (31), the resource allocating means (32) Stores the resource identification information (7) in the same manner as the host (21),
Step 3): The shared exclusive control key acquiring means (33) determines whether the resource identification information (7) has been registered in the shared exclusive control key management file (5). Returning the position to the resource allocation means (32) as the shared exclusive control key (8);
If the other host (31) finishes using the resource while using the global resource (6) in (1), the resource allocating means (32) sends the resource to the other host (3) from the inter-host exclusive control device (4). In order to obtain the information used in (1), the shared exclusive control key acquisition means (33) is provided with the shared exclusive control key (8).
Ending the resource release processing without making a request to delete the resources.
【請求項6】 請求項5記載のホスト間資源共有排他制
御方法を記述したコンピュータプログラムを格納したこ
とを特徴とする記録媒体。
6. A recording medium storing a computer program describing the method for controlling exclusive use of resource sharing between hosts according to claim 5.
JP10961898A 1998-04-20 1998-04-20 Apparatus and method for controlling resource sharing between hosts and recording medium Expired - Fee Related JP3473394B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10961898A JP3473394B2 (en) 1998-04-20 1998-04-20 Apparatus and method for controlling resource sharing between hosts and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10961898A JP3473394B2 (en) 1998-04-20 1998-04-20 Apparatus and method for controlling resource sharing between hosts and recording medium

Publications (2)

Publication Number Publication Date
JPH11306147A true JPH11306147A (en) 1999-11-05
JP3473394B2 JP3473394B2 (en) 2003-12-02

Family

ID=14514869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10961898A Expired - Fee Related JP3473394B2 (en) 1998-04-20 1998-04-20 Apparatus and method for controlling resource sharing between hosts and recording medium

Country Status (1)

Country Link
JP (1) JP3473394B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015927A (en) * 2001-07-02 2003-01-17 Tsubasa System Co Ltd Process execution exclusive control system
US7797507B2 (en) 2006-07-26 2010-09-14 Nec Corporation Virtual machine system and operating method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015927A (en) * 2001-07-02 2003-01-17 Tsubasa System Co Ltd Process execution exclusive control system
US7797507B2 (en) 2006-07-26 2010-09-14 Nec Corporation Virtual machine system and operating method thereof

Also Published As

Publication number Publication date
JP3473394B2 (en) 2003-12-02

Similar Documents

Publication Publication Date Title
CN108363641B (en) Main and standby machine data transmission method, control node and database system
WO2014124576A1 (en) Memory management method, memory management device and numa system
CN108897628A (en) A kind of implementation method of distributed lock, device and electronic equipment
JPH0833857B2 (en) System database sharing system system system
JP5120451B2 (en) Arrangement method and arrangement system
JPWO2009066611A1 (en) Data storage system for virtual machine, data storage method, and data storage program
JP2006172067A (en) Database management method, system and program
JPH11306147A (en) Inter-host resource sharing/exclusive controller, method therefor and recording medium
JPH1063557A (en) Distributed file synchronization system
JP2924786B2 (en) Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system
JPH08123672A (en) System performing access management of stored information
CN110019448B (en) Data interaction method and device
JP2004302743A (en) Program for recognizing identifier correspondence, information processor, and input/output device sharing system
JPWO2004008322A1 (en) Network storage management device, network storage management program, and network storage management method
US20220206991A1 (en) Storage system and data management method
JP2000259476A (en) File management system and server computer
JPH0581049A (en) Time management system for memory
JPH03222047A (en) Area control system
JP2000122885A (en) Diagnostic system and recording medium
JPH07253950A (en) Network file system
JP2000082005A (en) Data processing system for inter-system data base sharing system
JPH09330240A (en) Exclusive resource control system
CN117177050A (en) Virtual machine VPC network configuration snapshot processing method and system
JP2641399B2 (en) File management device
JP2787107B2 (en) Buffer control system and device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080919

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080919

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100919

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees